Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions drizzle/0001_ticket.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CREATE TABLE `tickets` (
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
`guildId` text NOT NULL,
`channelId` text NOT NULL,
`userId` text NOT NULL,
`status` text DEFAULT 'open' NOT NULL,
`createdAt` integer NOT NULL
);
182 changes: 182 additions & 0 deletions drizzle/meta/0001_snapshot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
{
"version": "6",
"dialect": "sqlite",
"id": "9dbcc5e6-259f-4897-8a33-29379721891f",
"prevId": "0467c0b2-bc1d-41de-bb9e-19681ca45e29",
"tables": {
"scheduled_announces": {
"name": "scheduled_announces",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"guildId": {
"name": "guildId",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"channelId": {
"name": "channelId",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"userId": {
"name": "userId",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"content": {
"name": "content",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"sendAt": {
"name": "sendAt",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"createdAt": {
"name": "createdAt",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"tickets": {
"name": "tickets",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": true
},
"guildId": {
"name": "guildId",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"channelId": {
"name": "channelId",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"userId": {
"name": "userId",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'open'"
},
"createdAt": {
"name": "createdAt",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"users": {
"name": "users",
"columns": {
"snowflake": {
"name": "snowflake",
"type": "text",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"discordUser": {
"name": "discordUser",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"zID": {
"name": "zID",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"distro": {
"name": "distro",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"verifiedAt": {
"name": "verifiedAt",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
}
},
"views": {},
"enums": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
},
"internal": {
"indexes": {}
}
}
11 changes: 9 additions & 2 deletions drizzle/meta/_journal.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@
"idx": 0,
"version": "6",
"when": 1770364946951,
"tag": "0000_slippery_marvel_zombies",
"tag": "0000_init",
"breakpoints": true
},
{
"idx": 1,
"version": "6",
"when": 1771055956429,
"tag": "0001_ticket",
"breakpoints": true
}
]
}
}
Loading