3
0
Fork 0
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:
Jonathan 2021-04-02 23:09:12 -04:00
parent 7f75d6d8d3
commit b6c822e826
No known key found for this signature in database
GPG key ID: 19B04E3CBE0885B1
10 changed files with 262 additions and 0 deletions

View 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");
}
}