Files
2026-07-13 12:10:05 +08:00

123 lines
2.7 KiB
JSON

{
"version": "5",
"dialect": "sqlite",
"id": "b6793a90-b553-4a5d-9d2f-b48e56ef2a2a",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"cities": {
"name": "cities",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"fullname_name": {
"name": "fullname_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"state": {
"name": "state",
"type": "text",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {
"cities_id_fullname_name_pk": {
"columns": [
"id",
"fullname_name"
]
}
}
},
"test_get": {
"name": "test_get",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"full_name": {
"name": "full_name",
"type": "text",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
},
"users": {
"name": "users",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"full_name": {
"name": "full_name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"phone": {
"name": "phone",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"invited_by": {
"name": "invited_by",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"city_id": {
"name": "city_id",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {
"users_city_id_cities_id_fk": {
"name": "users_city_id_cities_id_fk",
"tableFrom": "users",
"tableTo": "cities",
"columnsFrom": [
"city_id"
],
"columnsTo": [
"id"
]
}
},
"compositePrimaryKeys": {}
}
},
"enums": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}