15 lines
513 B
SQL
15 lines
513 B
SQL
CREATE SEQUENCE user_id_seq INCREMENT 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1;
|
|
|
|
CREATE TABLE "public"."user" (
|
|
"id" integer DEFAULT nextval('user_id_seq') NOT NULL,
|
|
"email" character varying(255) NOT NULL UNIQUE,
|
|
"first_name" character varying(255) NOT NULL,
|
|
"last_name" character varying(255) NOT NULL,
|
|
"password" character varying(60) NOT NULL,
|
|
"created_at" timestamp NOT NULL,
|
|
"updated_at" timestamp NOT NULL,
|
|
CONSTRAINT "user_pkey" PRIMARY KEY ("id")
|
|
) WITH (oids = false);
|
|
|
|
|