Spaces:
Sleeping
Sleeping
File size: 972 Bytes
6f39f03 e1abcaf 6f39f03 1755ee0 e1abcaf 1755ee0 e1abcaf 1755ee0 e1abcaf 1755ee0 e1abcaf 1755ee0 e1abcaf 1755ee0 e1abcaf 1755ee0 e1abcaf 1755ee0 e1abcaf 1755ee0 6f39f03 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
import {
BaseEntity,
Column,
Entity,
OneToOne,
PrimaryGeneratedColumn,
Relation,
} from 'typeorm';
import { OrderEntity } from './order.entity.js';
@Entity('payments')
export class PaymentEntity extends BaseEntity {
@PrimaryGeneratedColumn()
id: number;
@OneToOne(() => OrderEntity, (a) => a.payment)
order: Relation<OrderEntity>;
@Column({ default: 0 })
payment_method: number;
@Column()
vnp_amount: number
@Column({ nullable: true })
vnp_bank_code: string
@Column({ nullable: true })
vnp_bank_tran_no:string
@Column({ default: 0})
vnp_card_type: number
@Column({ nullable: true })
vnp_order_info: string //Nội dung giao dịch
@Column({ nullable: true })
vnp_paydate: string
@Column({ nullable: true })
vnp_response_code: number
@Column({ nullable: true })
vnp_transaction_no: string
@Column({ nullable: true })
vnp_transaction_status: number
}
|