up
This commit is contained in:
@@ -44,8 +44,17 @@ export class Order extends BaseEntity {
|
|||||||
})
|
})
|
||||||
items = new Collection<OrderItem>(this);
|
items = new Collection<OrderItem>(this);
|
||||||
|
|
||||||
@ManyToOne(() => UserAddress, { nullable: true })
|
@Property({ type: 'json', nullable: true })
|
||||||
address?: UserAddress;
|
address?: {
|
||||||
|
address: string;
|
||||||
|
latitude: number;
|
||||||
|
longitude: number;
|
||||||
|
city: string;
|
||||||
|
province: string;
|
||||||
|
postalCode: string;
|
||||||
|
fullName: string;
|
||||||
|
phone: string;
|
||||||
|
};
|
||||||
|
|
||||||
@ManyToOne(() => PaymentMethod)
|
@ManyToOne(() => PaymentMethod)
|
||||||
paymentMethod: PaymentMethod;
|
paymentMethod: PaymentMethod;
|
||||||
|
|||||||
Reference in New Issue
Block a user