add submmited by in tags
This commit is contained in:
parent
5e07a75fc8
commit
93bd5fb3e9
@ -91,10 +91,10 @@ CREATE TABLE locations(
|
|||||||
CREATE TABLE tags (
|
CREATE TABLE tags (
|
||||||
"id" serial primary key not null,
|
"id" serial primary key not null,
|
||||||
"name" varchar(50) not null,
|
"name" varchar(50) not null,
|
||||||
"target_id" integer,
|
"submitted_by" integer references "users"("id") not null,
|
||||||
"tags_type" varchar(20),
|
"target_id" integer, -- location_id, story_id
|
||||||
"created_at" timestamp default(now()),
|
"tags_type" varchar(20), -- locations, stories
|
||||||
"updated_at" timestamp default(now())
|
"approved_by" integer references "users"("id") not null
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE location_images (
|
CREATE TABLE location_images (
|
||||||
|
Loading…
Reference in New Issue
Block a user