# | Column Name | Nullable | Data Type | Max Length | Description |
---|---|---|---|---|---|
1 | bonus_slab_detail_id | integer | 0 | The primary key of the table, which is also a serial field. | |
2 | bonus_slab_id | integer | 0 | Foreign key to this table. | |
3 | amount_from | money_strict | 0 | The minimum amount of sales to qualify for the bonus slab. | |
4 | amount_to | money_strict | 0 | The maximum amount in the bonus slab. | |
5 | bonus_rate | decimal_strict | 0 | The rate of bonus assigned to the bonus slab. | |
6 | audit_user_id | integer | 0 | Contains the id of the user who last inserted or updated the corresponding row. | |
7 | 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 | bonus_slab_id | bonus_slab_details_bonus_slab_id_fkey | core.bonus_slabs.bonus_slab_id |
6 | audit_user_id | bonus_slab_details_audit_user_id_fkey | office.users.user_id |
Index Name | Owner | Access Method | Definition | Description |
---|---|---|---|---|
bonus_slab_details_pkey | postgres | btree | bonus_slab_detail_id |
Constraint Name | Description |
---|---|
bonus_slab_details_amounts_chk CHECK (amount_to::numeric > amount_from::numeric) |
# | Column Name | Default |
---|---|---|
1 | bonus_slab_detail_id | nextval('core.bonus_slab_details_bonus_slab_detail_id_seq'::regclass) |
7 | audit_ts | now() |
Trigger Name | Targets | On Event | Timing | Condition | Order | Orientation | Description |
---|