Update src/Backend/UserTable.sql
This commit is contained in:
@ -1,6 +1,17 @@
|
|||||||
create table Users(
|
-- Table: public.users
|
||||||
Id serial primary key,
|
|
||||||
username character varying(32),
|
-- DROP TABLE IF EXISTS public.users;
|
||||||
ChatId bigint not null,
|
|
||||||
constraint chat_id_unique unique(ChatId)
|
CREATE TABLE IF NOT EXISTS public.users
|
||||||
);
|
(
|
||||||
|
id integer NOT NULL DEFAULT nextval('users_id_seq'::regclass),
|
||||||
|
chat_id bigint NOT NULL,
|
||||||
|
images_amount bigint,
|
||||||
|
CONSTRAINT users_pkey PRIMARY KEY (id),
|
||||||
|
CONSTRAINT chat_id_unique UNIQUE (chat_id)
|
||||||
|
)
|
||||||
|
|
||||||
|
TABLESPACE pg_default;
|
||||||
|
|
||||||
|
ALTER TABLE IF EXISTS public.users
|
||||||
|
OWNER to postgres_user;
|
||||||
Reference in New Issue
Block a user