AWS SES preview

This commit is contained in:
pulipakaa24
2026-03-19 19:59:01 -05:00
parent 0193240048
commit 0b4b1a6ff5
16 changed files with 2298 additions and 65 deletions

View File

@@ -108,3 +108,14 @@ CREATE TABLE IF NOT EXISTS protocols (
);
CREATE INDEX IF NOT EXISTS protocols_user_id_idx ON protocols(user_id);
-- User profile — lab defaults pre-filled on chemical entries
CREATE TABLE IF NOT EXISTS user_profile (
user_id TEXT NOT NULL PRIMARY KEY REFERENCES "user"("id") ON DELETE CASCADE,
pi_first_name TEXT NOT NULL,
bldg_code TEXT NOT NULL,
lab TEXT NOT NULL,
contact TEXT,
created_at TIMESTAMPTZ DEFAULT NOW(),
updated_at TIMESTAMPTZ DEFAULT NOW()
);