{ "namespaces": [ "public" ], "name": "public", "tables": [ { "columns": { "id": { "name": "id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "default": "gen_random_uuid()", "mappedType": "uuid" }, "tenant_id": { "name": "tenant_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "uuid" }, "organization_id": { "name": "organization_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "uuid" }, "sso_config_id": { "name": "sso_config_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "uuid" }, "operation": { "name": "operation", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "text" }, "resource_type": { "name": "resource_type", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "text" }, "resource_id": { "name": "resource_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "uuid" }, "scim_external_id": { "name": "scim_external_id", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "text" }, "response_status": { "name": "response_status", "type": "int", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "integer" }, "error_message": { "name": "error_message", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "text" }, "created_at": { "name": "created_at", "type": "timestamptz", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "length": 6, "mappedType": "datetime" } }, "name": "scim_provisioning_log", "schema": "public", "indexes": [ { "keyName": "scim_provisioning_log_config_created_idx", "columnNames": [ "sso_config_id", "created_at" ], "composite": true, "constraint": false, "primary": false, "unique": false }, { "keyName": "scim_provisioning_log_pkey", "columnNames": [ "id" ], "composite": false, "constraint": true, "primary": true, "unique": true } ], "checks": [], "foreignKeys": {}, "nativeEnums": {} }, { "columns": { "id": { "name": "id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "default": "gen_random_uuid()", "mappedType": "uuid" }, "tenant_id": { "name": "tenant_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "uuid" }, "organization_id": { "name": "organization_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "uuid" }, "sso_config_id": { "name": "sso_config_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "uuid" }, "name": { "name": "name", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "text" }, "token_hash": { "name": "token_hash", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "text" }, "token_prefix": { "name": "token_prefix", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "text" }, "is_active": { "name": "is_active", "type": "boolean", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "default": "true", "mappedType": "boolean" }, "created_by": { "name": "created_by", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "uuid" }, "created_at": { "name": "created_at", "type": "timestamptz", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "length": 6, "mappedType": "datetime" }, "updated_at": { "name": "updated_at", "type": "timestamptz", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "length": 6, "mappedType": "datetime" } }, "name": "scim_tokens", "schema": "public", "indexes": [ { "columnNames": [ "sso_config_id" ], "composite": false, "keyName": "scim_tokens_sso_config_id_idx", "constraint": false, "primary": false, "unique": false }, { "keyName": "scim_tokens_token_prefix_idx", "columnNames": [ "token_prefix" ], "composite": false, "constraint": false, "primary": false, "unique": false }, { "keyName": "scim_tokens_pkey", "columnNames": [ "id" ], "composite": false, "constraint": true, "primary": true, "unique": true } ], "checks": [], "foreignKeys": {}, "nativeEnums": {} }, { "columns": { "id": { "name": "id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "default": "gen_random_uuid()", "mappedType": "uuid" }, "tenant_id": { "name": "tenant_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "uuid" }, "organization_id": { "name": "organization_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "uuid" }, "name": { "name": "name", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "text" }, "protocol": { "name": "protocol", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "text" }, "issuer": { "name": "issuer", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "text" }, "client_id": { "name": "client_id", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "text" }, "client_secret_enc": { "name": "client_secret_enc", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "text" }, "allowed_domains": { "name": "allowed_domains", "type": "jsonb", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "default": "'[]'", "mappedType": "json" }, "jit_enabled": { "name": "jit_enabled", "type": "boolean", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "default": "true", "mappedType": "boolean" }, "auto_link_by_email": { "name": "auto_link_by_email", "type": "boolean", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "default": "true", "mappedType": "boolean" }, "is_active": { "name": "is_active", "type": "boolean", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "default": "false", "mappedType": "boolean" }, "sso_required": { "name": "sso_required", "type": "boolean", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "default": "false", "mappedType": "boolean" }, "app_role_mappings": { "name": "app_role_mappings", "type": "jsonb", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "default": "'{}'", "mappedType": "json" }, "created_at": { "name": "created_at", "type": "timestamptz", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "length": 6, "mappedType": "datetime" }, "updated_at": { "name": "updated_at", "type": "timestamptz", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "length": 6, "mappedType": "datetime" }, "deleted_at": { "name": "deleted_at", "type": "timestamptz", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "length": 6, "mappedType": "datetime" } }, "name": "sso_configs", "schema": "public", "indexes": [ { "keyName": "sso_configs_pkey", "columnNames": [ "id" ], "composite": false, "constraint": true, "primary": true, "unique": true } ], "checks": [], "foreignKeys": {}, "nativeEnums": {} }, { "columns": { "id": { "name": "id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "default": "gen_random_uuid()", "mappedType": "uuid" }, "tenant_id": { "name": "tenant_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "uuid" }, "organization_id": { "name": "organization_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "uuid" }, "sso_config_id": { "name": "sso_config_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "uuid" }, "user_id": { "name": "user_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "uuid" }, "idp_subject": { "name": "idp_subject", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "text" }, "idp_email": { "name": "idp_email", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "text" }, "idp_name": { "name": "idp_name", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "text" }, "idp_groups": { "name": "idp_groups", "type": "jsonb", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "default": "'[]'", "mappedType": "json" }, "external_id": { "name": "external_id", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "text" }, "provisioning_method": { "name": "provisioning_method", "type": "text", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "text" }, "first_login_at": { "name": "first_login_at", "type": "timestamptz", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "length": 6, "mappedType": "datetime" }, "last_login_at": { "name": "last_login_at", "type": "timestamptz", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "length": 6, "mappedType": "datetime" }, "created_at": { "name": "created_at", "type": "timestamptz", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "length": 6, "mappedType": "datetime" }, "updated_at": { "name": "updated_at", "type": "timestamptz", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "length": 6, "mappedType": "datetime" }, "deleted_at": { "name": "deleted_at", "type": "timestamptz", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "length": 6, "mappedType": "datetime" } }, "name": "sso_identities", "schema": "public", "indexes": [ { "columnNames": [ "sso_config_id" ], "composite": false, "keyName": "sso_identities_config_id_idx", "constraint": false, "primary": false, "unique": false }, { "columnNames": [ "user_id" ], "composite": false, "keyName": "sso_identities_user_id_idx", "constraint": false, "primary": false, "unique": false }, { "keyName": "sso_identities_config_external_id_unique", "columnNames": [ "sso_config_id", "external_id" ], "composite": true, "constraint": true, "primary": false, "unique": true }, { "keyName": "sso_identities_config_subject_unique", "columnNames": [ "sso_config_id", "idp_subject" ], "composite": true, "constraint": true, "primary": false, "unique": true }, { "keyName": "sso_identities_config_user_unique", "columnNames": [ "sso_config_id", "user_id" ], "composite": true, "constraint": true, "primary": false, "unique": true }, { "keyName": "sso_identities_pkey", "columnNames": [ "id" ], "composite": false, "constraint": true, "primary": true, "unique": true } ], "checks": [], "foreignKeys": {}, "nativeEnums": {} }, { "columns": { "id": { "name": "id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "default": "gen_random_uuid()", "mappedType": "uuid" }, "tenant_id": { "name": "tenant_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "uuid" }, "user_id": { "name": "user_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "uuid" }, "role_id": { "name": "role_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "uuid" }, "sso_config_id": { "name": "sso_config_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "uuid" }, "created_at": { "name": "created_at", "type": "timestamptz", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "length": 6, "mappedType": "datetime" } }, "name": "sso_role_grants", "schema": "public", "indexes": [ { "columnNames": [ "user_id" ], "composite": false, "keyName": "sso_role_grants_user_id_idx", "constraint": false, "primary": false, "unique": false }, { "keyName": "sso_role_grants_user_role_config_unique", "columnNames": [ "user_id", "role_id", "sso_config_id" ], "composite": true, "constraint": true, "primary": false, "unique": true }, { "keyName": "sso_role_grants_pkey", "columnNames": [ "id" ], "composite": false, "constraint": true, "primary": true, "unique": true } ], "checks": [], "foreignKeys": {}, "nativeEnums": {} }, { "columns": { "id": { "name": "id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "default": "gen_random_uuid()", "mappedType": "uuid" }, "tenant_id": { "name": "tenant_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "mappedType": "uuid" }, "organization_id": { "name": "organization_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "uuid" }, "user_id": { "name": "user_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "uuid" }, "sso_config_id": { "name": "sso_config_id", "type": "uuid", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "mappedType": "uuid" }, "deactivated_at": { "name": "deactivated_at", "type": "timestamptz", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "length": 6, "mappedType": "datetime" }, "reactivated_at": { "name": "reactivated_at", "type": "timestamptz", "unsigned": false, "autoincrement": false, "primary": false, "nullable": true, "length": 6, "mappedType": "datetime" }, "created_at": { "name": "created_at", "type": "timestamptz", "unsigned": false, "autoincrement": false, "primary": false, "nullable": false, "length": 6, "mappedType": "datetime" } }, "name": "sso_user_deactivations", "schema": "public", "indexes": [ { "columnNames": [ "user_id" ], "composite": false, "keyName": "sso_user_deactivations_user_id_idx", "constraint": false, "primary": false, "unique": false }, { "keyName": "sso_user_deactivations_user_config_unique", "columnNames": [ "user_id", "sso_config_id" ], "composite": true, "constraint": true, "primary": false, "unique": true }, { "keyName": "sso_user_deactivations_pkey", "columnNames": [ "id" ], "composite": false, "constraint": true, "primary": true, "unique": true } ], "checks": [], "foreignKeys": {}, "nativeEnums": {} } ], "nativeEnums": {} }