| Columns | |||
|---|---|---|---|
| * | id | serial | |
| * | uid | uuid DEFAULT uuid_generate_v4() | |
| * | name | text | |
| * | version | text | |
| * | attributes_json | jsonb DEFAULT '{}'::jsonb | |
| * | require_promo_code_for_registration | bool DEFAULT false | |
| * | default_new_registration_license_key | text DEFAULT 'ADMIN'::text | |
| * | default_new_user_licensekey | text DEFAULT 'USER'::text | |
| Indexes | |||
| pk_application | ON id | ||
| application_uid_key | ON uid | ||
| Columns | |||
|---|---|---|---|
| * | id | serial | |
| * | application_id | integer | |
| * | name | text | |
| * | license_type_key | text | |
| * | active | bool DEFAULT true | |
| Indexes | |||
| pk_license_type | ON id | ||
| Foreign Keys | |||
| fk_license_type_application | ( application_id ) ref application (id) | ||
| Columns | |||
|---|---|---|---|
| * | id | serial | |
| * | referencing_organization_id | integer | |
| * | referenced_organization_id | integer | |
| * | organization_reference_type | "fbkt_login"."organization_reference_type" | |
| Indexes | |||
| pk_organization_reference | ON id | ||
| Foreign Keys | |||
| fk_organization_reference_referenced_organization | ( referenced_organization_id ) ref organization (id) | ||
| fk_organization_reference_referencing_organization | ( referencing_organization_id ) ref organization (id) | ||
| Columns | |||
|---|---|---|---|
| * | id | serial | |
| * | license_type_id | integer | |
| * | name | text | |
| expiration_date | timestamp | ||
| * | the_promo_code | text | |
| * | attributes_json | jsonb DEFAULT '{}'::jsonb | |
| Indexes | |||
| pk_promo_code | ON id | ||
| promo_code_the_promo_code_key | ON the_promo_code | ||
| Foreign Keys | |||
| fk_promo_code_license_type | ( license_type_id ) ref license_type (id) | ||
| Columns | |||
|---|---|---|---|
| * | id | serial | |
| * | contact_id | integer | |
| * | login | text | |
| * | hashed_password | text | |
| entity_filters_json | text | ||
| Indexes | |||
| pk_user_login | ON id | ||
| Foreign Keys | |||
| fk_user_login_contact | ( contact_id ) ref contact (id) | ||
| Columns | |||
|---|---|---|---|
| * | id | serial | |
| * | organization_id | integer | |
| contact_id | integer | ||
| * | license_type_id | integer | |
| activation_date | timestamp | ||
| expiration_date | timestamp | ||
| promo_code_id | integer | ||
| * | attributes_json | jsonb DEFAULT '{}'::jsonb | |
| * | status | "fbkt_login"."license_status" | |
| Indexes | |||
| pk_license | ON id | ||
| Foreign Keys | |||
| fk_license_contact | ( contact_id ) ref contact (id) | ||
| fk_license_status_type | ( ) ref permission () | ||
| fk_license_type | ( license_type_id ) ref license_type (id) | ||
| fk_license_organization | ( organization_id ) ref organization (id) | ||
| fk_license_promo_code | ( promo_code_id ) ref promo_code (id) | ||
| Columns | |||
|---|---|---|---|
| * | id | serial | |
| * | license_id | integer | |
| * | permission_id | integer | |
| Indexes | |||
| pk_license_permission | ON id | ||
| Foreign Keys | |||
| fk_license_permission_license | ( license_id ) ref license (id) | ||
| fk_license_permission_permission | ( permission_id ) ref permission (id) | ||
| Columns | |||
|---|---|---|---|
| * | id | serial | |
| * | name | text | |
| Indexes | |||
| pk_permission | ON id | ||
| Columns | |||
|---|---|---|---|
| * | id | serial | |
| * | user_login_id | integer | |
| * | token | uuid | |
| * | expiration_date | timestamp | |
| Indexes | |||
| pk_login_token | ON id | ||
| Foreign Keys | |||
| fk_login_token_user_login | ( user_login_id ) ref user_login (id) | ||
| Columns | |||
|---|---|---|---|
| * | id | serial | |
| * | uid | uuid DEFAULT uuid_generate_v4() | |
| name | text | ||
| geo_json | jsonb | ||
| geom | geometry | ||
| address_1 | text | ||
| address_2 | text | ||
| city | text | ||
| county | text | ||
| state | text | ||
| country | text | ||
| postal_code | text | ||
| * | attributes_json | jsonb DEFAULT '{}'::jsonb | |
| Indexes | |||
| pk_location | ON id | ||
| location_uid_key | ON uid | ||
| Columns | |||
|---|---|---|---|
| * | id | serial | |
| * | organization_id | integer | |
| * | name | text | |
| * | attributes_json | jsonb DEFAULT '{}'::jsonb | |
| location_id | integer | ||
| * | inactive | bool DEFAULT false | |
| Indexes | |||
| pk_facility | ON id | ||
| Foreign Keys | |||
| fk_facility_location | ( location_id ) ref location (id) | ||
| fk_facility_organization | ( organization_id ) ref organization (id) | ||
| Columns | |||
|---|---|---|---|
| * | id | serial | |
| * | uid | uuid DEFAULT uuid_generate_v4() | |
| * | name | text | |
| * | attributes_json | jsonb DEFAULT '{}'::jsonb | |
| location_id | integer | ||
| Indexes | |||
| pk_organization | ON id | ||
| organization_uid_key | ON uid | ||
| Foreign Keys | |||
| fk_organization_location | ( location_id ) ref location (id) | ||
| Columns | |||
|---|---|---|---|
| * | id | serial | |
| * | uid | uuid DEFAULT uuid_generate_v4() | |
| * | organization_id | integer | |
| * | first_name | text | |
| * | last_name | text | |
| phone_number | text | ||
| text | |||
| job_title | text | ||
| * | attributes_json | jsonb DEFAULT '{}'::jsonb | |
| location_id | integer | ||
| * | inactive | bool DEFAULT false | |
| Indexes | |||
| pk_contact | ON id | ||
| contact_uid_key | ON uid | ||
| Foreign Keys | |||
| fk_contact_location | ( location_id ) ref location (id) | ||
| fk_contact_organization | ( organization_id ) ref organization (id) | ||