Can get possible couple states through API

This commit is contained in:
2023-08-07 17:01:56 +02:00
parent 29c503a6b0
commit ff8e3cce9d
3 changed files with 37 additions and 2 deletions

View File

@ -70,8 +70,8 @@ CREATE TABLE members (
CREATE TABLE couples (
id SERIAL PRIMARY KEY,
family_id integer NOT NULL REFERENCES families,
wife integer NULL REFERENCES members,
husband integer NULL REFERENCES members,
wife integer NULL REFERENCES members ON DELETE SET NULL,
husband integer NULL REFERENCES members ON DELETE SET NULL,
state varchar(1) NULL,
photo_id INTEGER NULL REFERENCES photos ON DELETE SET NULL,
time_create BIGINT NOT NULL,