blob: f23f6ab22ca33400a573ffad99c7116085c64006 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import { Column, Entity, PrimaryColumn } from 'typeorm';
import { numberToBigIntTransformer } from '../utils';
@Entity({ name: 'copper_custom_fields', schema: 'raw' })
export class CopperCustomField {
@PrimaryColumn({ type: 'bigint', transformer: numberToBigIntTransformer })
public id!: number;
@Column({ name: 'data_type', type: 'varchar' })
public dataType!: string;
@Column({ name: 'field_type', type: 'varchar', nullable: true })
public fieldType?: string;
@Column({ name: 'name', type: 'varchar' })
public name!: string;
}
|