3 CREATE SEQUENCE auth.user_id_seq;
4 CREATE SEQUENCE auth.group_id_seq;
6 CREATE TABLE auth."user" (
7 id integer NOT NULL DEFAULT nextval('auth.user_id_seq'),
8 login text UNIQUE NOT NULL,
14 CREATE TABLE auth."group" (
15 id integer NOT NULL DEFAULT nextval('auth.group_id_seq'),
16 name text UNIQUE NOT NULL,
22 CREATE TABLE auth.user_group (
23 user_id integer NOT NULL,
24 group_id integer NOT NULL,
26 FOREIGN KEY (user_id) REFERENCES auth."user" (id),
27 FOREIGN KEY (group_id) REFERENCES auth."group" (id)
30 CREATE TABLE auth.group_rights (
31 group_id integer NOT NULL,
32 "right" text NOT NULL,
33 granted boolean NOT NULL,
35 FOREIGN KEY (group_id) REFERENCES auth."group" (id)
38 CREATE TABLE auth.user_config (
39 user_id integer NOT NULL,
40 cfg_key text NOT NULL,
43 FOREIGN KEY (user_id) REFERENCES auth."user" (id)
46 CREATE TABLE auth.schema_info (
49 itime timestamp DEFAULT now(),
53 CREATE TABLE auth.session (
61 CREATE TABLE auth.session_content (
66 FOREIGN KEY (session_id) REFERENCES auth.session (id)