···
1
1
-
CREATE TABLE `takes` (
2
2
-
`id` text PRIMARY KEY NOT NULL,
3
3
-
`user_id` text NOT NULL,
4
4
-
`channel_id` text NOT NULL,
5
5
-
`status` text DEFAULT 'active' NOT NULL,
6
6
-
`started_at` integer NOT NULL,
7
7
-
`paused_at` integer,
8
8
-
`completed_at` integer,
9
9
-
`duration_minutes` integer DEFAULT 5 NOT NULL,
10
10
-
`paused_time_ms` integer DEFAULT 0 NOT NULL,
11
11
-
`notes` text
12
12
-
);
13
13
-
--> statement-breakpoint
14
14
-
CREATE TABLE `users` (
15
15
-
`id` text PRIMARY KEY NOT NULL,
16
16
-
`name` text NOT NULL,
17
17
-
`is_active` integer DEFAULT true NOT NULL
18
18
-
);
···
1
1
-
{
2
2
-
"version": "6",
3
3
-
"dialect": "sqlite",
4
4
-
"id": "a57561dd-0c99-4274-9ec1-8a2660da81da",
5
5
-
"prevId": "00000000-0000-0000-0000-000000000000",
6
6
-
"tables": {
7
7
-
"takes": {
8
8
-
"name": "takes",
9
9
-
"columns": {
10
10
-
"id": {
11
11
-
"name": "id",
12
12
-
"type": "text",
13
13
-
"primaryKey": true,
14
14
-
"notNull": true,
15
15
-
"autoincrement": false
16
16
-
},
17
17
-
"user_id": {
18
18
-
"name": "user_id",
19
19
-
"type": "text",
20
20
-
"primaryKey": false,
21
21
-
"notNull": true,
22
22
-
"autoincrement": false
23
23
-
},
24
24
-
"channel_id": {
25
25
-
"name": "channel_id",
26
26
-
"type": "text",
27
27
-
"primaryKey": false,
28
28
-
"notNull": true,
29
29
-
"autoincrement": false
30
30
-
},
31
31
-
"status": {
32
32
-
"name": "status",
33
33
-
"type": "text",
34
34
-
"primaryKey": false,
35
35
-
"notNull": true,
36
36
-
"autoincrement": false,
37
37
-
"default": "'active'"
38
38
-
},
39
39
-
"started_at": {
40
40
-
"name": "started_at",
41
41
-
"type": "integer",
42
42
-
"primaryKey": false,
43
43
-
"notNull": true,
44
44
-
"autoincrement": false
45
45
-
},
46
46
-
"paused_at": {
47
47
-
"name": "paused_at",
48
48
-
"type": "integer",
49
49
-
"primaryKey": false,
50
50
-
"notNull": false,
51
51
-
"autoincrement": false
52
52
-
},
53
53
-
"completed_at": {
54
54
-
"name": "completed_at",
55
55
-
"type": "integer",
56
56
-
"primaryKey": false,
57
57
-
"notNull": false,
58
58
-
"autoincrement": false
59
59
-
},
60
60
-
"duration_minutes": {
61
61
-
"name": "duration_minutes",
62
62
-
"type": "integer",
63
63
-
"primaryKey": false,
64
64
-
"notNull": true,
65
65
-
"autoincrement": false,
66
66
-
"default": 5
67
67
-
},
68
68
-
"paused_time_ms": {
69
69
-
"name": "paused_time_ms",
70
70
-
"type": "integer",
71
71
-
"primaryKey": false,
72
72
-
"notNull": true,
73
73
-
"autoincrement": false,
74
74
-
"default": 0
75
75
-
},
76
76
-
"notes": {
77
77
-
"name": "notes",
78
78
-
"type": "text",
79
79
-
"primaryKey": false,
80
80
-
"notNull": false,
81
81
-
"autoincrement": false
82
82
-
}
83
83
-
},
84
84
-
"indexes": {},
85
85
-
"foreignKeys": {},
86
86
-
"compositePrimaryKeys": {},
87
87
-
"uniqueConstraints": {},
88
88
-
"checkConstraints": {}
89
89
-
},
90
90
-
"users": {
91
91
-
"name": "users",
92
92
-
"columns": {
93
93
-
"id": {
94
94
-
"name": "id",
95
95
-
"type": "text",
96
96
-
"primaryKey": true,
97
97
-
"notNull": true,
98
98
-
"autoincrement": false
99
99
-
},
100
100
-
"name": {
101
101
-
"name": "name",
102
102
-
"type": "text",
103
103
-
"primaryKey": false,
104
104
-
"notNull": true,
105
105
-
"autoincrement": false
106
106
-
},
107
107
-
"is_active": {
108
108
-
"name": "is_active",
109
109
-
"type": "integer",
110
110
-
"primaryKey": false,
111
111
-
"notNull": true,
112
112
-
"autoincrement": false,
113
113
-
"default": true
114
114
-
}
115
115
-
},
116
116
-
"indexes": {},
117
117
-
"foreignKeys": {},
118
118
-
"compositePrimaryKeys": {},
119
119
-
"uniqueConstraints": {},
120
120
-
"checkConstraints": {}
121
121
-
}
122
122
-
},
123
123
-
"views": {},
124
124
-
"enums": {},
125
125
-
"_meta": {
126
126
-
"schemas": {},
127
127
-
"tables": {},
128
128
-
"columns": {}
129
129
-
},
130
130
-
"internal": {
131
131
-
"indexes": {}
132
132
-
}
133
133
-
}
···
1
1
-
{
2
2
-
"version": "7",
3
3
-
"dialect": "sqlite",
4
4
-
"entries": [
5
5
-
{
6
6
-
"idx": 0,
7
7
-
"version": "6",
8
8
-
"when": 1743563155870,
9
9
-
"tag": "0000_fearless_bloodscream",
10
10
-
"breakpoints": true
11
11
-
}
12
12
-
]
13
13
-
}