diff --git a/db/migrations/000001_init_schema.up.sql b/db/migrations/000001_init_schema.up.sql index 5317198..5219e7d 100644 --- a/db/migrations/000001_init_schema.up.sql +++ b/db/migrations/000001_init_schema.up.sql @@ -91,10 +91,10 @@ CREATE TABLE locations( CREATE TABLE tags ( "id" serial primary key not null, "name" varchar(50) not null, - "target_id" integer, - "tags_type" varchar(20), - "created_at" timestamp default(now()), - "updated_at" timestamp default(now()) + "submitted_by" integer references "users"("id") not null, + "target_id" integer, -- location_id, story_id + "tags_type" varchar(20), -- locations, stories + "approved_by" integer references "users"("id") not null ); CREATE TABLE location_images (