Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | serial | 10 | √ | nextval('pos_order_id_seq'::regclass) |
|
|
|||||||||||||||||||||||
| user_id | int4 | 10 | √ | null |
|
|
Employee |
||||||||||||||||||||||
| company_id | int4 | 10 | null |
|
|
Company |
|||||||||||||||||||||||
| pricelist_id | int4 | 10 | √ | null |
|
|
Pricelist |
||||||||||||||||||||||
| partner_id | int4 | 10 | √ | null |
|
|
Customer |
||||||||||||||||||||||
| sequence_number | int4 | 10 | √ | null |
|
|
Sequence Number |
||||||||||||||||||||||
| session_id | int4 | 10 | null |
|
|
Session |
|||||||||||||||||||||||
| config_id | int4 | 10 | √ | null |
|
|
Point of Sale |
||||||||||||||||||||||
| account_move | int4 | 10 | √ | null |
|
|
Invoice |
||||||||||||||||||||||
| procurement_group_id | int4 | 10 | √ | null |
|
|
Procurement Group |
||||||||||||||||||||||
| nb_print | int4 | 10 | √ | null |
|
|
Number of Print |
||||||||||||||||||||||
| sale_journal | int4 | 10 | √ | null |
|
|
Sales Journal |
||||||||||||||||||||||
| fiscal_position_id | int4 | 10 | √ | null |
|
|
Fiscal Position |
||||||||||||||||||||||
| create_uid | int4 | 10 | √ | null |
|
|
Created by |
||||||||||||||||||||||
| write_uid | int4 | 10 | √ | null |
|
|
Last Updated by |
||||||||||||||||||||||
| access_token | varchar | 2147483647 | √ | null |
|
|
Security Token |
||||||||||||||||||||||
| name | varchar | 2147483647 | null |
|
|
Order Ref |
|||||||||||||||||||||||
| last_order_preparation_change | varchar | 2147483647 | √ | null |
|
|
Last preparation change |
||||||||||||||||||||||
| state | varchar | 2147483647 | √ | null |
|
|
Status |
||||||||||||||||||||||
| floating_order_name | varchar | 2147483647 | √ | null |
|
|
Order Name |
||||||||||||||||||||||
| pos_reference | varchar | 2147483647 | √ | null |
|
|
Receipt Number |
||||||||||||||||||||||
| ticket_code | varchar | 2147483647 | √ | null |
|
|
Ticket Code |
||||||||||||||||||||||
| uuid | varchar | 2147483647 | √ | null |
|
|
Uuid |
||||||||||||||||||||||
| varchar | 2147483647 | √ | null |
|
|
||||||||||||||||||||||||
| mobile | varchar | 2147483647 | √ | null |
|
|
Mobile |
||||||||||||||||||||||
| shipping_date | date | 13 | √ | null |
|
|
Shipping Date |
||||||||||||||||||||||
| general_note | text | 2147483647 | √ | null |
|
|
General Note |
||||||||||||||||||||||
| amount_difference | numeric | 0 | √ | null |
|
|
Difference |
||||||||||||||||||||||
| amount_tax | numeric | 0 | null |
|
|
Taxes |
|||||||||||||||||||||||
| amount_total | numeric | 0 | null |
|
|
Total |
|||||||||||||||||||||||
| amount_paid | numeric | 0 | null |
|
|
Paid |
|||||||||||||||||||||||
| amount_return | numeric | 0 | null |
|
|
Returned |
|||||||||||||||||||||||
| currency_rate | numeric | 0 | √ | null |
|
|
Currency Rate |
||||||||||||||||||||||
| tip_amount | numeric | 0 | √ | null |
|
|
Tip Amount |
||||||||||||||||||||||
| to_invoice | bool | 1 | √ | null |
|
|
To invoice |
||||||||||||||||||||||
| is_tipped | bool | 1 | √ | null |
|
|
Is this already tipped? |
||||||||||||||||||||||
| has_deleted_line | bool | 1 | √ | null |
|
|
Has Deleted Line |
||||||||||||||||||||||
| date_order | timestamp | 29,6 | √ | null |
|
|
Date |
||||||||||||||||||||||
| create_date | timestamp | 29,6 | √ | null |
|
|
Created on |
||||||||||||||||||||||
| write_date | timestamp | 29,6 | √ | null |
|
|
Last Updated on |
||||||||||||||||||||||
| next_online_payment_amount | numeric | 0 | √ | null |
|
|
Next online payment amount to pay |
||||||||||||||||||||||
| table_id | int4 | 10 | √ | null |
|
|
Table |
||||||||||||||||||||||
| customer_count | int4 | 10 | √ | null |
|
|
Guests |
||||||||||||||||||||||
| takeaway | bool | 1 | √ | null |
|
|
Take Away |
||||||||||||||||||||||
| table_stand_number | varchar | 2147483647 | √ | null |
|
|
Table Stand Number |
||||||||||||||||||||||
| use_self_order_online_payment | bool | 1 | √ | null |
|
|
Use Self Order Online Payment |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| pos_order_pkey | Primary key | Asc | id |
| pos_order__account_move_index | Performance | Asc | account_move |
| pos_order__company_id_index | Performance | Asc | company_id |
| pos_order__date_order_index | Performance | Asc | date_order |
| pos_order__partner_id_index | Performance | Asc | partner_id |
| pos_order__pos_reference_index | Performance | Asc | pos_reference |
| pos_order__session_id_index | Performance | Asc | session_id |
| pos_order__state_index | Performance | Asc | state |
| pos_order__table_id_index | Performance | Asc | table_id |
| pos_order_uuid_unique | Must be unique | Asc | uuid |