blob: ca1e5793724d20100758ec2936ee869e818b9878 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import { Column, Entity, PrimaryColumn } from 'typeorm';
@Entity({ name: 'token_metadata', schema: 'raw' })
export class TokenMetadata {
@PrimaryColumn({ type: 'varchar', nullable: false })
public address!: string;
@PrimaryColumn({ type: 'varchar', nullable: false })
public authority!: string;
// TODO(albrow): Convert decimals field to type BigNumber/numeric because it
// comes from a 256-bit integer in a smart contract.
@Column({ type: 'integer', nullable: true })
public decimals!: number | null;
@Column({ type: 'varchar', nullable: true })
public symbol!: string | null;
@Column({ type: 'varchar', nullable: true })
public name!: string | null;
}
|