asu_tools_service/tables/report.table.js
2026-08-26 10:08:25 +03:00

21 lines
702 B
JavaScript

import sql from "mssql";
import { BaseTable } from "./base.table.js";
export class ReportTable extends BaseTable {
static tableName = "gpp_report_api_report";
static table = new sql.Table(this.tableName);
static columns = {
id: { type: sql.BigInt, nullable: false },
date: { type: sql.Date, nullable: false },
reason_call: { type: sql.NVarChar(sql.MAX), nullable: false },
job_description: { type: sql.NVarChar(sql.MAX), nullable: false },
root_cause: { type: sql.NVarChar(sql.MAX), nullable: true },
applicant_id: { type: sql.BigInt, nullable: true },
equipment_id: { type: sql.BigInt, nullable: true }
};
}
ReportTable.table.create = false;
ReportTable.init();