2018-06-07 15:35:27 +03:00
|
|
|
create table users
|
2018-06-04 16:48:04 +03:00
|
|
|
(
|
|
|
|
id serial not null
|
|
|
|
constraint user_tg_pkey
|
|
|
|
primary key,
|
|
|
|
external_id integer not null,
|
|
|
|
user_photo varchar(255),
|
|
|
|
user_photo_id varchar(100),
|
|
|
|
created_at timestamp with time zone,
|
|
|
|
updated_at timestamp with time zone,
|
|
|
|
constraint user_tg_key unique(external_id, user_photo, user_photo_id)
|
|
|
|
);
|