UNPKG

@teqed/interact-ibmi

Version:

Menus for interacting with IBMi AS400 using node-odbc.

41 lines (40 loc) 1.26 kB
/* eslint-disable unicorn/filename-case */ /* eslint-disable canonical/filename-match-regex */ /* eslint-disable typescript-sort-keys/interface */ /* eslint-disable canonical/sort-keys */ import { DataTypes, Model } from '@sequelize/core'; export class TQ001AP extends Model { static initModel(sequelize) { // USERID and KEYCOLOR are a composite primary key // eslint-disable-next-line canonical/id-match return TQ001AP.init({ USERID: { allowNull: false, primaryKey: true, references: { key: `USERID`, model: `TQ001AP`, }, type: DataTypes.STRING(10), }, KEYCOLOR: { allowNull: false, primaryKey: true, references: { key: `KEYCOLOR`, model: `TQ001AP`, }, type: DataTypes.STRING(10), }, ACCESS: { allowNull: false, type: DataTypes.BOOLEAN, }, }, { schema: `TEQ1`, sequelize, tableName: `TQ001AP`, timestamps: false, }); } }