added a bunch of customer columns

This commit is contained in:
vfs committed 2026-04-14 21:28:25 +02:00
1 parent f380dfe58d
commit 173c01b01b
8 files changed
+71 -62

No files matched your search

+5 -1
View File
@@ -1,8 +1,12 @@
CREATE TABLE IF NOT EXISTS users (
id BIGSERIAL PRIMARY KEY,
email citext UNIQUE NOT NULL,
phone_number TEXT,
country CHAR(2),
name TEXT NOT NULL,
alt_name TEXT,
date_of_birth DATE,
address TEXT,
created TIMESTAMPTZ NOT NULL DEFAULT now(),
last_login TIMESTAMPTZ NOT NULL DEFAULT '1970-01-01 00:00:00+00',
activated BOOL NOT NULL DEFAULT false,
@@ -24,7 +28,7 @@ CREATE TABLE IF NOT EXISTS user_identities (
user_id BIGINT NOT NULL REFERENCES users(id) ON DELETE CASCADE,
-- For local: the username. For OIDC: the 'sub' (Subject ID)
provider_user_id TEXT NOT NULL,
provider_user_id TEXT,
-- Nullable because OIDC users won't have a password in your DB
password bytea,