staff

0 rows


Description

Holds all staff records

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id bigserial 19 nextval('staff_id_seq'::regclass)
staff_contract.id_staff fk_staff_contract_id_staff R

Unique ID

id_tenant int4 10 1
tenant.id fk_staff_id_tenant R

Reference to the tenant

created_at timestamp 29,6 now()

Timestamp of creation

updated_at timestamp 29,6 now()

Timestamp of last update

id_creator int4 10 null
user.id fk_staff_id_creator R

Reference to the creator

id_updater int4 10 null
user.id fk_staff_id_updater R

Reference to the last updater

id_user int4 10 null
user.id fk_staff_id_user R

Reference to the user this staff record belongs to

note text 2147483647 null

A note for this staff record

trash_01 bool 1 false

TRUE means this staff record is deleted

Indexes

Constraint Name Type Sort Column(s)
pk_staff_id Primary key Asc id
u_staff_id_user Must be unique Asc id_user

Relationships