mirror of
https://github.com/devkitshq/notifkit.git
synced 2026-10-19 18:24:52 +02:00
12 lines
473 B
SQL
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")
|
|
);
|