Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | bigserial | 19 | √ | nextval('staff_id_seq'::regclass) |
|
|
Unique ID |
||||
| id_tenant | int4 | 10 | 1 |
|
|
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 |
|
|
Reference to the creator |
|||||
| id_updater | int4 | 10 | null |
|
|
Reference to the last updater |
|||||
| id_user | int4 | 10 | null |
|
|
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 |