Table policy.store_policies
STORE POLICY DEFINES THE RIGHT OF USERS TO ACCESS A STORE. AN ADMINISTRATOR CAN ACCESS ALL THE stores, BY DEFAULT.
# Column Name Nullable Data Type Max Length Description
1store_policy_idbigint0
2written_by_user_idinteger0
3statusboolean0
4audit_user_idinteger0Contains the id of the user who last inserted or updated the corresponding row.
5audit_tstimestamp with time zone0Contains the date and timestamp of the last insert or update action.

Foreign Keys

# Column Name Key Name References
2 written_by_user_id store_policies_written_by_user_id_fkey office.users.user_id
4 audit_user_id store_policies_audit_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
store_policies_pkey postgres btree store_policy_id

Check Constraints

Constraint Name Description

Default Values

# Column Name Default
1 store_policy_id nextval('policy.store_policies_store_policy_id_seq'::regclass)
5 audit_ts now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description