aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/copper_custom_field.ts
diff options
context:
space:
mode:
authorXianny <8582774+xianny@users.noreply.github.com>2019-01-09 05:50:51 +0800
committerGitHub <noreply@github.com>2019-01-09 05:50:51 +0800
commit27fc640a9eae70813e9f02cda2c27a4509a04591 (patch)
tree487721d8f59a978e23bb0e5d35b573eae7ec6b0a /packages/pipeline/src/entities/copper_custom_field.ts
parent4689f20b86333d74fa0ccd45b23c560a0a0361b5 (diff)
downloaddexon-0x-contracts-27fc640a9eae70813e9f02cda2c27a4509a04591.tar
dexon-0x-contracts-27fc640a9eae70813e9f02cda2c27a4509a04591.tar.gz
dexon-0x-contracts-27fc640a9eae70813e9f02cda2c27a4509a04591.tar.bz2
dexon-0x-contracts-27fc640a9eae70813e9f02cda2c27a4509a04591.tar.lz
dexon-0x-contracts-27fc640a9eae70813e9f02cda2c27a4509a04591.tar.xz
dexon-0x-contracts-27fc640a9eae70813e9f02cda2c27a4509a04591.tar.zst
dexon-0x-contracts-27fc640a9eae70813e9f02cda2c27a4509a04591.zip
fetch and save copper (#1472)
Fetch and save Copper CRM
Diffstat (limited to 'packages/pipeline/src/entities/copper_custom_field.ts')
-rw-r--r--packages/pipeline/src/entities/copper_custom_field.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/pipeline/src/entities/copper_custom_field.ts b/packages/pipeline/src/entities/copper_custom_field.ts
new file mode 100644
index 000000000..f23f6ab22
--- /dev/null
+++ b/packages/pipeline/src/entities/copper_custom_field.ts
@@ -0,0 +1,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;
+}