mirror of
https://codeberg.org/MarkusThielker/next-ory.git
synced 2025-04-10 11:58:41 +00:00
4700 lines
No EOL
127 KiB
JSON
4700 lines
No EOL
127 KiB
JSON
{
|
|
"id": "00000000-0000-0000-0000-000000000000",
|
|
"prevId": "",
|
|
"version": "7",
|
|
"dialect": "postgresql",
|
|
"tables": {
|
|
"public.schema_migration": {
|
|
"name": "schema_migration",
|
|
"schema": "",
|
|
"columns": {
|
|
"version": {
|
|
"name": "version",
|
|
"type": "varchar(48)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"version_self": {
|
|
"name": "version_self",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
}
|
|
},
|
|
"indexes": {
|
|
"schema_migration_version_idx": {
|
|
"name": "schema_migration_version_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "version",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"schema_migration_version_self_idx": {
|
|
"name": "schema_migration_version_self_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "version_self",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "int4_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.identity_credentials": {
|
|
"name": "identity_credentials",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"config": {
|
|
"name": "config",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"identity_credential_type_id": {
|
|
"name": "identity_credential_type_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"identity_id": {
|
|
"name": "identity_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"version": {
|
|
"name": "version",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
}
|
|
},
|
|
"indexes": {
|
|
"identity_credentials_id_nid_idx": {
|
|
"name": "identity_credentials_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_credentials_nid_id_idx": {
|
|
"name": "identity_credentials_nid_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_credentials_nid_identity_id_idx": {
|
|
"name": "identity_credentials_nid_identity_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "identity_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"identity_credentials_identity_id_fkey": {
|
|
"name": "identity_credentials_identity_id_fkey",
|
|
"tableFrom": "identity_credentials",
|
|
"tableTo": "identities",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"identity_credentials_identity_credential_type_id_fkey": {
|
|
"name": "identity_credentials_identity_credential_type_id_fkey",
|
|
"tableFrom": "identity_credentials",
|
|
"tableTo": "identity_credential_types",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_credential_type_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"identity_credentials_nid_fk_idx": {
|
|
"name": "identity_credentials_nid_fk_idx",
|
|
"tableFrom": "identity_credentials",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.identity_credential_types": {
|
|
"name": "identity_credential_types",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "varchar(32)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {
|
|
"identity_credential_types_name_idx": {
|
|
"name": "identity_credential_types_name_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "name",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.selfservice_login_flows": {
|
|
"name": "selfservice_login_flows",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"request_url": {
|
|
"name": "request_url",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"issued_at": {
|
|
"name": "issued_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "CURRENT_TIMESTAMP"
|
|
},
|
|
"expires_at": {
|
|
"name": "expires_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"active_method": {
|
|
"name": "active_method",
|
|
"type": "varchar(32)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"csrf_token": {
|
|
"name": "csrf_token",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"forced": {
|
|
"name": "forced",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
},
|
|
"type": {
|
|
"name": "type",
|
|
"type": "varchar(16)",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'browser'"
|
|
},
|
|
"ui": {
|
|
"name": "ui",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"requested_aal": {
|
|
"name": "requested_aal",
|
|
"type": "varchar(4)",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'aal1'"
|
|
},
|
|
"internal_context": {
|
|
"name": "internal_context",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"oauth2_login_challenge": {
|
|
"name": "oauth2_login_challenge",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"oauth2_login_challenge_data": {
|
|
"name": "oauth2_login_challenge_data",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"state": {
|
|
"name": "state",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"submit_count": {
|
|
"name": "submit_count",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"organization_id": {
|
|
"name": "organization_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"selfservice_login_flows_id_nid_idx": {
|
|
"name": "selfservice_login_flows_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"selfservice_login_flows_nid_id_idx": {
|
|
"name": "selfservice_login_flows_nid_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"selfservice_login_flows_nid_fk_idx": {
|
|
"name": "selfservice_login_flows_nid_fk_idx",
|
|
"tableFrom": "selfservice_login_flows",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.networks": {
|
|
"name": "networks",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.selfservice_registration_flows": {
|
|
"name": "selfservice_registration_flows",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"request_url": {
|
|
"name": "request_url",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"issued_at": {
|
|
"name": "issued_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "CURRENT_TIMESTAMP"
|
|
},
|
|
"expires_at": {
|
|
"name": "expires_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"active_method": {
|
|
"name": "active_method",
|
|
"type": "varchar(32)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"csrf_token": {
|
|
"name": "csrf_token",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"type": {
|
|
"name": "type",
|
|
"type": "varchar(16)",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'browser'"
|
|
},
|
|
"ui": {
|
|
"name": "ui",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"internal_context": {
|
|
"name": "internal_context",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"oauth2_login_challenge": {
|
|
"name": "oauth2_login_challenge",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"oauth2_login_challenge_data": {
|
|
"name": "oauth2_login_challenge_data",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"state": {
|
|
"name": "state",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"submit_count": {
|
|
"name": "submit_count",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"organization_id": {
|
|
"name": "organization_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"selfservice_registration_flows_id_nid_idx": {
|
|
"name": "selfservice_registration_flows_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"selfservice_registration_flows_nid_id_idx": {
|
|
"name": "selfservice_registration_flows_nid_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"selfservice_registration_flows_nid_fk_idx": {
|
|
"name": "selfservice_registration_flows_nid_fk_idx",
|
|
"tableFrom": "selfservice_registration_flows",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.identities": {
|
|
"name": "identities",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"schema_id": {
|
|
"name": "schema_id",
|
|
"type": "varchar(2048)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"traits": {
|
|
"name": "traits",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"state": {
|
|
"name": "state",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'active'"
|
|
},
|
|
"state_changed_at": {
|
|
"name": "state_changed_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"metadata_public": {
|
|
"name": "metadata_public",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"metadata_admin": {
|
|
"name": "metadata_admin",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"available_aal": {
|
|
"name": "available_aal",
|
|
"type": "varchar(4)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"organization_id": {
|
|
"name": "organization_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"identities_id_nid_idx": {
|
|
"name": "identities_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identities_nid_id_idx": {
|
|
"name": "identities_nid_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"identities_nid_fk_idx": {
|
|
"name": "identities_nid_fk_idx",
|
|
"tableFrom": "identities",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.identity_credential_identifiers": {
|
|
"name": "identity_credential_identifiers",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"identifier": {
|
|
"name": "identifier",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"identity_credential_id": {
|
|
"name": "identity_credential_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"identity_credential_type_id": {
|
|
"name": "identity_credential_type_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {
|
|
"identity_credential_identifiers_id_nid_idx": {
|
|
"name": "identity_credential_identifiers_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_credential_identifiers_identifier_nid_type_uq_idx": {
|
|
"name": "identity_credential_identifiers_identifier_nid_type_uq_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "identity_credential_type_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "identifier",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_credential_identifiers_nid_i_ici_idx": {
|
|
"name": "identity_credential_identifiers_nid_i_ici_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "identifier",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "identity_credential_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_credential_identifiers_nid_id_idx": {
|
|
"name": "identity_credential_identifiers_nid_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_credential_identifiers_nid_identity_credential_id_idx": {
|
|
"name": "identity_credential_identifiers_nid_identity_credential_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "identity_credential_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"identity_credential_identifiers_identity_credential_id_fkey": {
|
|
"name": "identity_credential_identifiers_identity_credential_id_fkey",
|
|
"tableFrom": "identity_credential_identifiers",
|
|
"tableTo": "identity_credentials",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_credential_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"identity_credential_identifiers_nid_fk_idx": {
|
|
"name": "identity_credential_identifiers_nid_fk_idx",
|
|
"tableFrom": "identity_credential_identifiers",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
},
|
|
"identity_credential_identifiers_type_id_fk_idx": {
|
|
"name": "identity_credential_identifiers_type_id_fk_idx",
|
|
"tableFrom": "identity_credential_identifiers",
|
|
"tableTo": "identity_credential_types",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_credential_type_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.identity_verifiable_addresses": {
|
|
"name": "identity_verifiable_addresses",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"status": {
|
|
"name": "status",
|
|
"type": "varchar(16)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"via": {
|
|
"name": "via",
|
|
"type": "varchar(16)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"verified": {
|
|
"name": "verified",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"value": {
|
|
"name": "value",
|
|
"type": "varchar(400)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"verified_at": {
|
|
"name": "verified_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"identity_id": {
|
|
"name": "identity_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"identity_verifiable_addresses_id_nid_idx": {
|
|
"name": "identity_verifiable_addresses_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_verifiable_addresses_nid_id_idx": {
|
|
"name": "identity_verifiable_addresses_nid_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_verifiable_addresses_nid_identity_id_idx": {
|
|
"name": "identity_verifiable_addresses_nid_identity_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "identity_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_verifiable_addresses_status_via_idx": {
|
|
"name": "identity_verifiable_addresses_status_via_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "via",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "value",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_verifiable_addresses_status_via_uq_idx": {
|
|
"name": "identity_verifiable_addresses_status_via_uq_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "via",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "value",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"identity_verifiable_addresses_identity_id_fkey": {
|
|
"name": "identity_verifiable_addresses_identity_id_fkey",
|
|
"tableFrom": "identity_verifiable_addresses",
|
|
"tableTo": "identities",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"identity_verifiable_addresses_nid_fk_idx": {
|
|
"name": "identity_verifiable_addresses_nid_fk_idx",
|
|
"tableFrom": "identity_verifiable_addresses",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.courier_messages": {
|
|
"name": "courier_messages",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"type": {
|
|
"name": "type",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"status": {
|
|
"name": "status",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"body": {
|
|
"name": "body",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"subject": {
|
|
"name": "subject",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"recipient": {
|
|
"name": "recipient",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"template_type": {
|
|
"name": "template_type",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"template_data": {
|
|
"name": "template_data",
|
|
"type": "bytea",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"send_count": {
|
|
"name": "send_count",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"channel": {
|
|
"name": "channel",
|
|
"type": "varchar(32)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"courier_messages_id_nid_idx": {
|
|
"name": "courier_messages_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"courier_messages_nid_created_at_id_idx": {
|
|
"name": "courier_messages_nid_created_at_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "timestamp_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "created_at",
|
|
"asc": false,
|
|
"nulls": "first",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"courier_messages_nid_id_idx": {
|
|
"name": "courier_messages_nid_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"courier_messages_nid_recipient_created_at_id_idx": {
|
|
"name": "courier_messages_nid_recipient_created_at_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "timestamp_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "recipient",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "created_at",
|
|
"asc": false,
|
|
"nulls": "first",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"courier_messages_nid_status_created_at_id_idx": {
|
|
"name": "courier_messages_nid_status_created_at_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "status",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "timestamp_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "created_at",
|
|
"asc": false,
|
|
"nulls": "first",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"courier_messages_status_idx": {
|
|
"name": "courier_messages_status_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "status",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "int4_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"courier_messages_nid_fk_idx": {
|
|
"name": "courier_messages_nid_fk_idx",
|
|
"tableFrom": "courier_messages",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.selfservice_errors": {
|
|
"name": "selfservice_errors",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"errors": {
|
|
"name": "errors",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"seen_at": {
|
|
"name": "seen_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"was_seen": {
|
|
"name": "was_seen",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"csrf_token": {
|
|
"name": "csrf_token",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"selfservice_errors_errors_nid_id_idx": {
|
|
"name": "selfservice_errors_errors_nid_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"selfservice_errors_nid_fk_idx": {
|
|
"name": "selfservice_errors_nid_fk_idx",
|
|
"tableFrom": "selfservice_errors",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.selfservice_verification_flows": {
|
|
"name": "selfservice_verification_flows",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"request_url": {
|
|
"name": "request_url",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"issued_at": {
|
|
"name": "issued_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "CURRENT_TIMESTAMP"
|
|
},
|
|
"expires_at": {
|
|
"name": "expires_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"csrf_token": {
|
|
"name": "csrf_token",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"type": {
|
|
"name": "type",
|
|
"type": "varchar(16)",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'browser'"
|
|
},
|
|
"state": {
|
|
"name": "state",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'show_form'"
|
|
},
|
|
"active_method": {
|
|
"name": "active_method",
|
|
"type": "varchar(32)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"ui": {
|
|
"name": "ui",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"submit_count": {
|
|
"name": "submit_count",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"oauth2_login_challenge": {
|
|
"name": "oauth2_login_challenge",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"session_id": {
|
|
"name": "session_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"identity_id": {
|
|
"name": "identity_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"authentication_methods": {
|
|
"name": "authentication_methods",
|
|
"type": "json",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"selfservice_verification_flows_id_nid_idx": {
|
|
"name": "selfservice_verification_flows_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"selfservice_verification_flows_nid_id_idx": {
|
|
"name": "selfservice_verification_flows_nid_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"selfservice_verification_flows_nid_fk_idx": {
|
|
"name": "selfservice_verification_flows_nid_fk_idx",
|
|
"tableFrom": "selfservice_verification_flows",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.selfservice_settings_flows": {
|
|
"name": "selfservice_settings_flows",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"request_url": {
|
|
"name": "request_url",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"issued_at": {
|
|
"name": "issued_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "CURRENT_TIMESTAMP"
|
|
},
|
|
"expires_at": {
|
|
"name": "expires_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"identity_id": {
|
|
"name": "identity_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"active_method": {
|
|
"name": "active_method",
|
|
"type": "varchar(32)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"state": {
|
|
"name": "state",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'show_form'"
|
|
},
|
|
"type": {
|
|
"name": "type",
|
|
"type": "varchar(16)",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'browser'"
|
|
},
|
|
"ui": {
|
|
"name": "ui",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"internal_context": {
|
|
"name": "internal_context",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {
|
|
"selfservice_settings_flows_id_nid_idx": {
|
|
"name": "selfservice_settings_flows_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"selfservice_settings_flows_identity_id_nid_idx": {
|
|
"name": "selfservice_settings_flows_identity_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "identity_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"selfservice_settings_flows_nid_id_idx": {
|
|
"name": "selfservice_settings_flows_nid_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"selfservice_profile_management_requests_identity_id_fkey": {
|
|
"name": "selfservice_profile_management_requests_identity_id_fkey",
|
|
"tableFrom": "selfservice_settings_flows",
|
|
"tableTo": "identities",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"selfservice_settings_flows_nid_fk_idx": {
|
|
"name": "selfservice_settings_flows_nid_fk_idx",
|
|
"tableFrom": "selfservice_settings_flows",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.continuity_containers": {
|
|
"name": "continuity_containers",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"identity_id": {
|
|
"name": "identity_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"name": {
|
|
"name": "name",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"payload": {
|
|
"name": "payload",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"expires_at": {
|
|
"name": "expires_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"continuity_containers_id_nid_idx": {
|
|
"name": "continuity_containers_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"continuity_containers_identity_id_nid_idx": {
|
|
"name": "continuity_containers_identity_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "identity_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"continuity_containers_nid_id_idx": {
|
|
"name": "continuity_containers_nid_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"continuity_containers_identity_id_fkey": {
|
|
"name": "continuity_containers_identity_id_fkey",
|
|
"tableFrom": "continuity_containers",
|
|
"tableTo": "identities",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"continuity_containers_nid_fk_idx": {
|
|
"name": "continuity_containers_nid_fk_idx",
|
|
"tableFrom": "continuity_containers",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.sessions": {
|
|
"name": "sessions",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"issued_at": {
|
|
"name": "issued_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "CURRENT_TIMESTAMP"
|
|
},
|
|
"expires_at": {
|
|
"name": "expires_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"authenticated_at": {
|
|
"name": "authenticated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"identity_id": {
|
|
"name": "identity_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"token": {
|
|
"name": "token",
|
|
"type": "varchar(39)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"active": {
|
|
"name": "active",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": false
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"logout_token": {
|
|
"name": "logout_token",
|
|
"type": "varchar(39)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"aal": {
|
|
"name": "aal",
|
|
"type": "varchar(4)",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'aal1'"
|
|
},
|
|
"authentication_methods": {
|
|
"name": "authentication_methods",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {
|
|
"sessions_id_nid_idx": {
|
|
"name": "sessions_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"sessions_identity_id_nid_sorted_idx": {
|
|
"name": "sessions_identity_id_nid_sorted_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "identity_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "timestamp_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "timestamp_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "authenticated_at",
|
|
"asc": false,
|
|
"nulls": "first",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"sessions_logout_token_uq_idx": {
|
|
"name": "sessions_logout_token_uq_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "logout_token",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"sessions_nid_created_at_id_idx": {
|
|
"name": "sessions_nid_created_at_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "created_at",
|
|
"asc": false,
|
|
"nulls": "first",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"sessions_nid_id_identity_id_idx": {
|
|
"name": "sessions_nid_id_identity_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "identity_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"sessions_token_nid_idx": {
|
|
"name": "sessions_token_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "token",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"sessions_token_uq_idx": {
|
|
"name": "sessions_token_uq_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "token",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"sessions_identity_id_fkey": {
|
|
"name": "sessions_identity_id_fkey",
|
|
"tableFrom": "sessions",
|
|
"tableTo": "identities",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"sessions_nid_fk_idx": {
|
|
"name": "sessions_nid_fk_idx",
|
|
"tableFrom": "sessions",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.identity_recovery_addresses": {
|
|
"name": "identity_recovery_addresses",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"via": {
|
|
"name": "via",
|
|
"type": "varchar(16)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"value": {
|
|
"name": "value",
|
|
"type": "varchar(400)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"identity_id": {
|
|
"name": "identity_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"identity_recovery_addresses_id_nid_idx": {
|
|
"name": "identity_recovery_addresses_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_recovery_addresses_nid_id_idx": {
|
|
"name": "identity_recovery_addresses_nid_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_recovery_addresses_nid_identity_id_idx": {
|
|
"name": "identity_recovery_addresses_nid_identity_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "identity_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_recovery_addresses_status_via_idx": {
|
|
"name": "identity_recovery_addresses_status_via_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "via",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "value",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_recovery_addresses_status_via_uq_idx": {
|
|
"name": "identity_recovery_addresses_status_via_uq_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "via",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "value",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"identity_recovery_addresses_identity_id_fkey": {
|
|
"name": "identity_recovery_addresses_identity_id_fkey",
|
|
"tableFrom": "identity_recovery_addresses",
|
|
"tableTo": "identities",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"identity_recovery_addresses_nid_fk_idx": {
|
|
"name": "identity_recovery_addresses_nid_fk_idx",
|
|
"tableFrom": "identity_recovery_addresses",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.identity_verification_tokens": {
|
|
"name": "identity_verification_tokens",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"token": {
|
|
"name": "token",
|
|
"type": "varchar(64)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"used": {
|
|
"name": "used",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
},
|
|
"used_at": {
|
|
"name": "used_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"expires_at": {
|
|
"name": "expires_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"issued_at": {
|
|
"name": "issued_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"identity_verifiable_address_id": {
|
|
"name": "identity_verifiable_address_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"selfservice_verification_flow_id": {
|
|
"name": "selfservice_verification_flow_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"identity_verification_tokens_id_nid_idx": {
|
|
"name": "identity_verification_tokens_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_verification_tokens_nid_id_idx": {
|
|
"name": "identity_verification_tokens_nid_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_verification_tokens_token_nid_used_flow_id_idx": {
|
|
"name": "identity_verification_tokens_token_nid_used_flow_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "token",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "bool_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "used",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "selfservice_verification_flow_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_verification_tokens_token_uq_idx": {
|
|
"name": "identity_verification_tokens_token_uq_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "token",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_verification_tokens_verifiable_address_id_idx": {
|
|
"name": "identity_verification_tokens_verifiable_address_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "identity_verifiable_address_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_verification_tokens_verification_flow_id_idx": {
|
|
"name": "identity_verification_tokens_verification_flow_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "selfservice_verification_flow_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"identity_verification_tokens_identity_verifiable_address_i_fkey": {
|
|
"name": "identity_verification_tokens_identity_verifiable_address_i_fkey",
|
|
"tableFrom": "identity_verification_tokens",
|
|
"tableTo": "identity_verifiable_addresses",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_verifiable_address_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"identity_verification_tokens_selfservice_verification_flow_fkey": {
|
|
"name": "identity_verification_tokens_selfservice_verification_flow_fkey",
|
|
"tableFrom": "identity_verification_tokens",
|
|
"tableTo": "selfservice_verification_flows",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"selfservice_verification_flow_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"identity_verification_tokens_nid_fk_idx": {
|
|
"name": "identity_verification_tokens_nid_fk_idx",
|
|
"tableFrom": "identity_verification_tokens",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.selfservice_recovery_flows": {
|
|
"name": "selfservice_recovery_flows",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"request_url": {
|
|
"name": "request_url",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"issued_at": {
|
|
"name": "issued_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "CURRENT_TIMESTAMP"
|
|
},
|
|
"expires_at": {
|
|
"name": "expires_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"active_method": {
|
|
"name": "active_method",
|
|
"type": "varchar(32)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"csrf_token": {
|
|
"name": "csrf_token",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"state": {
|
|
"name": "state",
|
|
"type": "varchar(32)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"recovered_identity_id": {
|
|
"name": "recovered_identity_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"type": {
|
|
"name": "type",
|
|
"type": "varchar(16)",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'browser'"
|
|
},
|
|
"ui": {
|
|
"name": "ui",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"submit_count": {
|
|
"name": "submit_count",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"skip_csrf_check": {
|
|
"name": "skip_csrf_check",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"selfservice_recovery_flows_id_nid_idx": {
|
|
"name": "selfservice_recovery_flows_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"selfservice_recovery_flows_nid_id_idx": {
|
|
"name": "selfservice_recovery_flows_nid_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"selfservice_recovery_flows_recovered_identity_id_nid_idx": {
|
|
"name": "selfservice_recovery_flows_recovered_identity_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "recovered_identity_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"selfservice_recovery_requests_recovered_identity_id_fkey": {
|
|
"name": "selfservice_recovery_requests_recovered_identity_id_fkey",
|
|
"tableFrom": "selfservice_recovery_flows",
|
|
"tableTo": "identities",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"recovered_identity_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"selfservice_recovery_flows_nid_fk_idx": {
|
|
"name": "selfservice_recovery_flows_nid_fk_idx",
|
|
"tableFrom": "selfservice_recovery_flows",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.identity_recovery_tokens": {
|
|
"name": "identity_recovery_tokens",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"token": {
|
|
"name": "token",
|
|
"type": "varchar(64)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"used": {
|
|
"name": "used",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
},
|
|
"used_at": {
|
|
"name": "used_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"identity_recovery_address_id": {
|
|
"name": "identity_recovery_address_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"selfservice_recovery_flow_id": {
|
|
"name": "selfservice_recovery_flow_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"expires_at": {
|
|
"name": "expires_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'2000-01-01 00:00:00'"
|
|
},
|
|
"issued_at": {
|
|
"name": "issued_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'2000-01-01 00:00:00'"
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"identity_id": {
|
|
"name": "identity_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"token_type": {
|
|
"name": "token_type",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
}
|
|
},
|
|
"indexes": {
|
|
"identity_recovery_addresses_code_uq_idx": {
|
|
"name": "identity_recovery_addresses_code_uq_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "token",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": true,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_recovery_tokens_id_nid_idx": {
|
|
"name": "identity_recovery_tokens_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_recovery_tokens_identity_id_nid_idx": {
|
|
"name": "identity_recovery_tokens_identity_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "identity_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_recovery_tokens_identity_recovery_address_id_idx": {
|
|
"name": "identity_recovery_tokens_identity_recovery_address_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "identity_recovery_address_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_recovery_tokens_nid_id_idx": {
|
|
"name": "identity_recovery_tokens_nid_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_recovery_tokens_selfservice_recovery_flow_id_idx": {
|
|
"name": "identity_recovery_tokens_selfservice_recovery_flow_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "selfservice_recovery_flow_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_recovery_tokens_token_nid_used_idx": {
|
|
"name": "identity_recovery_tokens_token_nid_used_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "bool_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "token",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "used",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "bool_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"identity_recovery_tokens_selfservice_recovery_request_id_fkey": {
|
|
"name": "identity_recovery_tokens_selfservice_recovery_request_id_fkey",
|
|
"tableFrom": "identity_recovery_tokens",
|
|
"tableTo": "selfservice_recovery_flows",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"selfservice_recovery_flow_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"identity_recovery_tokens_nid_fk_idx": {
|
|
"name": "identity_recovery_tokens_nid_fk_idx",
|
|
"tableFrom": "identity_recovery_tokens",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
},
|
|
"identity_recovery_tokens_identity_recovery_address_id_fkey": {
|
|
"name": "identity_recovery_tokens_identity_recovery_address_id_fkey",
|
|
"tableFrom": "identity_recovery_tokens",
|
|
"tableTo": "identity_recovery_addresses",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_recovery_address_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"identity_recovery_tokens_identity_id_fk_idx": {
|
|
"name": "identity_recovery_tokens_identity_id_fk_idx",
|
|
"tableFrom": "identity_recovery_tokens",
|
|
"tableTo": "identities",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {
|
|
"identity_recovery_tokens_token_type_ck": {
|
|
"name": "identity_recovery_tokens_token_type_ck",
|
|
"value": "(token_type = 1) OR (token_type = 2)"
|
|
}
|
|
},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.identity_recovery_codes": {
|
|
"name": "identity_recovery_codes",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"code": {
|
|
"name": "code",
|
|
"type": "varchar(64)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"used_at": {
|
|
"name": "used_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"identity_recovery_address_id": {
|
|
"name": "identity_recovery_address_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"code_type": {
|
|
"name": "code_type",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"expires_at": {
|
|
"name": "expires_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'2000-01-01 00:00:00'"
|
|
},
|
|
"issued_at": {
|
|
"name": "issued_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'2000-01-01 00:00:00'"
|
|
},
|
|
"selfservice_recovery_flow_id": {
|
|
"name": "selfservice_recovery_flow_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"identity_id": {
|
|
"name": "identity_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {
|
|
"identity_recovery_codes_flow_id_idx": {
|
|
"name": "identity_recovery_codes_flow_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "selfservice_recovery_flow_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_recovery_codes_id_nid_idx": {
|
|
"name": "identity_recovery_codes_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_recovery_codes_identity_id_nid_idx": {
|
|
"name": "identity_recovery_codes_identity_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "identity_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_recovery_codes_identity_recovery_address_id_nid_idx": {
|
|
"name": "identity_recovery_codes_identity_recovery_address_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "identity_recovery_address_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_recovery_codes_nid_flow_id_idx": {
|
|
"name": "identity_recovery_codes_nid_flow_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "selfservice_recovery_flow_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"identity_recovery_codes_identity_recovery_addresses_id_fk": {
|
|
"name": "identity_recovery_codes_identity_recovery_addresses_id_fk",
|
|
"tableFrom": "identity_recovery_codes",
|
|
"tableTo": "identity_recovery_addresses",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_recovery_address_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"identity_recovery_codes_selfservice_recovery_flows_id_fk": {
|
|
"name": "identity_recovery_codes_selfservice_recovery_flows_id_fk",
|
|
"tableFrom": "identity_recovery_codes",
|
|
"tableTo": "selfservice_recovery_flows",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"selfservice_recovery_flow_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"identity_recovery_codes_identity_id_fk": {
|
|
"name": "identity_recovery_codes_identity_id_fk",
|
|
"tableFrom": "identity_recovery_codes",
|
|
"tableTo": "identities",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
},
|
|
"identity_recovery_codes_networks_id_fk": {
|
|
"name": "identity_recovery_codes_networks_id_fk",
|
|
"tableFrom": "identity_recovery_codes",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.session_devices": {
|
|
"name": "session_devices",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"ip_address": {
|
|
"name": "ip_address",
|
|
"type": "varchar(50)",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "''"
|
|
},
|
|
"user_agent": {
|
|
"name": "user_agent",
|
|
"type": "varchar(512)",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "''"
|
|
},
|
|
"location": {
|
|
"name": "location",
|
|
"type": "varchar(512)",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "''"
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"session_id": {
|
|
"name": "session_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {
|
|
"session_devices_id_nid_idx": {
|
|
"name": "session_devices_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"session_devices_session_id_nid_idx": {
|
|
"name": "session_devices_session_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "session_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"session_metadata_sessions_id_fk": {
|
|
"name": "session_metadata_sessions_id_fk",
|
|
"tableFrom": "session_devices",
|
|
"tableTo": "sessions",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"session_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"session_metadata_nid_fk": {
|
|
"name": "session_metadata_nid_fk",
|
|
"tableFrom": "session_devices",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"unique_session_device": {
|
|
"columns": [
|
|
"ip_address",
|
|
"user_agent",
|
|
"nid",
|
|
"session_id"
|
|
],
|
|
"nullsNotDistinct": false,
|
|
"name": "unique_session_device"
|
|
}
|
|
},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.identity_verification_codes": {
|
|
"name": "identity_verification_codes",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"code_hmac": {
|
|
"name": "code_hmac",
|
|
"type": "varchar(64)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"used_at": {
|
|
"name": "used_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"identity_verifiable_address_id": {
|
|
"name": "identity_verifiable_address_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"expires_at": {
|
|
"name": "expires_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'2000-01-01 00:00:00'"
|
|
},
|
|
"issued_at": {
|
|
"name": "issued_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'2000-01-01 00:00:00'"
|
|
},
|
|
"selfservice_verification_flow_id": {
|
|
"name": "selfservice_verification_flow_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {
|
|
"identity_verification_codes_flow_id_idx": {
|
|
"name": "identity_verification_codes_flow_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "selfservice_verification_flow_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_verification_codes_id_nid_idx": {
|
|
"name": "identity_verification_codes_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_verification_codes_nid_flow_id_idx": {
|
|
"name": "identity_verification_codes_nid_flow_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "selfservice_verification_flow_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_verification_codes_verifiable_address_nid_idx": {
|
|
"name": "identity_verification_codes_verifiable_address_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "identity_verifiable_address_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"identity_verification_codes_identity_verifiable_addresses_id_fk": {
|
|
"name": "identity_verification_codes_identity_verifiable_addresses_id_fk",
|
|
"tableFrom": "identity_verification_codes",
|
|
"tableTo": "identity_verifiable_addresses",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_verifiable_address_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"identity_verification_codes_selfservice_verification_flows_id_f": {
|
|
"name": "identity_verification_codes_selfservice_verification_flows_id_f",
|
|
"tableFrom": "identity_verification_codes",
|
|
"tableTo": "selfservice_verification_flows",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"selfservice_verification_flow_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"identity_verification_codes_networks_id_fk": {
|
|
"name": "identity_verification_codes_networks_id_fk",
|
|
"tableFrom": "identity_verification_codes",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.courier_message_dispatches": {
|
|
"name": "courier_message_dispatches",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"message_id": {
|
|
"name": "message_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"status": {
|
|
"name": "status",
|
|
"type": "varchar(7)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"error": {
|
|
"name": "error",
|
|
"type": "json",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "CURRENT_TIMESTAMP"
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "CURRENT_TIMESTAMP"
|
|
}
|
|
},
|
|
"indexes": {
|
|
"courier_message_dispatches_message_id_idx": {
|
|
"name": "courier_message_dispatches_message_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "message_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "timestamp_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "created_at",
|
|
"asc": false,
|
|
"nulls": "first",
|
|
"opclass": "timestamp_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"courier_message_dispatches_nid_idx": {
|
|
"name": "courier_message_dispatches_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"courier_message_dispatches_message_id_fk": {
|
|
"name": "courier_message_dispatches_message_id_fk",
|
|
"tableFrom": "courier_message_dispatches",
|
|
"tableTo": "courier_messages",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"message_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"courier_message_dispatches_nid_fk": {
|
|
"name": "courier_message_dispatches_nid_fk",
|
|
"tableFrom": "courier_message_dispatches",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.session_token_exchanges": {
|
|
"name": "session_token_exchanges",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"flow_id": {
|
|
"name": "flow_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"session_id": {
|
|
"name": "session_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"init_code": {
|
|
"name": "init_code",
|
|
"type": "varchar(64)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"return_to_code": {
|
|
"name": "return_to_code",
|
|
"type": "varchar(64)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {
|
|
"session_token_exchanges_nid_code_idx": {
|
|
"name": "session_token_exchanges_nid_code_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "init_code",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "text_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"session_token_exchanges_nid_flow_id_idx": {
|
|
"name": "session_token_exchanges_nid_flow_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "flow_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.identity_login_codes": {
|
|
"name": "identity_login_codes",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"code": {
|
|
"name": "code",
|
|
"type": "varchar(64)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"address": {
|
|
"name": "address",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"address_type": {
|
|
"name": "address_type",
|
|
"type": "char(36)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"used_at": {
|
|
"name": "used_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"expires_at": {
|
|
"name": "expires_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'2000-01-01 00:00:00'"
|
|
},
|
|
"issued_at": {
|
|
"name": "issued_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'2000-01-01 00:00:00'"
|
|
},
|
|
"selfservice_login_flow_id": {
|
|
"name": "selfservice_login_flow_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"identity_id": {
|
|
"name": "identity_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "CURRENT_TIMESTAMP"
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "CURRENT_TIMESTAMP"
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {
|
|
"identity_login_codes_flow_id_idx": {
|
|
"name": "identity_login_codes_flow_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "selfservice_login_flow_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_login_codes_id_nid_idx": {
|
|
"name": "identity_login_codes_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_login_codes_identity_id_idx": {
|
|
"name": "identity_login_codes_identity_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "identity_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_login_codes_nid_flow_id_idx": {
|
|
"name": "identity_login_codes_nid_flow_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "selfservice_login_flow_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"identity_login_codes_selfservice_login_flows_id_fk": {
|
|
"name": "identity_login_codes_selfservice_login_flows_id_fk",
|
|
"tableFrom": "identity_login_codes",
|
|
"tableTo": "selfservice_login_flows",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"selfservice_login_flow_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"identity_login_codes_networks_id_fk": {
|
|
"name": "identity_login_codes_networks_id_fk",
|
|
"tableFrom": "identity_login_codes",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
},
|
|
"identity_login_codes_identity_id_fk": {
|
|
"name": "identity_login_codes_identity_id_fk",
|
|
"tableFrom": "identity_login_codes",
|
|
"tableTo": "identities",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"identity_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.identity_registration_codes": {
|
|
"name": "identity_registration_codes",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true
|
|
},
|
|
"code": {
|
|
"name": "code",
|
|
"type": "varchar(64)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"address": {
|
|
"name": "address",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"address_type": {
|
|
"name": "address_type",
|
|
"type": "char(36)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"used_at": {
|
|
"name": "used_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"expires_at": {
|
|
"name": "expires_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'2000-01-01 00:00:00'"
|
|
},
|
|
"issued_at": {
|
|
"name": "issued_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'2000-01-01 00:00:00'"
|
|
},
|
|
"selfservice_registration_flow_id": {
|
|
"name": "selfservice_registration_flow_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "CURRENT_TIMESTAMP"
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "timestamp",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "CURRENT_TIMESTAMP"
|
|
},
|
|
"nid": {
|
|
"name": "nid",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"indexes": {
|
|
"identity_registration_codes_flow_id_idx": {
|
|
"name": "identity_registration_codes_flow_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "selfservice_registration_flow_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_registration_codes_id_nid_idx": {
|
|
"name": "identity_registration_codes_id_nid_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"identity_registration_codes_nid_flow_id_idx": {
|
|
"name": "identity_registration_codes_nid_flow_id_idx",
|
|
"columns": [
|
|
{
|
|
"expression": "nid",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
},
|
|
{
|
|
"expression": "selfservice_registration_flow_id",
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "uuid_ops",
|
|
"isExpression": false
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"identity_registration_codes_selfservice_registration_flows_id_f": {
|
|
"name": "identity_registration_codes_selfservice_registration_flows_id_f",
|
|
"tableFrom": "identity_registration_codes",
|
|
"tableTo": "selfservice_registration_flows",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"selfservice_registration_flow_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
},
|
|
"identity_registration_codes_networks_id_fk": {
|
|
"name": "identity_registration_codes_networks_id_fk",
|
|
"tableFrom": "identity_registration_codes",
|
|
"tableTo": "networks",
|
|
"schemaTo": "public",
|
|
"columnsFrom": [
|
|
"nid"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "restrict"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraints": {},
|
|
"policies": {},
|
|
"isRLSEnabled": false
|
|
}
|
|
},
|
|
"enums": {},
|
|
"schemas": {},
|
|
"sequences": {},
|
|
"roles": {},
|
|
"policies": {},
|
|
"views": {},
|
|
"_meta": {
|
|
"schemas": {},
|
|
"tables": {},
|
|
"columns": {}
|
|
},
|
|
"internal": {
|
|
"tables": {}
|
|
}
|
|
} |