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