|
@@ -59,7 +59,7 @@ ALTER TABLE public.categories OWNER TO postgres;
|
59
|
59
|
|
60
|
60
|
CREATE TABLE comments (
|
61
|
61
|
id serial NOT NULL,
|
62
|
|
- post_id serial NOT NULL,
|
|
62
|
+ post_id integer NOT NULL,
|
63
|
63
|
message character varying(255) NOT NULL
|
64
|
64
|
);
|
65
|
65
|
|
|
@@ -72,8 +72,8 @@ ALTER TABLE public.comments OWNER TO postgres;
|
72
|
72
|
|
73
|
73
|
CREATE TABLE post_tags (
|
74
|
74
|
id serial NOT NULL,
|
75
|
|
- post_id serial NOT NULL,
|
76
|
|
- tag_id serial NOT NULL
|
|
75
|
+ post_id integer NOT NULL,
|
|
76
|
+ tag_id integer NOT NULL
|
77
|
77
|
);
|
78
|
78
|
|
79
|
79
|
|
|
@@ -85,8 +85,8 @@ ALTER TABLE public.post_tags OWNER TO postgres;
|
85
|
85
|
|
86
|
86
|
CREATE TABLE posts (
|
87
|
87
|
id serial NOT NULL,
|
88
|
|
- user_id serial NOT NULL,
|
89
|
|
- category_id serial NOT NULL,
|
|
88
|
+ user_id integer NOT NULL,
|
|
89
|
+ category_id integer NOT NULL,
|
90
|
90
|
content character varying(255) NOT NULL
|
91
|
91
|
);
|
92
|
92
|
|