wallet_tx¶
Колонки¶
| колонка | тип | not null | default |
|---|---|---|---|
id |
"uuid" |
✅ | "gen_random_uuid"() |
user_id |
"uuid" |
`` | |
kind |
"text" |
✅ | `` |
amount |
numeric(12,3) |
✅ | `` |
model |
"text" |
`` | |
meta |
"jsonb" |
`` | |
created_at |
timestamp with time zone |
✅ | "now"() |
Ограничения¶
CONSTRAINT "wallet_tx_pkey" PRIMARY KEY ("id")CONSTRAINT "wallet_tx_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE CASCADE
Внешние ключи¶
- (user_id) → users(id)