Make phone, date_of_birth, address nullable in members table
Build and Push Docker Image / build (push) Successful in 1m53s Details

These fields can be filled in later by the user. The admin setup page
only collects essential fields (name, email, password).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Matt 2026-01-26 14:06:10 +01:00
parent 7a184e8a5f
commit c74525e113
1 changed files with 3 additions and 3 deletions

View File

@ -189,9 +189,9 @@ CREATE TABLE public.members (
first_name TEXT NOT NULL,
last_name TEXT NOT NULL,
email TEXT UNIQUE NOT NULL,
phone TEXT NOT NULL,
date_of_birth DATE NOT NULL,
address TEXT NOT NULL,
phone TEXT,
date_of_birth DATE,
address TEXT,
nationality TEXT[] NOT NULL DEFAULT '{}',
role TEXT NOT NULL DEFAULT 'member' CHECK (role IN ('member', 'board', 'admin')),
membership_status_id UUID REFERENCES public.membership_statuses(id),