Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | serial | 10 | √ | nextval('user_id_seq'::regclass) |
|
|
||||||||||
text | 2147483647 | null |
|
|
||||||||||||
password_hash | text | 2147483647 | null |
|
|
|||||||||||
first_name | text | 2147483647 | null |
|
|
|||||||||||
last_name | text | 2147483647 | null |
|
|
|||||||||||
created_at | timestamptz | 35,6 | CURRENT_DATE |
|
|
|||||||||||
created_by | int4 | 10 | null |
|
|
|||||||||||
modified_at | timestamptz | 35,6 | CURRENT_DATE |
|
|
|||||||||||
modified_by | int4 | 10 | null |
|
|
|||||||||||
role_id | serial | 10 | √ | nextval('user_role_id_seq'::regclass) |
|
|
||||||||||
last_login_time | timestamptz | 35,6 | √ | null |
|
|
||||||||||
last_login_data | jsonb | 2147483647 | √ | null |
|
|
||||||||||
status | text | 2147483647 | 'active'::text |
|
|
|||||||||||
last_session_time | timestamptz | 35,6 | √ | null |
|
|
||||||||||
registration_code_id | int8 | 19 | √ | null |
|
|
||||||||||
time_zone | text | 2147483647 | √ | null |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
user_pkey | Primary key | Asc | id |
index_lower_email | Must be unique | ||
index_lower_first_name | Performance | ||
index_lower_last_name | Performance | ||
last_login_time_idx | Performance | Asc | last_login_time |
last_session_time_idx | Performance | Asc/Asc | last_session_time + registration_code_id |
uniq_email | Must be unique | Asc | |
user_status_index | Performance | Asc | status |