From 274e9d9a210f24e71f598c2188571496cbcb620f Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Thu, 3 Aug 2023 18:31:08 +0200 Subject: [PATCH] Can put photo on couples --- geneit_backend/migrations/2023-05-24-102711_create_users/up.sql | 1 + geneit_backend/src/schema.rs | 1 + 2 files changed, 2 insertions(+) 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,