Spaces:
Sleeping
Sleeping
import { | |
BaseEntity, | |
Column, | |
Entity, | |
OneToOne, | |
PrimaryGeneratedColumn, | |
Relation, | |
} from 'typeorm'; | |
import { OrderEntity } from './order.entity.js'; | |
'payments') | (|
export class PaymentEntity extends BaseEntity { | |
() | |
id: number; | |
() => OrderEntity, (a) => a.payment) | (|
order: Relation<OrderEntity>; | |
default: 0 }) | ({|
payment_method: number; | |
() | |
vnp_amount: number | |
nullable: true }) | ({|
vnp_bank_code: string | |
nullable: true }) | ({|
vnp_bank_tran_no:string | |
default: 0}) | ({|
vnp_card_type: number | |
nullable: true }) | ({|
vnp_order_info: string //Nội dung giao dịch | |
nullable: true }) | ({|
vnp_paydate: string | |
nullable: true }) | ({|
vnp_response_code: number | |
nullable: true }) | ({|
vnp_transaction_no: string | |
nullable: true }) | ({|
vnp_transaction_status: number | |
} | |