tiqued/drizzle/meta/0000_snapshot.json

119 lines
2.7 KiB
JSON

{
"version": "6",
"dialect": "sqlite",
"id": "8ed760e9-a6fd-43ca-85d1-987033a5a1e6",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"records": {
"name": "records",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": true
},
"record_id": {
"name": "record_id",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"type_id": {
"name": "type_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {
"records_record_id_unique": {
"name": "records_record_id_unique",
"columns": [
"record_id"
],
"isUnique": true
},
"chores_index": {
"name": "chores_index",
"columns": [
"record_id"
],
"isUnique": false,
"where": "type_id = ?"
},
"project_index": {
"name": "project_index",
"columns": [
"record_id"
],
"isUnique": false,
"where": "type_id = ?"
},
"ticket_index": {
"name": "ticket_index",
"columns": [
"record_id"
],
"isUnique": false,
"where": "type_id = ?"
}
},
"foreignKeys": {
"records_type_id_record_types_id_fk": {
"name": "records_type_id_record_types_id_fk",
"tableFrom": "records",
"tableTo": "record_types",
"columnsFrom": [
"type_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"record_types": {
"name": "record_types",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": true
},
"type": {
"name": "type",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
}
},
"views": {},
"enums": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
},
"internal": {
"indexes": {}
}
}