From de44e491b4ef638bd61a29477e291ac6968ef9a4 Mon Sep 17 00:00:00 2001 From: Alex Hall Date: Tue, 11 Jul 2023 13:29:36 +0200 Subject: [PATCH] Add column types to Limit entity --- app/gen-server/entity/Limit.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/gen-server/entity/Limit.ts b/app/gen-server/entity/Limit.ts index 1011a98f..eeb40f5e 100644 --- a/app/gen-server/entity/Limit.ts +++ b/app/gen-server/entity/Limit.ts @@ -7,23 +7,23 @@ export class Limit extends BaseEntity { @PrimaryGeneratedColumn() public id: number; - @Column() + @Column({type: Number}) public limit: number; - @Column() + @Column({type: Number}) public usage: number; - @Column() + @Column({type: String}) public type: string; - @Column({name: 'billing_account_id'}) + @Column({name: 'billing_account_id', type: Number}) public billingAccountId: number; @ManyToOne(type => BillingAccount) @JoinColumn({name: 'billing_account_id'}) public billingAccount: BillingAccount; - @Column({name: 'created_at', default: () => "CURRENT_TIMESTAMP"}) + @Column({name: 'created_at', type: nativeValues.dateTimeType, default: () => "CURRENT_TIMESTAMP"}) public createdAt: Date; /**