mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Add column types to Limit entity
This commit is contained in:
parent
6fbe3db677
commit
de44e491b4
@ -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;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user