Remove drizzle directory from repo.
This commit is contained in:
parent
450bcf173f
commit
22c782c3ec
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,6 +12,7 @@ node_modules
|
|||||||
*.log
|
*.log
|
||||||
|
|
||||||
# Databases
|
# Databases
|
||||||
|
/drizzle
|
||||||
*.db
|
*.db
|
||||||
|
|
||||||
# OS
|
# OS
|
||||||
|
|||||||
@ -1,15 +0,0 @@
|
|||||||
CREATE TABLE `records` (
|
|
||||||
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
||||||
`record_id` text NOT NULL,
|
|
||||||
`type_id` integer NOT NULL,
|
|
||||||
FOREIGN KEY (`type_id`) REFERENCES `record_types`(`id`) ON UPDATE no action ON DELETE no action
|
|
||||||
);
|
|
||||||
--> statement-breakpoint
|
|
||||||
CREATE UNIQUE INDEX `records_record_id_unique` ON `records` (`record_id`);--> statement-breakpoint
|
|
||||||
CREATE INDEX `chores_index` ON `records` (`record_id`) WHERE type_id = 1;--> statement-breakpoint
|
|
||||||
CREATE INDEX `project_index` ON `records` (`record_id`) WHERE type_id = 2;--> statement-breakpoint
|
|
||||||
CREATE INDEX `ticket_index` ON `records` (`record_id`) WHERE type_id = 3;--> statement-breakpoint
|
|
||||||
CREATE TABLE `record_types` (
|
|
||||||
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
||||||
`type` text
|
|
||||||
);
|
|
||||||
@ -1,119 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "6",
|
|
||||||
"dialect": "sqlite",
|
|
||||||
"id": "feb276b9-6e2b-4204-885b-167701a4a707",
|
|
||||||
"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 = 1"
|
|
||||||
},
|
|
||||||
"project_index": {
|
|
||||||
"name": "project_index",
|
|
||||||
"columns": [
|
|
||||||
"record_id"
|
|
||||||
],
|
|
||||||
"isUnique": false,
|
|
||||||
"where": "type_id = 2"
|
|
||||||
},
|
|
||||||
"ticket_index": {
|
|
||||||
"name": "ticket_index",
|
|
||||||
"columns": [
|
|
||||||
"record_id"
|
|
||||||
],
|
|
||||||
"isUnique": false,
|
|
||||||
"where": "type_id = 3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"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": {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "7",
|
|
||||||
"dialect": "sqlite",
|
|
||||||
"entries": [
|
|
||||||
{
|
|
||||||
"idx": 0,
|
|
||||||
"version": "6",
|
|
||||||
"when": 1758833816361,
|
|
||||||
"tag": "0000_wandering_riptide",
|
|
||||||
"breakpoints": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user