mirror of
https://github.com/sergeyyarkov/asu_tools_service.git
synced 2026-10-11 10:29:22 +03:00
20 lines
558 B
JavaScript
20 lines
558 B
JavaScript
import sql from "mssql";
|
|
import { BaseTable } from "./base.table.js";
|
|
|
|
/**
|
|
* @typedef {{ id: string | number; report_id: string | number; user_id: string | number; }} ReportExecutorTableCols
|
|
*/
|
|
|
|
export class ReportExecutorTable extends BaseTable {
|
|
static tableName = "gpp_report_api_report_executor";
|
|
static table = new sql.Table(this.tableName);
|
|
|
|
static columns = {
|
|
report_id: { type: sql.BigInt, nullable: false },
|
|
user_id: { type: sql.BigInt, nullable: false }
|
|
};
|
|
}
|
|
|
|
ReportExecutorTable.table.create = false;
|
|
ReportExecutorTable.init();
|