update entity
This commit is contained in:
@@ -26,6 +26,9 @@ export class Order extends BaseEntity {
|
||||
@PrimaryKey({ type: 'string', columnType: 'char(26)' })
|
||||
id: string = ulid()
|
||||
|
||||
//TODO : need a new field for confirmation .confirmedAt
|
||||
// also need another for
|
||||
|
||||
@ManyToOne(() => User)
|
||||
user!: User;
|
||||
|
||||
@@ -80,7 +83,7 @@ export class Order extends BaseEntity {
|
||||
balance!: number;
|
||||
|
||||
@Property({ type: 'decimal', precision: 10, scale: 0, nullable: true })
|
||||
dueDate?: number;
|
||||
dueDate?: number; // number of days to be done
|
||||
// get balance(): number {
|
||||
// return this._balance
|
||||
// }
|
||||
@@ -94,14 +97,14 @@ export class Order extends BaseEntity {
|
||||
@Enum(() => OrderStatusEnum)
|
||||
status!: OrderStatusEnum;
|
||||
|
||||
@Property({ nullable: true, columnType: 'timestamptz' })
|
||||
confirmedAt?: Date;
|
||||
// @Property({ nullable: true, columnType: 'timestamptz' })
|
||||
// confirmedAt?: Date;
|
||||
|
||||
@Property({ type: 'json', nullable: true })
|
||||
attachments?: string[]
|
||||
|
||||
@Property({ type: 'json', nullable: true })
|
||||
printIds?: string[]
|
||||
printIds?: string[] // id of field options
|
||||
|
||||
@Property({ type: 'string', nullable: true })
|
||||
paymentMethod?: string;
|
||||
|
||||
Reference in New Issue
Block a user