blob: 95cd4f2f5867f7815baa688cc3e37404ef368ae2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import { Column, Entity, PrimaryColumn } from 'typeorm';
@Entity({ name: 'ohlcv_external', schema: 'raw' })
export class OHLCVExternal {
@PrimaryColumn() public exchange!: string;
@PrimaryColumn() public fromSymbol!: string;
@PrimaryColumn() public toSymbol!: string;
@PrimaryColumn() public startTime!: number;
@PrimaryColumn() public endTime!: number;
@Column() public open!: number;
@Column() public close!: number;
@Column() public low!: number;
@Column() public high!: number;
@Column() public volumeFrom!: number;
@Column() public volumeTo!: number;
@PrimaryColumn() public source!: string;
@PrimaryColumn() public observedTimestamp!: number;
}
|