chore: initial commit
This commit is contained in:
9
internal/db/schema/post_category.sql
Normal file
9
internal/db/schema/post_category.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
CREATE TABLE post_category
|
||||
(
|
||||
post_id INT NOT NULL,
|
||||
category_id INT NOT NULL,
|
||||
PRIMARY KEY (post_id, category_id)
|
||||
);
|
||||
|
||||
COMMENT ON COLUMN post_category.post_id IS '文章ID';
|
||||
COMMENT ON COLUMN post_category.category_id IS '分类ID';
|
||||
Reference in New Issue
Block a user