You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
385 B
28 lines
385 B
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
|
@Entity()
|
|
export class Transaction {
|
|
@PrimaryGeneratedColumn()
|
|
id?: number;
|
|
|
|
@Column()
|
|
amount: number;
|
|
|
|
@Column()
|
|
currency: string;
|
|
|
|
@Column()
|
|
client_id: number;
|
|
|
|
@Column()
|
|
date: string;
|
|
|
|
@Column()
|
|
commission: number;
|
|
|
|
@Column()
|
|
base_currency: string;
|
|
|
|
@Column()
|
|
base_amount: number;
|
|
}
|
|
|