feat: add admin table
This commit is contained in:
parent
1295d15eb3
commit
dc75af4dc7
@ -0,0 +1,2 @@
|
|||||||
|
DROP TABLE IF EXISTS "admin";
|
||||||
|
DROP SEQUENCE IF EXISTS admin_id_seq;
|
@ -0,0 +1,9 @@
|
|||||||
|
CREATE SEQUENCE admin_id_seq INCREMENT 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1;
|
||||||
|
|
||||||
|
CREATE TABLE "public"."admin" (
|
||||||
|
"id" integer DEFAULT nextval('admin_id_seq') NOT NULL,
|
||||||
|
"email" character varying(255) NOT NULL,
|
||||||
|
"password" character varying(255) NOT NULL,
|
||||||
|
"access_level" integer NOT NULL,
|
||||||
|
CONSTRAINT "admin_pkey" PRIMARY KEY ("id")
|
||||||
|
) WITH (oids = false);
|
Loading…
x
Reference in New Issue
Block a user