Пример #1
0
class Legal_Document(db.Model):
    __tablename__ = "tbl_legal_document"
    document_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    user_id = db.Column(db.Integer, nullable=True)
    document_type = db.Column(db.String(500), nullable=True)
    notice_content = db.Column(db.String(1000), nullable=True)
    original_file_name = db.Column(db.String(500), nullable=True)
    uuid_file_name = db.Column(db.String(500), nullable=True)
    document_status = db.Column(db.DECIMAL(4, 2), nullable=True)
    # Here approval related changes
    approval_status = db.Column(db.DECIMAL(4, 2), nullable=True)
    approved_date = db.Column(db.DateTime, nullable=True)
    approved_by = db.Column(db.Integer, nullable=True)
    approval_notes = db.Column(db.String(250), nullable=True)
    # approval ends
    is_viewed = db.Column(db.Integer, nullable=True)
    last_upload_date = db.Column(db.DateTime, nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
class InspectionItem(db.Model):
    """ User Model for storing user related details """
    __tablename__ = "tblInspectionItem"
    inspection_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    reference_id = db.Column(db.Integer, nullable=True)
    # 1 - PDC
    # 2 - PJC
    # 3 - SCHEDULED MAINTENANCE
    # 4 - AD HOC
    # 5 -  BREAKDOWN
    inspection_type = db.Column(db.Integer, nullable=True)
    checklist_id = db.Column(db.Integer, nullable=True)
    findings = db.Column(db.String(250), nullable=True)
    inspection_status = db.Column(db.DECIMAL(4, 2), nullable=True)
    approval_category = db.Column(db.Integer, nullable=True)

    # workshop related changes
    supervisor = db.Column(db.String(250), nullable=True)
    mechanic = db.Column(db.String(250), nullable=True)
    inspections_defects = db.Column(db.String(250), nullable=True)
    technician_remarks = db.Column(db.String(250),
                                   nullable=True)  # or Workshop Actions
    workshop_status = db.Column(db.DECIMAL(4, 2), nullable=True)
    date_in = db.Column(db.DateTime, nullable=True)
    date_out = db.Column(db.DateTime, nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
class PDCRegistration(db.Model):
    """ User Model for storing user related details """
    __tablename__ = "tblPDCRegistration"
    pdc_registration_id = db.Column(db.Integer,
                                    primary_key=True,
                                    autoincrement=True)
    user_id = db.Column(db.Integer, nullable=True)
    vehicle_id = db.Column(db.Integer, nullable=True)
    schedule_id = db.Column(db.Integer, nullable=True)
    rt_licence_number = db.Column(db.String(250), nullable=True)
    owner_name = db.Column(db.String(250), nullable=True)
    date_of_registartion = db.Column(db.DateTime, nullable=True)
    date_of_expiry = db.Column(db.DateTime, nullable=True)
    rt_location = db.Column(db.String(250), nullable=True)
    rt_category = db.Column(db.String(250), nullable=True)
    rt_load = db.Column(db.String(250), nullable=True)
    rt_type = db.Column(db.String(250), nullable=True)
    inspection_category = db.Column(db.Integer, nullable=True)
    inspection_notes = db.Column(db.String(250), nullable=True)
    # Here approval related changes
    # 0 - saved
    # 1 - submitted / pending
    # 2 - Approved
    # 3 - Rejected
    approval_status = db.Column(db.DECIMAL(4, 2), nullable=True)
    approved_date = db.Column(db.DateTime, nullable=True)
    approved_by = db.Column(db.Integer, nullable=True)
    approval_notes = db.Column(db.String(250), nullable=True)
    # approval ends

    brake_lining_pad_thickness_pm = db.Column(JSONB, nullable=True)
    brake_lining_pad_thickness_trailer = db.Column(JSONB, nullable=True)
    clutch_Details_info = db.Column(JSONB, nullable=True)
    date_in = db.Column(db.DateTime, nullable=True)
    date_out = db.Column(db.DateTime, nullable=True)
    mechanic = db.Column(db.String(250), nullable=True)
    supervisor = db.Column(db.String(250), nullable=True)
    mileage = db.Column(db.String(250), nullable=True)
    next_due = db.Column(db.String(250), nullable=True)
    rt_regn = db.Column(db.String(250), nullable=True)
    trailer_regn = db.Column(db.String(250), nullable=True)
    remarks = db.Column(db.String(500), nullable=True)
    inspection_type = db.Column(db.Integer, nullable=True)
    repair_overhaul = db.Column(db.String(250), nullable=True)
    welding_shop = db.Column(db.String(250), nullable=True)
    tyre_shop = db.Column(db.String(250), nullable=True)
    completed_status = db.Column(db.DECIMAL(10, 1), nullable=True)

    is_acknowledged = db.Column(db.Boolean, nullable=True)
    acknowledged_date = db.Column(db.DateTime, nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
Пример #4
0
class ReportBranchParts(db.Model):
    """ User Model for storing user related details """
    __tablename__ = "tblReportBranchParts"
    report_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    report_date = db.Column(db.DateTime, nullable=True)
    branch_id = db.Column(db.Integer, nullable=True)
    payment_delivered = db.Column(db.DECIMAL(12, 2), nullable=True)
    payment_sale = db.Column(db.DECIMAL(12, 2), nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime, nullable=True, default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime, nullable=True, default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
class Medical_Claim_Summary(db.Model):
    __tablename__ = "tbl_medical_claim_summary"
    medical_summary_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    user_id = db.Column(db.Integer, nullable=True)
    year = db.Column(db.String(100), nullable=True)
    entitle_claim = db.Column(db.DECIMAL(12,4), nullable=True)
    total_claim_medical = db.Column(db.DECIMAL(12, 4), nullable=True)
    total_claim_checkup = db.Column(db.DECIMAL(12, 4), nullable=True)
    balance_claim_medical = db.Column(db.DECIMAL(12, 4), nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime, nullable=True, default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime, nullable=True, default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
class ScheduleDetail(db.Model):
    """ User Model for storing user related details """
    __tablename__ = "tblScheduleDetail"
    schedule_detail_id = db.Column(db.Integer,
                                   primary_key=True,
                                   autoincrement=True)
    user_id = db.Column(db.Integer, nullable=True)
    schedule_id = db.Column(db.Integer, nullable=True)
    document_id = db.Column(db.Integer, nullable=True)
    rt_regn = db.Column(db.String(250), nullable=True)
    shipment_no = db.Column(db.String(250), nullable=True)
    delivery_note_no = db.Column(db.String(250), nullable=True)
    client = db.Column(db.String(250), nullable=True)
    ship_to_party = db.Column(db.String(250), nullable=True)
    loc = db.Column(db.String(250), nullable=True)
    product = db.Column(db.String(250), nullable=True)
    dist = db.Column(db.DECIMAL(12, 2), nullable=True)
    payment = db.Column(db.DECIMAL(12, 2), nullable=True)
    schedule_category = db.Column(db.String(250), nullable=True)
    schedule_type = db.Column(db.String(250), nullable=True)
    qty = db.Column(db.DECIMAL(12, 2), nullable=True)
    pld_time = db.Column(db.String(250), nullable=True)
    rg = db.Column(db.String(250), nullable=True)

    plnt = db.Column(db.String(250), nullable=True)
    sc = db.Column(db.String(250), nullable=True)
    trans_pln_date = db.Column(db.DateTime, nullable=True)
    dlvr = db.Column(db.String(250), nullable=True)
    s = db.Column(db.String(250), nullable=True)
    t = db.Column(db.String(250), nullable=True)
    act_st_ldt = db.Column(db.String(250), nullable=True)
    maximum_volume = db.Column(db.String(250), nullable=True)
    eta_time = db.Column(db.String(250), nullable=True)
    sold_to = db.Column(db.String(250), nullable=True)
    shty = db.Column(db.String(250), nullable=True)

    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
Пример #7
0
class ReportCorrectiveDetail(db.Model):
    """ User Model for storing user related details """
    __tablename__ = "tblReportCorrectiveDetail"
    detail_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    head_id = db.Column(db.Integer, nullable=True)
    description = db.Column(db.String(250), nullable=True)
    part_no = db.Column(db.String(250), nullable=True)
    qty = db.Column(db.DECIMAL(12, 2), nullable=True)
    price = db.Column(db.DECIMAL(12, 2), nullable=True)
    total = db.Column(db.DECIMAL(12, 2), nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
Пример #8
0
class ClaimDetails(db.Model):
    """ Payroll model related details """
    __tablename__ = "tblclaim_details"
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    claim_id = db.Column(db.Integer, nullable=True)
    item = db.Column(db.String(250), nullable=True)
    description = db.Column(db.String(250), nullable=True)
    company_name = db.Column(db.String(250), nullable=True)
    qty = db.Column(db.Integer, nullable=True)
    unit_price = db.Column(db.DECIMAL(12, 2), nullable=True)
    amount = db.Column(db.DECIMAL(12, 2), nullable=True)
    file_path = db.Column(db.String(250), nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    isactive = db.Column(db.Integer, nullable=True, default=1)
Пример #9
0
class ReportWorkshopPurchase(db.Model):
    """ User Model for storing user related details """
    __tablename__ = "tblReportWorkshopPurchase"
    report_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    report_date = db.Column(db.DateTime, nullable=True)
    supplier_id = db.Column(db.Integer, nullable=True)
    payment = db.Column(db.DECIMAL(12, 2), nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime, nullable=True, default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime, nullable=True, default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
class Report_Download(db.Model):
    __tablename__ = "tbl_report_downloads"
    download_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    public_id = db.Column(db.String(100), nullable=True)
    type = db.Column(db.String(100), nullable=True)
    month = db.Column(db.String(100), nullable=True)
    year = db.Column(db.String(100), nullable=True)
    file_path = db.Column(db.String(500), nullable=True)
    status = db.Column(db.DECIMAL(10, 1), nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime, nullable=True, default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime, nullable=True, default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
Пример #11
0
class Schedule(db.Model):
    """ User Model for storing user related details """
    __tablename__ = "tblSchedule"
    schedule_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    user_id = db.Column(db.Integer, nullable=True)
    vehicle_id = db.Column(db.Integer, nullable=True)
    document_id = db.Column(db.Integer, nullable=True)
    schedule_status = db.Column(db.Integer, nullable=True)
    rt_regn = db.Column(db.String(250), nullable=True)
    schedule_date = db.Column(db.DateTime, nullable=True)
    shipment_no = db.Column(db.String(250), nullable=True)
    delivery_note_no = db.Column(db.String(250), nullable=True)
    client = db.Column(db.String(250), nullable=True)
    ship_to_party = db.Column(db.String(250), nullable=True)
    loc = db.Column(db.String(250), nullable=True)
    product = db.Column(db.String(250), nullable=True)
    dist = db.Column(db.DECIMAL(12, 2), nullable=True)
    payment = db.Column(db.DECIMAL(12, 2), nullable=True)
    schedule_category = db.Column(db.String(250), nullable=True)
    schedule_type = db.Column(db.String(250), nullable=True)
    latitude = db.Column(db.String(250), nullable=True)
    longitude = db.Column(db.String(250), nullable=True)
    qty = db.Column(db.DECIMAL(12, 2), nullable=True)
    pld_time = db.Column(db.String(250), nullable=True)
    rg = db.Column(db.String(250), nullable=True)
    parent_id = db.Column(db.Integer, nullable=True)
    version_no = db.Column(db.String(250), nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
Пример #12
0
class Claim(db.Model):
    """ Payroll model related details """
    __tablename__ = "tblclaim"
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    user_id = db.Column(db.Integer, nullable=True)
    claim_no = db.Column(db.String(250), nullable=True)
    emp_id = db.Column(db.String(250), nullable=True)
    loc = db.Column(db.String(250), nullable=True)
    department = db.Column(db.String(250), nullable=True)
    claim_type = db.Column(db.String(250), nullable=True)
    claim_date = db.Column(db.DateTime, nullable=True)
    status = db.Column(db.DECIMAL(12, 2), nullable=True)
    grand_total = db.Column(db.DECIMAL(12, 2), nullable=True)
    paid_date = db.Column(db.DateTime, nullable=True)

    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    isactive = db.Column(db.Integer, nullable=True, default=1)
Пример #13
0
class Schedule_Document(db.Model):
    __tablename__ = "tbl_schedule_document"
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    document_path = db.Column(db.String(500), nullable=True)
    original_file_name = db.Column(db.String(100), nullable=True)
    uuid_file_name = db.Column(db.String(500), nullable=True)
    document_status = db.Column(db.DECIMAL(2, 2), nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
Пример #14
0
class PDCRegistrationInspection(db.Model):
    """ User Model for storing user related details """
    __tablename__ = "tblPDCRegistrationInspection"
    pdc_registration_inspection_id = db.Column(db.Integer,
                                               primary_key=True,
                                               autoincrement=True)
    pdc_registration_id = db.Column(db.Integer, nullable=True)
    checklist_id = db.Column(db.Integer, nullable=True)
    findings = db.Column(db.String(250), nullable=True)
    inspection_status = db.Column(db.DECIMAL(4, 2), nullable=True)
    approval_category = db.Column(db.Integer, nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
class Medical_Claim(db.Model):
    __tablename__ = "tbl_medical_claim"
    claim_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    user_id = db.Column(db.Integer, nullable=True)
    year = db.Column(db.String(100), nullable=True)
    claim_date = db.Column(db.DateTime, nullable=True)
    claim_type = db.Column(db.String(100), nullable=True)
    claim_amount = db.Column(db.DECIMAL(12, 4), nullable=True)
    clinic_name = db.Column(db.String(500), nullable=True)
    ori_file_name = db.Column(db.String(500), nullable=True)
    uuid_file_name = db.Column(db.String(500), nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
class Leave_Summary(db.Model):
    __tablename__ = "tbl_leave_summary"
    summary_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    user_id = db.Column(db.Integer, nullable=True)
    year = db.Column(db.String(100), nullable=True)
    previous_year_balance = db.Column(db.Integer, nullable=True)
    leave_allocated = db.Column(db.Integer, nullable=True)
    annual_leave = db.Column(db.Integer, nullable=True)
    medical_leave_allocated = db.Column(db.Integer, nullable=True)
    medical_leave = db.Column(db.Integer, nullable=True)
    leave_others = db.Column(db.Integer, nullable=True)
    leave_taken = db.Column(db.DECIMAL(2, 2), nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
Пример #17
0
class Insurance(db.Model):
    __tablename__ = "tbl_insurance"
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    public_id = db.Column(db.String(255), nullable=False)
    vehicle_id = db.Column(db.Integer, nullable=True)
    policy = db.Column(db.String(300), nullable=True)
    loc = db.Column(db.String(300), nullable=True)
    ref_no = db.Column(db.String(300), nullable=True)
    due_date = db.Column(db.DateTime, nullable=True)
    bank_or_insurer = db.Column(db.String(300), nullable=True)
    amount = db.Column(db.DECIMAL(12, 4), nullable=True)
    remarks = db.Column(db.String(300), nullable=True)
    types = db.Column(db.String(300), nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
Пример #18
0
class Leave_Application(db.Model):
    __tablename__ = "tbl_leave_application"
    leave_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    user_id = db.Column(db.Integer, nullable=True)
    from_date = db.Column(db.DateTime, nullable=True)
    to_date = db.Column(db.DateTime, nullable=True)
    days_of_leave = db.Column(db.String(500), nullable=True)
    leave_type = db.Column(db.String(500), nullable=True)
    status = db.Column(db.DECIMAL(10, 1), nullable=True)
    is_after_leave_taken = db.Column(db.Integer, nullable=True)
    file_path = db.Column(db.String(500), nullable=True)
    reason = db.Column(db.String(500), nullable=True)
    rejection_reason = db.Column(db.String(500), nullable=True)
    rejected_by = db.Column(db.String(500), nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)
class ReportExpense(db.Model):
    """ User Model for storing user related details """
    __tablename__ = "tblReportExpense"
    report_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    report_date = db.Column(db.DateTime, nullable=True)
    rt_regn = db.Column(db.String(250), nullable=True)
    repair_cost = db.Column(db.DECIMAL(12, 2), nullable=True)
    new_tyre = db.Column(db.DECIMAL(12, 2), nullable=True)
    recamic_tyre = db.Column(db.DECIMAL(12, 2), nullable=True)
    battery = db.Column(db.DECIMAL(12, 2), nullable=True)
    lube = db.Column(db.DECIMAL(12, 2), nullable=True)
    spare_battery_lube = db.Column(db.DECIMAL(12, 2), nullable=True)
    total_from_irs = db.Column(db.DECIMAL(12, 2), nullable=True)
    remarks = db.Column(db.String(250), nullable=True)
    created_by = db.Column(db.Integer, nullable=True)
    updated_by = db.Column(db.Integer, nullable=True)
    created_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    updated_date = db.Column(db.DateTime,
                             nullable=True,
                             default=datetime.datetime.utcnow())
    isActive = db.Column(db.Integer, nullable=True, default=1)