UNPKG

@teqed/interact-ibmi

Version:

Menus for interacting with IBMi AS400 using node-odbc.

183 lines (182 loc) 5.16 kB
/* eslint-disable unicorn/filename-case */ import { DataTypes, Model } from '@sequelize/core'; export class JOB_ATTR extends Model { static initModel(sequelize) { return JOB_ATTR.init({ JOB: { type: DataTypes.STRING, primaryKey: true, allowNull: true, }, JOB_STATUS: { type: DataTypes.STRING, allowNull: true, }, JOB_TYPE: { type: DataTypes.CHAR, allowNull: true, }, JOB_SUBTYPE: { type: DataTypes.CHAR, allowNull: true, }, JOB_NAME: { type: DataTypes.STRING, allowNull: true, }, JOB_USER_NAME: { type: DataTypes.STRING, allowNull: true, }, JOB_NBR: { type: DataTypes.STRING, allowNull: true, }, JOB_DATE: { type: DataTypes.DATEONLY, allowNull: true, }, DATE_ENTERED_SYSTEM: { type: DataTypes.TIME, allowNull: true, }, DATE_JOB_ACTIVE: { type: DataTypes.TIME, allowNull: true, }, JOB_GRPPRF: { type: DataTypes.STRING, allowNull: true, }, JOB_CURUSR: { type: DataTypes.STRING, allowNull: true, }, JOBD_NAME: { type: DataTypes.STRING, allowNull: true, }, JOBD_LIB: { type: DataTypes.STRING, allowNull: true, }, MODE_NAME: { type: DataTypes.STRING, allowNull: true, }, LOGCLPGM: { type: DataTypes.STRING, allowNull: true, }, BRKMSGHANDLING: { type: DataTypes.STRING, allowNull: true, }, STSMSGHANDLING: { type: DataTypes.STRING, allowNull: true, }, DECFMT: { type: DataTypes.CHAR, allowNull: true, }, DATESEP: { type: DataTypes.CHAR, allowNull: true, }, DATEFMT: { type: DataTypes.CHAR, allowNull: true, }, TIMESEP: { type: DataTypes.CHAR, allowNull: true, }, TIME_ZONE: { type: DataTypes.STRING, allowNull: true, }, DAYOFWEEK: { type: DataTypes.STRING, allowNull: true, }, LANGUAGE_ID: { type: DataTypes.STRING, allowNull: true, }, COUNTRY_ID: { type: DataTypes.STRING, allowNull: true, }, CCSID: { type: DataTypes.INTEGER, allowNull: true, }, DFTCCSID: { type: DataTypes.INTEGER, allowNull: true, }, SBMJOB_NAME: { type: DataTypes.STRING, allowNull: true, }, SBMJOB_USER: { type: DataTypes.STRING, allowNull: true, }, SBMJOB_NBR: { type: DataTypes.STRING, allowNull: true, }, JOB_SBSNAME: { type: DataTypes.STRING, allowNull: true, }, JOB_SBSLIB: { type: DataTypes.STRING, allowNull: true, }, DEVNAME: { type: DataTypes.STRING, allowNull: true, }, CLIENT_IP: { type: DataTypes.STRING, allowNull: true, }, END_SEV: { type: DataTypes.INTEGER, allowNull: true, }, LOG_LEVEL: { type: DataTypes.INTEGER, allowNull: true, }, LOG_SEV: { type: DataTypes.INTEGER, allowNull: true, }, LOG_MSGTEXTLVL: { type: DataTypes.STRING, allowNull: true, }, JOB_SWITCHES: { type: DataTypes.CHAR, allowNull: true, }, JOBLOG_OUTPUT: { type: DataTypes.STRING, allowNull: true, }, ALLOW_MULTIPLE_THREADS: { type: DataTypes.STRING, allowNull: true, }, }, { sequelize, tableName: `JOB_ATTR`, schema: `IQUERY`, timestamps: false, }); } }