{ "id": "ba6993c6-c9e8-443c-a3cc-abade1e5d34e", "prevId": "00000000-0000-0000-0000-000000000000", "version": "5", "dialect": "pg", "tables": { "letters": { "name": "letters", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": false, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": false, "default": "now()" }, "first_name": { "name": "first_name", "type": "text", "primaryKey": false, "notNull": true }, "last_name": { "name": "last_name", "type": "text", "primaryKey": false, "notNull": true }, "lang": { "name": "lang", "type": "text", "primaryKey": false, "notNull": true }, "email": { "name": "email", "type": "text", "primaryKey": false, "notNull": true }, "phone": { "name": "phone", "type": "text", "primaryKey": false, "notNull": true }, "variant": { "name": "variant", "type": "text", "primaryKey": false, "notNull": true }, "gender": { "name": "gender", "type": "text", "primaryKey": false, "notNull": false }, "branch": { "name": "branch", "type": "text", "primaryKey": false, "notNull": true }, "is_client": { "name": "is_client", "type": "boolean", "primaryKey": false, "notNull": true }, "message": { "name": "message", "type": "text", "primaryKey": false, "notNull": true }, "is_subscribed": { "name": "is_subscribed", "type": "boolean", "primaryKey": false, "notNull": true }, "confirmation_token": { "name": "confirmation_token", "type": "text", "primaryKey": false, "notNull": true }, "is_confirmed": { "name": "is_confirmed", "type": "boolean", "primaryKey": false, "notNull": false, "default": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "letters_email_unique": { "name": "letters_email_unique", "nullsNotDistinct": false, "columns": [ "email" ] } } }, "messages": { "name": "messages", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "letter_id": { "name": "letter_id", "type": "integer", "primaryKey": false, "notNull": false }, "from": { "name": "from", "type": "text", "primaryKey": false, "notNull": true }, "to": { "name": "to", "type": "text", "primaryKey": false, "notNull": true }, "status": { "name": "status", "type": "status", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": { "messages_letter_id_letters_id_fk": { "name": "messages_letter_id_letters_id_fk", "tableFrom": "messages", "tableTo": "letters", "columnsFrom": [ "letter_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {} } }, "enums": { "status": { "name": "status", "values": { "pending": "pending", "success": "success", "error": "error" } } }, "schemas": {}, "_meta": { "columns": {}, "schemas": {}, "tables": {} } }