OwlcodeAds/dbicdh/PostgreSQL/deploy/0/001-auto.sql
2023-08-02 16:19:44 +02:00

26 lines
623 B
SQL

--
-- Created by SQL::Translator::Producer::PostgreSQL
-- Created on Wed Aug 2 16:12:43 2023
--
;
--
-- Table: users
--
CREATE TABLE "users" (
"uuid" uuid NOT NULL,
"username" text NOT NULL,
"name" text NOT NULL,
"surname" text NOT NULL,
"encrypted_password" text NOT NULL,
"email" text NOT NULL,
"verified" boolean NOT NULL,
"verification_token" text,
"register_date" timestamp DEFAULT NOW() NOT NULL,
"last_activity" timestamp DEFAULT NOW() NOT NULL,
PRIMARY KEY ("uuid"),
CONSTRAINT "unique_constraint_email" UNIQUE ("email"),
CONSTRAINT "unique_constraint_username" UNIQUE ("username")
);
;