Add column types to Limit entity

This commit is contained in:
Alex Hall 2023-07-11 13:29:36 +02:00
parent 6fbe3db677
commit de44e491b4

View File

@ -7,23 +7,23 @@ export class Limit extends BaseEntity {
@PrimaryGeneratedColumn() @PrimaryGeneratedColumn()
public id: number; public id: number;
@Column() @Column({type: Number})
public limit: number; public limit: number;
@Column() @Column({type: Number})
public usage: number; public usage: number;
@Column() @Column({type: String})
public type: string; public type: string;
@Column({name: 'billing_account_id'}) @Column({name: 'billing_account_id', type: Number})
public billingAccountId: number; public billingAccountId: number;
@ManyToOne(type => BillingAccount) @ManyToOne(type => BillingAccount)
@JoinColumn({name: 'billing_account_id'}) @JoinColumn({name: 'billing_account_id'})
public billingAccount: BillingAccount; public billingAccount: BillingAccount;
@Column({name: 'created_at', default: () => "CURRENT_TIMESTAMP"}) @Column({name: 'created_at', type: nativeValues.dateTimeType, default: () => "CURRENT_TIMESTAMP"})
public createdAt: Date; public createdAt: Date;
/** /**