Skip to content

Commit

Permalink
feat: add payment entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff-Tian committed Sep 30, 2022
1 parent c04b465 commit ff38bb4
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions src/db/entities/payments.entity.ts
@@ -0,0 +1,53 @@
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
import { ApiProperty } from '@nestjs/swagger';

@Entity()
export class Payment {
@PrimaryGeneratedColumn()
@ApiProperty()
id: number;

@Column({ unique: true })
@ApiProperty()
transaction_id: string;

@Column()
@ApiProperty()
trade_state: number;

@Column()
@ApiProperty()
pay_time: number;

@Column()
@ApiProperty()
out_trade_no: string;

@Column()
@ApiProperty()
external_userid: string;

@Column()
@ApiProperty()
total_fee: number;

@Column()
@ApiProperty()
payee_userid: string;

@Column()
@ApiProperty()
payment_type: number;

@Column()
@ApiProperty()
mch_id: string;

@Column()
@ApiProperty()
remark: string;

@Column()
@ApiProperty()
total_refund_fee: number;
}

0 comments on commit ff38bb4

Please sign in to comment.