users¶
Колонки¶
| колонка | тип | not null | default |
|---|---|---|---|
id |
"uuid" |
✅ | "gen_random_uuid"() |
tg_user_id |
bigint |
✅ | `` |
tg_username |
"text" |
`` | |
plan |
"text" |
✅ | 'free'::"text" |
plan_until |
timestamp with time zone |
`` | |
created_at |
timestamp with time zone |
✅ | "now"() |
lang |
"text" |
✅ | 'ru'::"text" |
Ограничения¶
CONSTRAINT "users_lang_check" CHECK (("lang" = ANY (ARRAY['ru'::"text", 'en'::"text"])))CONSTRAINT "users_pkey" PRIMARY KEY ("id")CONSTRAINT "users_tg_user_id_key" UNIQUE ("tg_user_id")