Create daily command #224

Merged
Vylpes merged 3 commits from feature/202-daily-command into develop 2024-05-24 17:40:45 +01:00
3 changed files with 20 additions and 0 deletions
Showing only changes of commit 8821578ff6 - Show all commits

View file

@ -0,0 +1,2 @@
ALTER TABLE `user`
ADD LastUsedDaily datetime null;

View file

@ -13,6 +13,9 @@ export default class User extends AppBaseEntity {
@Column()
Currency: number;
@Column()
LastUsedDaily?: Date;
public UpdateCurrency(currency: number) {
this.Currency = currency;
}

View file

@ -0,0 +1,15 @@
import { MigrationInterface, QueryRunner } from "typeorm";
import MigrationHelper from "../../../../helpers/MigrationHelper";
export class Daily1715967355818 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
MigrationHelper.Up("1715967355818-daily", "0.6", [
"01-table/User",
], queryRunner);
}
public async down(): Promise<void> {
}
}