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)) );