{ "version": "6", "dialect": "sqlite", "id": "4e2b0752-859c-462f-81a8-d794f837ca5b", "prevId": "00000000-0000-0000-0000-000000000000", "tables": { "customers": { "name": "customers", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "gender": { "name": "gender", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "contact": { "name": "contact", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "id_card": { "name": "id_card", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "password": { "name": "password", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": { "customers_contact_unique": { "name": "customers_contact_unique", "columns": [ "contact" ], "isUnique": true }, "customers_id_card_unique": { "name": "customers_id_card_unique", "columns": [ "id_card" ], "isUnique": true } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "reservations": { "name": "reservations", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "customer_id": { "name": "customer_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "room_id": { "name": "room_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "check_in_time": { "name": "check_in_time", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "stay_days": { "name": "stay_days", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": {}, "foreignKeys": { "reservations_customer_id_customers_id_fk": { "name": "reservations_customer_id_customers_id_fk", "tableFrom": "reservations", "tableTo": "customers", "columnsFrom": [ "customer_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "reservations_room_id_rooms_id_fk": { "name": "reservations_room_id_rooms_id_fk", "tableFrom": "reservations", "tableTo": "rooms", "columnsFrom": [ "room_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "room_types": { "name": "room_types", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "type_name": { "name": "type_name", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "star_rating": { "name": "star_rating", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "rooms": { "name": "rooms", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "type_id": { "name": "type_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "price": { "name": "price", "type": "real", "primaryKey": false, "notNull": true, "autoincrement": false }, "feature": { "name": "feature", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "available_count": { "name": "available_count", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": 0 } }, "indexes": {}, "foreignKeys": { "rooms_type_id_room_types_id_fk": { "name": "rooms_type_id_room_types_id_fk", "tableFrom": "rooms", "tableTo": "room_types", "columnsFrom": [ "type_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} } }, "views": {}, "enums": {}, "_meta": { "schemas": {}, "tables": {}, "columns": {} }, "internal": { "indexes": {} } }