2018-06-07 15:35:27 +03:00
|
|
|
create table users
|
2018-06-04 16:48:04 +03:00
|
|
|
(
|
|
|
|
id serial not null
|
2018-06-08 12:13:02 +03:00
|
|
|
constraint users_pkey
|
2018-06-04 16:48:04 +03:00
|
|
|
primary key,
|
|
|
|
external_id integer not null,
|
2018-06-08 12:13:02 +03:00
|
|
|
user_photo_url varchar(255),
|
2018-06-04 16:48:04 +03:00
|
|
|
user_photo_id varchar(100),
|
|
|
|
created_at timestamp with time zone,
|
|
|
|
updated_at timestamp with time zone,
|
2018-06-08 13:57:51 +03:00
|
|
|
constraint users_key unique(external_id)
|
2018-06-04 16:48:04 +03:00
|
|
|
);
|