31 lines
546 B
TypeScript
31 lines
546 B
TypeScript
|
//
|
||
|
// Copyright 2021 Vulcanize, Inc.
|
||
|
//
|
||
|
|
||
|
import { Entity, PrimaryColumn, Column, Index } from 'typeorm';
|
||
|
|
||
|
@Entity()
|
||
|
@Index(['blockNumber'])
|
||
|
export class _TokenPair {
|
||
|
@PrimaryColumn('varchar')
|
||
|
id!: string;
|
||
|
|
||
|
@PrimaryColumn('varchar', { length: 66 })
|
||
|
blockHash!: string;
|
||
|
|
||
|
@Column('integer')
|
||
|
blockNumber!: number;
|
||
|
|
||
|
@Column('varchar')
|
||
|
pair!: string;
|
||
|
|
||
|
@Column('varchar')
|
||
|
token!: string;
|
||
|
|
||
|
@Column('boolean', { default: false })
|
||
|
isPruned!: boolean;
|
||
|
|
||
|
@Column('boolean', { default: false })
|
||
|
isRemoved!: boolean;
|
||
|
}
|