diff --git a/geneit_backend/migrations/2023-05-24-102711_create_users/up.sql b/geneit_backend/migrations/2023-05-24-102711_create_users/up.sql index 52728db..0a76005 100644 --- a/geneit_backend/migrations/2023-05-24-102711_create_users/up.sql +++ b/geneit_backend/migrations/2023-05-24-102711_create_users/up.sql @@ -60,6 +60,7 @@ CREATE TABLE members ( CREATE TABLE couples ( wife integer NOT NULL REFERENCES members, husband integer NOT NULL REFERENCES members, + photo_id VARCHAR(255) NULL, wedding_year smallint NULL, wedding_month smallint NULL, wedding_day smallint NULL, diff --git a/geneit_backend/src/schema.rs b/geneit_backend/src/schema.rs index 83bccab..7f7a9cb 100644 --- a/geneit_backend/src/schema.rs +++ b/geneit_backend/src/schema.rs @@ -4,6 +4,7 @@ diesel::table! { couples (wife, husband) { wife -> Int4, husband -> Int4, + photo_id -> Nullable, wedding_year -> Nullable, wedding_month -> Nullable, wedding_day -> Nullable,