import { CategoryModel } from "./itemDetail.model";

export class Equirment {
    eqId: number;
    eqName: string;
    eqDesc: string;
    eqType: string;
    eqPic: string;
    constructor(init?: Equirment){
        Object.assign(this, init);
        this.eqId = 0;
        this.eqName = '';
        this.eqDesc = '';
        this.eqType = '';
        this.eqPic = '';
    }
}

export interface SearchEquirmentModel {
    sDate: string;
    eDate: string;
    sTime: string;
    eTime: string;
}

export class SearchEquirmentModel {
    constructor(init?: SearchEquirmentModel) {
        Object.assign(this, init);
        this.sDate = '',
        this.eDate = '',
        this.sTime = '',
        this.eTime = '';
    }
}

interface EquirmentModel {
    id: number;
    name: string;
    desc: string;
    type?: CategoryModel;
    pic: string;
  }