Table core.bonus_slab_details
This table stores information on various rate of bonus.
# Column Name Nullable Data Type Max Length Description
1bonus_slab_detail_idinteger0The primary key of the table, which is also a serial field.
2bonus_slab_idinteger0Foreign key to this table.
3amount_frommoney_strict0The minimum amount of sales to qualify for the bonus slab.
4amount_tomoney_strict0The maximum amount in the bonus slab.
5bonus_ratedecimal_strict0The rate of bonus assigned to the bonus slab.
6audit_user_idinteger0Contains the id of the user who last inserted or updated the corresponding row.
7audit_tstimestamp with time zone0Contains the date and timestamp of the last insert or update action.

Foreign Keys

# 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

Indices

Index Name Owner Access Method Definition Description
bonus_slab_details_pkey postgres btree bonus_slab_detail_id

Check Constraints

Constraint Name Description
bonus_slab_details_amounts_chk
CHECK (amount_to::numeric > amount_from::numeric)

Default Values

# Column Name Default
1 bonus_slab_detail_id nextval('core.bonus_slab_details_bonus_slab_detail_id_seq'::regclass)
7 audit_ts now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description