Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| wishlist_id | uuid | 2147483647 | null |
|
|
Вишлист (FK на wishlists) |
|||||
| name | text | 2147483647 | null |
|
|
Название предмета |
|||||
| description | text | 2147483647 | √ | null |
|
|
Описание предмета (Markdown) |
||||
| url | text | 2147483647 | √ | null |
|
|
Ссылка на товар |
||||
| price | numeric | 10,2 | √ | null |
|
|
Примерная цена (NUMERIC 10,2) |
||||
| priority | int4 | 10 | null |
|
|
Приоритет (1-высокий, 5-низкий) |
|||||
| is_purchased | bool | 1 | null |
|
|
Флаг купленного предмета |
|||||
| id | uuid | 2147483647 | null |
|
|
Уникальный идентификатор предмета (UUID) |
|||||
| created_at | timestamptz | 35,6 | now() |
|
|
Дата добавления предмета |
|||||
| updated_at | timestamptz | 35,6 | now() |
|
|
Дата последнего обновления |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| wishlist_items_pkey | Primary key | Asc | id |
| ix_wishlist_items_is_purchased | Performance | Asc | is_purchased |
| ix_wishlist_items_wishlist_id | Performance | Asc | wishlist_id |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| chk_wishlist_items_name_length | ((char_length(name) >= 1) AND (char_length(name) <= 500)) |
| chk_wishlist_items_price | ((price IS NULL) OR (price >= (0)::numeric)) |
| chk_wishlist_items_priority | ((priority >= '-100'::integer) AND (priority <= 100)) |

