aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/token_on_chain_metadata.ts
blob: ca1f1827b32e730bd7aa2ec81573ec1e8c1ce887 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
}

@Entity({ name: 'trusted_tokens', schema: 'raw' })
export class TrustedTokens {
    @PrimaryColumn() public address!: string;
    @PrimaryColumn() public authority!: string;
}