aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/token_on_chain_metadata.ts
blob: 325d28e916eb784abf44ce27486eb26514207c76 (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: 'token_on_chain_metadata', schema: 'raw' })
export class TokenOnChainMetadata {
    @PrimaryColumn({ type: 'nvarchar', nullable: false })
    public address!: string;

    @Column({ type: 'integer', nullable: false })
    public decimals!: number;

    @Column({ type: 'nvarchar', nullable: false })
    public symbol!: string;

    @Column({ type: 'nvarchar', nullable: false })
    public name!: string;
}