mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-14 22:07:19 +00:00
feat: AFK Command
This commit is contained in:
parent
7f75d6d8d3
commit
b6c822e826
10 changed files with 262 additions and 0 deletions
34
backend/src/migrations/1617410382003-AFKStatus.ts
Normal file
34
backend/src/migrations/1617410382003-AFKStatus.ts
Normal file
|
@ -0,0 +1,34 @@
|
|||
import { MigrationInterface, QueryRunner, Table } from "typeorm";
|
||||
|
||||
export class AFKStatus1617410382003 implements MigrationInterface {
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.createTable(
|
||||
new Table({
|
||||
name: "afk",
|
||||
columns: [
|
||||
{
|
||||
name: "id",
|
||||
type: "int",
|
||||
isPrimary: true,
|
||||
isGenerated: true,
|
||||
generationStrategy: "increment",
|
||||
},
|
||||
{
|
||||
name: "user_id",
|
||||
type: "bigint",
|
||||
},
|
||||
{
|
||||
name: "status",
|
||||
type: "varchar",
|
||||
length: "255",
|
||||
}
|
||||
]
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
return queryRunner.dropTable("afk");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue