import { MyProvinceModel, ProvinceModel } from "./province.model"

export interface WorkareaModel {
    workareaId: string
    tdesc: string
    edesc: string
    store: string
    province: ProvinceModel
}
export class MyWorkareaModel implements WorkareaModel {
    workareaId: string
    tdesc: string
    edesc: string
    store: string
    province: ProvinceModel
    constructor(data: Partial<WorkareaModel>) {
        this.workareaId = data.workareaId || ""
        this.tdesc = data.tdesc || ""
        this.edesc = data.edesc || ""
        this.store = data.store || ""
        this.province = new MyProvinceModel(data.province || {})
    }
}

