aboutsummaryrefslogtreecommitdiff
path: root/drizzle/meta/0000_snapshot.json
blob: 6e33354487bac358c89aaca34616615b2ade3a4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110

{
	"version": "6",
	"dialect": "sqlite",
	"id": "54c7ae45-9838-4ffb-ad46-29995def7272",
	"prevId": "00000000-0000-0000-0000-000000000000",
	"tables": {
		"categories": {
			"name": "categories",
			"columns": {
				"id": {
					"name": "id",
					"type": "integer",
					"primaryKey": true,
					"notNull": true,
					"autoincrement": true
				},
				"name": {
					"name": "name",
					"type": "text",
					"primaryKey": false,
					"notNull": true,
					"autoincrement": false
				}
			},
			"indexes": {
				"categories_name_unique": {
					"name": "categories_name_unique",
					"columns": ["name"],
					"isUnique": true
				}
			},
			"foreignKeys": {},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {},
			"checkConstraints": {}
		},
		"groceries": {
			"name": "groceries",
			"columns": {
				"id": {
					"name": "id",
					"type": "integer",
					"primaryKey": true,
					"notNull": true,
					"autoincrement": true
				},
				"name": {
					"name": "name",
					"type": "text",
					"primaryKey": false,
					"notNull": true,
					"autoincrement": false
				},
				"checked": {
					"name": "checked",
					"type": "integer",
					"primaryKey": false,
					"notNull": true,
					"autoincrement": false,
					"default": false
				},
				"created_at": {
					"name": "created_at",
					"type": "text",
					"primaryKey": false,
					"notNull": true,
					"autoincrement": false
				},
				"category_id": {
					"name": "category_id",
					"type": "integer",
					"primaryKey": false,
					"notNull": false,
					"autoincrement": false
				}
			},
			"indexes": {
				"groceries_name_unique": {
					"name": "groceries_name_unique",
					"columns": ["name"],
					"isUnique": true
				}
			},
			"foreignKeys": {
				"groceries_category_id_categories_id_fk": {
					"name": "groceries_category_id_categories_id_fk",
					"tableFrom": "groceries",
					"tableTo": "categories",
					"columnsFrom": ["category_id"],
					"columnsTo": ["id"],
					"onDelete": "no action",
					"onUpdate": "no action"
				}
			},
			"compositePrimaryKeys": {},
			"uniqueConstraints": {},
			"checkConstraints": {}
		}
	},
	"views": {},
	"enums": {},
	"_meta": {
		"schemas": {},
		"tables": {},
		"columns": {}
	},
	"internal": {
		"indexes": {}
	}
}