| id |
uuid |
2147483647 |
|
|
uuid_generate_v1() |
|
|
| te_id |
int8 |
19 |
√ |
|
new_te() |
|
|
| identifier |
serial |
10 |
|
√ |
nextval('sale_identifier_seq'::regclass) |
|
|
| coupon_id |
int4 |
10 |
√ |
|
null |
|
|
| invoice_number |
int4 |
10 |
√ |
|
null |
|
|
| service_invoice_number |
int4 |
10 |
√ |
|
null |
|
|
| status |
sale_status |
2147483647 |
|
|
|
|
|
| discount_value |
numeric |
20,2 |
√ |
|
null |
|
|
| surcharge_value |
numeric |
20,2 |
√ |
|
null |
|
|
| total_amount |
numeric |
20,2 |
√ |
|
null |
|
|
| open_date |
timestamp |
29,6 |
√ |
|
null |
|
|
| close_date |
timestamp |
29,6 |
√ |
|
null |
|
|
| confirm_date |
timestamp |
29,6 |
√ |
|
null |
|
|
| cancel_date |
timestamp |
29,6 |
√ |
|
null |
|
|
| return_date |
timestamp |
29,6 |
√ |
|
null |
|
|
| expire_date |
timestamp |
29,6 |
√ |
|
null |
|
|
| operation_nature |
text |
2147483647 |
√ |
|
null |
|
|
| client_id |
uuid |
2147483647 |
√ |
|
null |
|
| client.id
|
sale_client_id_fkey R |
|
| client_category_id |
uuid |
2147483647 |
√ |
|
null |
|
|
| cfop_id |
uuid |
2147483647 |
√ |
|
null |
|
|
| salesperson_id |
uuid |
2147483647 |
√ |
|
null |
|
|
| branch_id |
uuid |
2147483647 |
|
|
|
|
| branch.id
|
sale_branch_id_fkey R |
|
| group_id |
uuid |
2147483647 |
√ |
|
null |
|
|
| transporter_id |
uuid |
2147483647 |
√ |
|
null |
|
|
| cost_center_id |
uuid |
2147483647 |
√ |
|
null |
|
|
| paid |
bool |
1 |
√ |
|
false |
|
|
| invoice_id |
uuid |
2147483647 |
√ |
|
null |
|
|
| sale_token_id |
uuid |
2147483647 |
√ |
|
null |
|
|