# | Column Name | Nullable | Data Type | Max Length | Description |
---|---|---|---|---|---|
1 | item_selling_price_id | bigint | 0 | The primary key of this table, which is also a serial field. | |
2 | item_id | integer | 0 | Foreign key to the table core.items. | |
3 | unit_id | integer | 0 | Foreign key to the table core.items. | |
4 | party_type_id | integer | 0 | ||
5 | price_type_id | integer | 0 | ||
6 | includes_tax | boolean | 0 | ||
7 | price | money_strict | 0 | ||
8 | audit_user_id | integer | 0 | Contains the id of the user who last inserted or updated the corresponding row. | |
9 | audit_ts | timestamp with time zone | 0 | Contains the date and timestamp of the last insert or update action. |
# | Column Name | Key Name | References |
---|---|---|---|
2 | item_id | item_selling_prices_item_id_fkey | core.items.item_id |
3 | unit_id | item_selling_prices_unit_id_fkey | core.units.unit_id |
4 | party_type_id | item_selling_prices_party_type_id_fkey | core.party_types.party_type_id |
5 | price_type_id | item_selling_prices_price_type_id_fkey | core.price_types.price_type_id |
8 | audit_user_id | item_selling_prices_audit_user_id_fkey | office.users.user_id |
Index Name | Owner | Access Method | Definition | Description |
---|---|---|---|---|
item_selling_prices_pkey | postgres | btree | item_selling_price_id |
Constraint Name | Description |
---|---|
item_selling_prices_unit_chk CHECK (core.is_valid_unit(item_id, unit_id)) |
# | Column Name | Default |
---|---|---|
1 | item_selling_price_id | nextval('core.item_selling_prices_item_selling_price_id_seq'::regclass) |
6 | includes_tax | false |
9 | audit_ts | now() |
Trigger Name | Targets | On Event | Timing | Condition | Order | Orientation | Description |
---|