{ "id": "03ea80f3-9f56-4e9a-8fa9-7faec3d8c472", "prevId": "ac850a36-cd53-47e5-bc3f-79d7541821ae", "version": "7", "dialect": "postgresql", "tables": { "public.account": { "name": "account", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "account_id": { "name": "account_id", "type": "text", "primaryKey": false, "notNull": true }, "provider_id": { "name": "provider_id", "type": "text", "primaryKey": false, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "access_token": { "name": "access_token", "type": "text", "primaryKey": false, "notNull": false }, "refresh_token": { "name": "refresh_token", "type": "text", "primaryKey": false, "notNull": false }, "id_token": { "name": "id_token", "type": "text", "primaryKey": false, "notNull": false }, "access_token_expires_at": { "name": "access_token_expires_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "refresh_token_expires_at": { "name": "refresh_token_expires_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "scope": { "name": "scope", "type": "text", "primaryKey": false, "notNull": false }, "password": { "name": "password", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "account_user": { "name": "account_user", "columns": [ { "expression": "user_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "account_user_id_user_id_fk": { "name": "account_user_id_user_id_fk", "tableFrom": "account", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.age_check": { "name": "age_check", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "imvu_id": { "name": "imvu_id", "type": "bigint", "primaryKey": false, "notNull": false }, "provider": { "name": "provider", "type": "text", "primaryKey": false, "notNull": true }, "method": { "name": "method", "type": "text", "primaryKey": false, "notNull": true, "default": "''" }, "status": { "name": "status", "type": "text", "primaryKey": false, "notNull": true }, "over_eighteen": { "name": "over_eighteen", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "provider_ref": { "name": "provider_ref", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "checked_at": { "name": "checked_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "expires_at": { "name": "expires_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false } }, "indexes": { "age_check_user": { "name": "age_check_user", "columns": [ { "expression": "user_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "age_check_imvu": { "name": "age_check_imvu", "columns": [ { "expression": "imvu_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "age_check_provider_ref": { "name": "age_check_provider_ref", "columns": [ { "expression": "provider", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "provider_ref", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "age_check_user_id_user_id_fk": { "name": "age_check_user_id_user_id_fk", "tableFrom": "age_check", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.audit": { "name": "audit", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "at": { "name": "at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "actor_id": { "name": "actor_id", "type": "text", "primaryKey": false, "notNull": false }, "action": { "name": "action", "type": "text", "primaryKey": false, "notNull": true }, "target": { "name": "target", "type": "text", "primaryKey": false, "notNull": true, "default": "''" }, "detail": { "name": "detail", "type": "jsonb", "primaryKey": false, "notNull": true, "default": "'{}'::jsonb" } }, "indexes": { "audit_at": { "name": "audit_at", "columns": [ { "expression": "at", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "audit_actor_id_user_id_fk": { "name": "audit_actor_id_user_id_fk", "tableFrom": "audit", "tableTo": "user", "columnsFrom": [ "actor_id" ], "columnsTo": [ "id" ], "onDelete": "set null", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.catalog": { "name": "catalog", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "owner_id": { "name": "owner_id", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "url": { "name": "url", "type": "text", "primaryKey": false, "notNull": true }, "contact": { "name": "contact", "type": "text", "primaryKey": false, "notNull": true }, "visibility": { "name": "visibility", "type": "text", "primaryKey": false, "notNull": true, "default": "'public'" }, "membership": { "name": "membership", "type": "text", "primaryKey": false, "notNull": true, "default": "'open'" }, "status": { "name": "status", "type": "text", "primaryKey": false, "notNull": true, "default": "'pending'" }, "key_hash": { "name": "key_hash", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "catalog_url": { "name": "catalog_url", "columns": [ { "expression": "url", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "catalog_owner_id_user_id_fk": { "name": "catalog_owner_id_user_id_fk", "tableFrom": "catalog", "tableTo": "user", "columnsFrom": [ "owner_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.device_code": { "name": "device_code", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "device_code": { "name": "device_code", "type": "text", "primaryKey": false, "notNull": true }, "user_code": { "name": "user_code", "type": "text", "primaryKey": false, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": false }, "expires_at": { "name": "expires_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true }, "status": { "name": "status", "type": "text", "primaryKey": false, "notNull": true }, "last_polled_at": { "name": "last_polled_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "polling_interval": { "name": "polling_interval", "type": "integer", "primaryKey": false, "notNull": false }, "client_id": { "name": "client_id", "type": "text", "primaryKey": false, "notNull": false }, "scope": { "name": "scope", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "device_code_user_id_user_id_fk": { "name": "device_code_user_id_user_id_fk", "tableFrom": "device_code", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.hosted_room": { "name": "hosted_room", "schema": "", "columns": { "n": { "name": "n", "type": "serial", "primaryKey": true, "notNull": true }, "owner_id": { "name": "owner_id", "type": "text", "primaryKey": false, "notNull": true }, "owner_imvu_id": { "name": "owner_imvu_id", "type": "bigint", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": true, "default": "''" }, "room_pid": { "name": "room_pid", "type": "bigint", "primaryKey": false, "notNull": true }, "rating": { "name": "rating", "type": "text", "primaryKey": false, "notNull": true, "default": "'general'" }, "max_users": { "name": "max_users", "type": "integer", "primaryKey": false, "notNull": true, "default": 10 }, "scene": { "name": "scene", "type": "jsonb", "primaryKey": false, "notNull": true, "default": "'[]'::jsonb" }, "scene_hash": { "name": "scene_hash", "type": "text", "primaryKey": false, "notNull": true, "default": "''" }, "closed": { "name": "closed", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "privacy": { "name": "privacy", "type": "text", "primaryKey": false, "notNull": true, "default": "'public'" }, "moderators": { "name": "moderators", "type": "jsonb", "primaryKey": false, "notNull": true, "default": "'[]'::jsonb" }, "image_hash": { "name": "image_hash", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "hosted_room_owner": { "name": "hosted_room_owner", "columns": [ { "expression": "owner_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "hosted_room_created": { "name": "hosted_room_created", "columns": [ { "expression": "created_at", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "hosted_room_owner_id_user_id_fk": { "name": "hosted_room_owner_id_user_id_fk", "tableFrom": "hosted_room", "tableTo": "user", "columnsFrom": [ "owner_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.hosted_room_ban": { "name": "hosted_room_ban", "schema": "", "columns": { "n": { "name": "n", "type": "integer", "primaryKey": false, "notNull": true }, "imvu_id": { "name": "imvu_id", "type": "bigint", "primaryKey": false, "notNull": true }, "by_imvu_id": { "name": "by_imvu_id", "type": "bigint", "primaryKey": false, "notNull": true }, "until": { "name": "until", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "hosted_room_ban_n_hosted_room_n_fk": { "name": "hosted_room_ban_n_hosted_room_n_fk", "tableFrom": "hosted_room_ban", "tableTo": "hosted_room", "columnsFrom": [ "n" ], "columnsTo": [ "n" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": { "hosted_room_ban_n_imvu_id_pk": { "name": "hosted_room_ban_n_imvu_id_pk", "columns": [ "n", "imvu_id" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.hosted_room_favorite": { "name": "hosted_room_favorite", "schema": "", "columns": { "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "n": { "name": "n", "type": "integer", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "hosted_room_favorite_user_id_user_id_fk": { "name": "hosted_room_favorite_user_id_user_id_fk", "tableFrom": "hosted_room_favorite", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "hosted_room_favorite_n_hosted_room_n_fk": { "name": "hosted_room_favorite_n_hosted_room_n_fk", "tableFrom": "hosted_room_favorite", "tableTo": "hosted_room", "columnsFrom": [ "n" ], "columnsTo": [ "n" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": { "hosted_room_favorite_user_id_n_pk": { "name": "hosted_room_favorite_user_id_n_pk", "columns": [ "user_id", "n" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.hosted_room_image": { "name": "hosted_room_image", "schema": "", "columns": { "n": { "name": "n", "type": "integer", "primaryKey": true, "notNull": true }, "content_type": { "name": "content_type", "type": "text", "primaryKey": false, "notNull": true }, "data": { "name": "data", "type": "bytea", "primaryKey": false, "notNull": true }, "hash": { "name": "hash", "type": "text", "primaryKey": false, "notNull": true }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "hosted_room_image_n_hosted_room_n_fk": { "name": "hosted_room_image_n_hosted_room_n_fk", "tableFrom": "hosted_room_image", "tableTo": "hosted_room", "columnsFrom": [ "n" ], "columnsTo": [ "n" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.hosted_room_rating": { "name": "hosted_room_rating", "schema": "", "columns": { "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "n": { "name": "n", "type": "integer", "primaryKey": false, "notNull": true }, "score": { "name": "score", "type": "integer", "primaryKey": false, "notNull": true }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "hosted_room_rating_room": { "name": "hosted_room_rating_room", "columns": [ { "expression": "n", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "hosted_room_rating_user_id_user_id_fk": { "name": "hosted_room_rating_user_id_user_id_fk", "tableFrom": "hosted_room_rating", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "hosted_room_rating_n_hosted_room_n_fk": { "name": "hosted_room_rating_n_hosted_room_n_fk", "tableFrom": "hosted_room_rating", "tableTo": "hosted_room", "columnsFrom": [ "n" ], "columnsTo": [ "n" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": { "hosted_room_rating_user_id_n_pk": { "name": "hosted_room_rating_user_id_n_pk", "columns": [ "user_id", "n" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.hosted_room_visit": { "name": "hosted_room_visit", "schema": "", "columns": { "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "n": { "name": "n", "type": "integer", "primaryKey": false, "notNull": true }, "imvu_id": { "name": "imvu_id", "type": "bigint", "primaryKey": false, "notNull": true }, "at": { "name": "at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "hosted_room_visit_at": { "name": "hosted_room_visit_at", "columns": [ { "expression": "user_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "at", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "hosted_room_visit_user_id_user_id_fk": { "name": "hosted_room_visit_user_id_user_id_fk", "tableFrom": "hosted_room_visit", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "hosted_room_visit_n_hosted_room_n_fk": { "name": "hosted_room_visit_n_hosted_room_n_fk", "tableFrom": "hosted_room_visit", "tableTo": "hosted_room", "columnsFrom": [ "n" ], "columnsTo": [ "n" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": { "hosted_room_visit_user_id_n_pk": { "name": "hosted_room_visit_user_id_n_pk", "columns": [ "user_id", "n" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.hosting": { "name": "hosting", "schema": "", "columns": { "catalog_id": { "name": "catalog_id", "type": "text", "primaryKey": false, "notNull": true }, "product_id": { "name": "product_id", "type": "text", "primaryKey": false, "notNull": true }, "number": { "name": "number", "type": "integer", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "hosting_product": { "name": "hosting_product", "columns": [ { "expression": "product_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "hosting_catalog_id_catalog_id_fk": { "name": "hosting_catalog_id_catalog_id_fk", "tableFrom": "hosting", "tableTo": "catalog", "columnsFrom": [ "catalog_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": { "hosting_catalog_id_product_id_number_pk": { "name": "hosting_catalog_id_product_id_number_pk", "columns": [ "catalog_id", "product_id", "number" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.hub_setting": { "name": "hub_setting", "schema": "", "columns": { "key": { "name": "key", "type": "text", "primaryKey": true, "notNull": true }, "value": { "name": "value", "type": "text", "primaryKey": false, "notNull": true }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.imvu_link": { "name": "imvu_link", "schema": "", "columns": { "imvu_id": { "name": "imvu_id", "type": "bigint", "primaryKey": true, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "pairwise_id": { "name": "pairwise_id", "type": "text", "primaryKey": false, "notNull": true }, "username": { "name": "username", "type": "text", "primaryKey": false, "notNull": true }, "linked_at": { "name": "linked_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "show_badge": { "name": "show_badge", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "show_presence": { "name": "show_presence", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "list_rooms": { "name": "list_rooms", "type": "boolean", "primaryKey": false, "notNull": true, "default": false } }, "indexes": { "imvu_link_user": { "name": "imvu_link_user", "columns": [ { "expression": "user_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "imvu_link_user_id_user_id_fk": { "name": "imvu_link_user_id_user_id_fk", "tableFrom": "imvu_link", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": { "imvu_link_pairwise_id_unique": { "name": "imvu_link_pairwise_id_unique", "nullsNotDistinct": false, "columns": [ "pairwise_id" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.jwks": { "name": "jwks", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "public_key": { "name": "public_key", "type": "text", "primaryKey": false, "notNull": true }, "private_key": { "name": "private_key", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "expires_at": { "name": "expires_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "alg": { "name": "alg", "type": "text", "primaryKey": false, "notNull": false }, "crv": { "name": "crv", "type": "text", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.library": { "name": "library", "schema": "", "columns": { "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "product_id": { "name": "product_id", "type": "text", "primaryKey": false, "notNull": true }, "stay_on": { "name": "stay_on", "type": "integer", "primaryKey": false, "notNull": false }, "added_at": { "name": "added_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "library_user_id_user_id_fk": { "name": "library_user_id_user_id_fk", "tableFrom": "library", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "library_product_id_product_id_fk": { "name": "library_product_id_product_id_fk", "tableFrom": "library", "tableTo": "product", "columnsFrom": [ "product_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": { "library_user_id_product_id_pk": { "name": "library_user_id_product_id_pk", "columns": [ "user_id", "product_id" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.link_challenge": { "name": "link_challenge", "schema": "", "columns": { "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "imvu_id": { "name": "imvu_id", "type": "bigint", "primaryKey": false, "notNull": true }, "username": { "name": "username", "type": "text", "primaryKey": false, "notNull": true }, "code": { "name": "code", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "link_challenge_user_id_user_id_fk": { "name": "link_challenge_user_id_user_id_fk", "tableFrom": "link_challenge", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": { "link_challenge_user_id_imvu_id_pk": { "name": "link_challenge_user_id_imvu_id_pk", "columns": [ "user_id", "imvu_id" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.product": { "name": "product", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "creator_id": { "name": "creator_id", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": true, "default": "''" }, "rating": { "name": "rating", "type": "text", "primaryKey": false, "notNull": true }, "latest": { "name": "latest", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "deleted_at": { "name": "deleted_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "removed_at": { "name": "removed_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "removed_reason": { "name": "removed_reason", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "product_creator": { "name": "product_creator", "columns": [ { "expression": "creator_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "product_created": { "name": "product_created", "columns": [ { "expression": "created_at", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "product_creator_id_user_id_fk": { "name": "product_creator_id_user_id_fk", "tableFrom": "product", "tableTo": "user", "columnsFrom": [ "creator_id" ], "columnsTo": [ "id" ], "onDelete": "restrict", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.product_revision": { "name": "product_revision", "schema": "", "columns": { "product_id": { "name": "product_id", "type": "text", "primaryKey": false, "notNull": true }, "number": { "name": "number", "type": "integer", "primaryKey": false, "notNull": true }, "files": { "name": "files", "type": "jsonb", "primaryKey": false, "notNull": true }, "rating": { "name": "rating", "type": "text", "primaryKey": false, "notNull": true }, "parent": { "name": "parent", "type": "bigint", "primaryKey": false, "notNull": true, "default": 0 }, "parent_info": { "name": "parent_info", "type": "jsonb", "primaryKey": false, "notNull": false }, "notes": { "name": "notes", "type": "text", "primaryKey": false, "notNull": true, "default": "''" }, "token": { "name": "token", "type": "text", "primaryKey": false, "notNull": true }, "uploaded_by": { "name": "uploaded_by", "type": "text", "primaryKey": false, "notNull": false }, "retracted": { "name": "retracted", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "product_revision_product_id_product_id_fk": { "name": "product_revision_product_id_product_id_fk", "tableFrom": "product_revision", "tableTo": "product", "columnsFrom": [ "product_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" }, "product_revision_uploaded_by_user_id_fk": { "name": "product_revision_uploaded_by_user_id_fk", "tableFrom": "product_revision", "tableTo": "user", "columnsFrom": [ "uploaded_by" ], "columnsTo": [ "id" ], "onDelete": "set null", "onUpdate": "no action" } }, "compositePrimaryKeys": { "product_revision_product_id_number_pk": { "name": "product_revision_product_id_number_pk", "columns": [ "product_id", "number" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.room": { "name": "room", "schema": "", "columns": { "instance_id": { "name": "instance_id", "type": "text", "primaryKey": true, "notNull": true }, "owner_imvu_id": { "name": "owner_imvu_id", "type": "bigint", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": true, "default": "''" }, "image_url": { "name": "image_url", "type": "text", "primaryKey": false, "notNull": true, "default": "''" }, "privacy": { "name": "privacy", "type": "text", "primaryKey": false, "notNull": true }, "type": { "name": "type", "type": "text", "primaryKey": false, "notNull": true }, "content_rating": { "name": "content_rating", "type": "text", "primaryKey": false, "notNull": true, "default": "''" }, "access_pass": { "name": "access_pass", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "occupancy": { "name": "occupancy", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "capacity": { "name": "capacity", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "expired": { "name": "expired", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "checked_at": { "name": "checked_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "seen_at": { "name": "seen_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "room_owner": { "name": "room_owner", "columns": [ { "expression": "owner_imvu_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.room_decoration": { "name": "room_decoration", "schema": "", "columns": { "instance_id": { "name": "instance_id", "type": "text", "primaryKey": true, "notNull": true }, "owner_imvu_id": { "name": "owner_imvu_id", "type": "bigint", "primaryKey": false, "notNull": true }, "contents": { "name": "contents", "type": "jsonb", "primaryKey": false, "notNull": true }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "room_decoration_owner": { "name": "room_decoration_owner", "columns": [ { "expression": "owner_imvu_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.session": { "name": "session", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "expires_at": { "name": "expires_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true }, "token": { "name": "token", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "ip_address": { "name": "ip_address", "type": "text", "primaryKey": false, "notNull": false }, "user_agent": { "name": "user_agent", "type": "text", "primaryKey": false, "notNull": false }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "impersonated_by": { "name": "impersonated_by", "type": "text", "primaryKey": false, "notNull": false } }, "indexes": { "session_user": { "name": "session_user", "columns": [ { "expression": "user_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "session_user_id_user_id_fk": { "name": "session_user_id_user_id_fk", "tableFrom": "session", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": { "session_token_unique": { "name": "session_token_unique", "nullsNotDistinct": false, "columns": [ "token" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.signing_key": { "name": "signing_key", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "public_key": { "name": "public_key", "type": "jsonb", "primaryKey": false, "notNull": true }, "private_key": { "name": "private_key", "type": "jsonb", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.user": { "name": "user", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "email": { "name": "email", "type": "text", "primaryKey": false, "notNull": true }, "email_verified": { "name": "email_verified", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "image": { "name": "image", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "username": { "name": "username", "type": "text", "primaryKey": false, "notNull": false }, "display_username": { "name": "display_username", "type": "text", "primaryKey": false, "notNull": false }, "role": { "name": "role", "type": "text", "primaryKey": false, "notNull": true, "default": "'user'" }, "banned": { "name": "banned", "type": "boolean", "primaryKey": false, "notNull": false, "default": false }, "ban_reason": { "name": "ban_reason", "type": "text", "primaryKey": false, "notNull": false }, "ban_expires": { "name": "ban_expires", "type": "timestamp with time zone", "primaryKey": false, "notNull": false }, "link_cap": { "name": "link_cap", "type": "integer", "primaryKey": false, "notNull": true, "default": 10 }, "approved": { "name": "approved", "type": "boolean", "primaryKey": false, "notNull": true, "default": true } }, "indexes": { "user_username_lower": { "name": "user_username_lower", "columns": [ { "expression": "lower(\"username\")", "asc": true, "isExpression": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "user_email_unique": { "name": "user_email_unique", "nullsNotDistinct": false, "columns": [ "email" ] }, "user_username_unique": { "name": "user_username_unique", "nullsNotDistinct": false, "columns": [ "username" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.verification": { "name": "verification", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "identifier": { "name": "identifier", "type": "text", "primaryKey": false, "notNull": true }, "value": { "name": "value", "type": "text", "primaryKey": false, "notNull": true }, "expires_at": { "name": "expires_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp with time zone", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": { "verification_identifier": { "name": "verification_identifier", "columns": [ { "expression": "identifier", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false } }, "enums": {}, "schemas": {}, "sequences": {}, "roles": {}, "policies": {}, "views": {}, "_meta": { "columns": {}, "schemas": {}, "tables": {} } }