{ "id": "fb792b24-bbbd-4b38-9191-24a83d05d277", "prevId": "2a786bb1-c05b-4d36-a401-293ccb96076f", "version": "7", "dialect": "postgresql", "tables": { "public.chat_configs": { "name": "chat_configs", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "chat_id": { "name": "chat_id", "type": "bigint", "primaryKey": false, "notNull": true }, "role_manage_permission": { "name": "role_manage_permission", "type": "role_manage_permission", "typeSchema": "public", "primaryKey": false, "notNull": true, "default": "'all_admins'" }, "role_mention_permission": { "name": "role_mention_permission", "type": "role_mention_permission", "typeSchema": "public", "primaryKey": false, "notNull": true, "default": "'everyone'" }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "chat_configs_chat_id_unique": { "name": "chat_configs_chat_id_unique", "nullsNotDistinct": false, "columns": [ "chat_id" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.role_members": { "name": "role_members", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "role_id": { "name": "role_id", "type": "uuid", "primaryKey": false, "notNull": false }, "user_id": { "name": "user_id", "type": "bigint", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "role_members_role_id_roles_id_fk": { "name": "role_members_role_id_roles_id_fk", "tableFrom": "role_members", "tableTo": "roles", "columnsFrom": [ "role_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.roles": { "name": "roles", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "slug": { "name": "slug", "type": "varchar(32)", "primaryKey": false, "notNull": true }, "aliases": { "name": "aliases", "type": "varchar(32)[]", "primaryKey": false, "notNull": true, "default": "'{}'" }, "chat_id": { "name": "chat_id", "type": "bigint", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false } }, "enums": { "public.role_manage_permission": { "name": "role_manage_permission", "schema": "public", "values": [ "everyone", "all_admins", "admin_can_promote_members", "admin_can_change_info", "admin_can_manage_chat", "only_owner" ] }, "public.role_mention_permission": { "name": "role_mention_permission", "schema": "public", "values": [ "everyone", "all_admins", "only_owner" ] } }, "schemas": {}, "sequences": {}, "roles": {}, "policies": {}, "views": {}, "_meta": { "columns": {}, "schemas": {}, "tables": {} } }