Remove sims when the Discord user leaves
This commit is contained in:
10
src/db/migrations/0036-app-user-install.sql
Normal file
10
src/db/migrations/0036-app-user-install.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
BEGIN TRANSACTION;
|
||||
|
||||
CREATE TABLE "app_user_install" (
|
||||
"guild_id" TEXT NOT NULL,
|
||||
"app_bot_id" TEXT NOT NULL,
|
||||
"user_id" TEXT NOT NULL,
|
||||
PRIMARY KEY ("guild_id", "app_bot_id", "user_id")
|
||||
) WITHOUT ROWID;
|
||||
|
||||
COMMIT;
|
||||
6
src/db/orm-defs.d.ts
vendored
6
src/db/orm-defs.d.ts
vendored
@@ -1,4 +1,10 @@
|
||||
export type Models = {
|
||||
app_user_install: {
|
||||
guild_id: string
|
||||
app_bot_id: string
|
||||
user_id: string
|
||||
}
|
||||
|
||||
auto_emoji: {
|
||||
name: string
|
||||
emoji_id: string
|
||||
|
||||
Reference in New Issue
Block a user