Update src/Backend/UserTable.sql

This commit is contained in:
2025-08-04 16:35:04 +03:00
parent 3692c0233d
commit 9e96fd247f

View File

@ -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;