From 19b0479a130e9246cdbe476ad99793fce57cb5b2 Mon Sep 17 00:00:00 2001 From: Genvictus <johannstarkmk42@gmail.com> Date: Fri, 10 Nov 2023 17:58:21 +0700 Subject: [PATCH] rfc: add timestamp attribute to likes --- migration/database-seed.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migration/database-seed.sql b/migration/database-seed.sql index aa57ee2..a084fb6 100644 --- a/migration/database-seed.sql +++ b/migration/database-seed.sql @@ -60,7 +60,8 @@ CREATE TABLE "post_resources" ( CREATE TABLE "likes" ( "post_id" integer, "post_owner_id" integer, - "user_id" integer + "user_id" integer, + "created_at" timestamp DEFAULT current_timestamp ); COMMENT ON COLUMN "users"."id" IS 'Starts at 1'; -- GitLab