Skip to content

Commit 4a9a191

Browse files
committed
chore: add scheme for PostgreSQL
Part of #15
1 parent 2a5663e commit 4a9a191

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docker/categories.postgres.sql

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
CREATE TABLE categories (
2+
id bigserial NOT NULL,
3+
name varchar(50) NOT NULL,
4+
name_ru varchar(50) DEFAULT NULL,
5+
slug varchar(50) NOT NULL,
6+
created_at timestamp NOT NULL,
7+
created_by bigint NOT NULL,
8+
updated_at timestamp NOT NULL,
9+
updated_by bigint NOT NULL,
10+
PRIMARY KEY (id),
11+
UNIQUE (name),
12+
UNIQUE (slug),
13+
UNIQUE (name_ru)
14+
);

0 commit comments

Comments
 (0)