Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| user_id | int4 | 10 | null |
|
|
||||||
| app_code | text | 2147483647 | null |
|
|
||||||
| prop_id | int4 | 10 | √ | null |
|
|
|||||
| enabled | bool | 1 | true |
|
|
||||||
| created_at | timestamptz | 35,6 | now() |
|
|
||||||
| language | text | 2147483647 | √ | null |
|
|
PMS interface language for this user at this property. |
||||
| policy_accepted | bool | 1 | false |
|
|
Whether this user accepted the PMS policy for this property. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| unq_user_app_access | Must be unique | Asc/Asc/Asc | user_id + app_code + prop_id |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| chk_user_app_access_app_lower | (app_code = lower(app_code)) |

