{ "version": "5", "dialect": "sqlite", "id": "71187b23-6b9a-4f78-9f3c-0af6fb035f1b", "prevId": "00000000-0000-0000-0000-000000000000", "tables": { "groups": { "name": "groups", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "opinions": { "name": "opinions", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "type": { "name": "type", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "provinces": { "name": "provinces", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "users": { "name": "users", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "phone": { "name": "phone", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "email": { "name": "email", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "job": { "name": "job", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "education": { "name": "education", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "vision": { "name": "vision", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "reason": { "name": "reason", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "group_id": { "name": "group_id", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": { "users_phone_unique": { "name": "users_phone_unique", "columns": [ "phone" ], "isUnique": true } }, "foreignKeys": { "users_group_id_groups_id_fk": { "name": "users_group_id_groups_id_fk", "tableFrom": "users", "tableTo": "groups", "columnsFrom": [ "group_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "user_opinions": { "name": "user_opinions", "columns": { "user_id": { "name": "user_id", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false }, "opinion_id": { "name": "opinion_id", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false }, "choice": { "name": "choice", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false, "default": "'ignore'" } }, "indexes": {}, "foreignKeys": { "user_opinions_user_id_users_id_fk": { "name": "user_opinions_user_id_users_id_fk", "tableFrom": "user_opinions", "tableTo": "users", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "user_opinions_opinion_id_opinions_id_fk": { "name": "user_opinions_opinion_id_opinions_id_fk", "tableFrom": "user_opinions", "tableTo": "opinions", "columnsFrom": [ "opinion_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "zones": { "name": "zones", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "province_id": { "name": "province_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": {}, "foreignKeys": { "zones_province_id_provinces_id_fk": { "name": "zones_province_id_provinces_id_fk", "tableFrom": "zones", "tableTo": "provinces", "columnsFrom": [ "province_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {} } }, "enums": {}, "_meta": { "schemas": {}, "tables": {}, "columns": {} } }