rust-api-template/src/migrations/02_users.sql

19 lines
701 B
MySQL
Raw Normal View History

2025-01-05 12:57:23 +00:00
CREATE TABLE public.users
(
"UserID" character varying(10)[] NOT NULL,
"ActiveDirectoryAuth" boolean NOT NULL DEFAULT false,
"Name" character varying(250) NOT NULL DEFAULT '',
"Surname" character varying(250) NOT NULL DEFAULT '',
"Email" character varying(500) NOT NULL DEFAULT '',
"Password" character varying(255) NOT NULL DEFAULT '',
"CreationDate" timestamp without time zone NOT NULL DEFAULT NOW(),
"LastChanged" timestamp without time zone NOT NULL DEFAULT NOW(),
"StatusFlag" smallint NOT NULL,
PRIMARY KEY ("UserID")
);
ALTER TABLE IF EXISTS public.users
OWNER to postgres;
COMMENT ON TABLE public.users
IS 'Table containing user information';