protocol/packages/pipeline/src/entities/copper_custom_field.ts
Xianny 27fc640a9e
fetch and save copper (#1472)
Fetch and save Copper CRM
2019-01-08 13:50:51 -08:00

16 lines
563 B
TypeScript

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;
}