Merge remote-tracking branch 'origin/main'
This commit is contained in:
@ -1,6 +1,17 @@
|
||||
create table Users(
|
||||
Id serial primary key,
|
||||
username character varying(32),
|
||||
ChatId bigint not null,
|
||||
constraint chat_id_unique unique(ChatId)
|
||||
);
|
||||
-- Table: public.users
|
||||
|
||||
-- DROP TABLE IF EXISTS public.users;
|
||||
|
||||
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