Untitled

mail@pastecode.io avatar
unknown
typescript
2 years ago
2.3 kB
1
Indexable
Never
import {Entity, Column, PrimaryColumn, Generated, BaseEntity} from "typeorm"

@Entity({name: 'data_main_target', schema: 'hsny'})

export class MainTarget extends BaseEntity {
    @PrimaryColumn({
        name: 'uuid', 
        type: 'varchar', 
        length: 36, 
        nullable: false
    })
    @Generated('uuid')
    uuid?: string

    @Column({
        name: 'fiscal_uuid', 
        type: 'varchar', 
        length: 36, 
        default: null
    })
    fiscal_uuid?: string

    @Column({
        name: 'organization_uuid', 
        type: 'varchar', 
        length: 36, 
        default: null
    })
    organization_uuid?: string

    @Column({
        name: 'sequence', 
        type: 'int', 
        length: 11, 
        default: null
    })
    sequence?: number

    @Column({
        name: 'jurisdiction_id', 
        type: 'varchar', 
        length: 6, 
        default: null
    })
    jurisdiction_id?: string

    @Column({
        name: 'main_target', 
        type: 'int', 
        length: 11, 
        default: null
    })
    main_target?: number

    @Column({
        name: 'outreach_target', 
        type: 'int', 
        length: 11, 
        default: null
    })
    outreach_target?: number

    @Column({
        name: 'person_target', 
        type: 'int', 
        length: 11, 
        default: null
    })
    person_total?: number

    @Column({
        name: 'prescreen_target', 
        type: 'int', 
        length: 11, 
        default: null
    })
    prescreen_target?: number

    @Column({
        name: 'recertification_target', 
        type: 'int', 
        length: 11, 
        default: null
    })
    recertification_target?: number

    @Column({
        name: 'barrier_target', 
        type: 'int', 
        length: 11, 
        default: null
    })
    barrier_target?: number

    @Column({
        name: 'collaboration_target', 
        type: 'int', 
        length: 11, 
        default: null
    })
    collaboration_target?: number

    @Column({
        name: 'tracking_percent', 
        type: 'int', 
        length: 11, 
        default: null
    })
    tracking_percent?: number
}