blob: dd2143df5bd1d5c89849296a08bdb73565947244 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { Column, Entity, PrimaryColumn } from 'typeorm';
@Entity({ name: 'transactions', schema: 'raw' })
export class Transaction {
@PrimaryColumn({ name: 'transaction_hash' })
public transactionHash!: string;
@PrimaryColumn({ name: 'block_hash' })
public blockHash!: string;
@PrimaryColumn({ name: 'block_number' })
public blockNumber!: number;
@Column({ type: 'bigint', name: 'gas_used' })
public gasUsed!: number;
@Column({ type: 'bigint', name: 'gas_price' })
public gasPrice!: number;
}
|