1
0
Fork 0

Add table inflections

This commit is contained in:
Alex Kotov 2023-03-05 20:35:32 +04:00
parent b09972a08c
commit d4528c971e
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1 @@
DROP TABLE inflections;

View file

@ -0,0 +1,9 @@
CREATE TABLE inflections (
-- name type constraints
id BIGSERIAL PRIMARY KEY,
part_id BIGINT NOT NULL REFERENCES parts (id),
descr VARCHAR NOT NULL,
-- CONSTRAINT name CHECK (condition)
CONSTRAINT descr_is_sane_text CHECK (is_sane_text(descr))
);