Files
notifkit/drizzle/0005_admin_users.sql
T

12 lines
473 B
SQL

CREATE TABLE IF NOT EXISTS "admin_users" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"email" varchar NOT NULL,
"username" varchar,
"password_hash" varchar NOT NULL,
"role" varchar DEFAULT 'admin' NOT NULL,
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
CONSTRAINT "admin_users_email_unique" UNIQUE("email"),
CONSTRAINT "admin_users_username_unique" UNIQUE("username")
);