mirror of
https://github.com/sergeyyarkov/asu_tools_service.git
synced 2026-10-11 18:39:15 +03:00
21 lines
702 B
JavaScript
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();
|