aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/copper_activity_type.ts
blob: 8fb2dcf709d9ac3af496550f653121bb765dea07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { Column, Entity, PrimaryColumn } from 'typeorm';

import { numberToBigIntTransformer } from '../utils';

@Entity({ name: 'copper_activity_types', schema: 'raw' })
export class CopperActivityType {
    @PrimaryColumn({ type: 'bigint', transformer: numberToBigIntTransformer })
    public id!: number;
    @Column({ name: 'category', type: 'varchar' })
    public category!: string;
    @Column({ name: 'name', type: 'varchar' })
    public name!: string;
    @Column({ name: 'is_disabled', type: 'boolean', nullable: true })
    public isDisabled?: boolean;
    @Column({ name: 'count_as_interaction', type: 'boolean', nullable: true })
    public countAsInteraction?: boolean;
}