From 5a03433081b83f82378fb74b9ebb40431acd7e4b Mon Sep 17 00:00:00 2001 From: "Aaron K. Clark" Date: Tue, 19 May 2026 04:10:55 -0500 Subject: [PATCH] chore(models): strip trailing whitespace and standardize "use strict" in the 3 legacy models MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit apikey, apimaster, and customer were the first three model files written and pre-date the codebase's current style conventions: - `'use strict';` (single-quoted) vs every other model's `"use strict";` (double-quoted) - Trailing whitespace on every property line — disagrees with `.editorconfig`'s `trim_trailing_whitespace = true` for `*.js`, so the first contributor with an EditorConfig-aware editor would see a noisy diff on save unrelated to the change they're making. Pure mechanical cleanup. No behavior change: - Sequelize field declarations untouched (still no `allowNull` / `defaultValue` overrides — those would be real behavior changes the DDL in `setup/TimeTracker.sql` is authoritative for). - Module shape, options block, `defaultScope`, `tableName` all preserved verbatim. - 632 tests still pass. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/models/apikey.model.js | 8 ++------ app/models/apimaster.model.js | 9 ++------- app/models/customer.model.js | 14 ++------------ 3 files changed, 6 insertions(+), 25 deletions(-) diff --git a/app/models/apikey.model.js b/app/models/apikey.model.js index bcb2c46..15e061c 100644 --- a/app/models/apikey.model.js +++ b/app/models/apikey.model.js @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // Copyright 2026 Aaron K. Clark -'use strict'; +"use strict"; module.exports = (sequelize, Sequelize) => { const ApiKey = sequelize.define('ApiKey', { akId: { @@ -12,22 +12,18 @@ module.exports = (sequelize, Sequelize) => { akKEY: { field: 'akKEY', type: Sequelize.STRING - }, akCompanyId: { field: 'akCompanyId', type: Sequelize.INTEGER - }, akArchive: { field: 'akArchive', type: Sequelize.BOOLEAN - }, akArchiveDate: { field: 'akArchiveDate', type: Sequelize.DATE - } }, { @@ -37,4 +33,4 @@ module.exports = (sequelize, Sequelize) => { } ); return ApiKey; -} \ No newline at end of file +} diff --git a/app/models/apimaster.model.js b/app/models/apimaster.model.js index d6ec568..121f407 100644 --- a/app/models/apimaster.model.js +++ b/app/models/apimaster.model.js @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // Copyright 2026 Aaron K. Clark -'use strict'; +"use strict"; module.exports = (sequelize, Sequelize) => { const ApiMaster = sequelize.define('ApiMaster', { amId: { @@ -12,17 +12,14 @@ module.exports = (sequelize, Sequelize) => { amKEY: { field: 'amKEY', type: Sequelize.STRING - }, amArchive: { field: 'amArchive', type: Sequelize.BOOLEAN - }, amArchiveDate: { field: 'amArchiveDate', type: Sequelize.DATE - } }, { @@ -32,7 +29,5 @@ module.exports = (sequelize, Sequelize) => { } ); - - return ApiMaster; -} \ No newline at end of file +} diff --git a/app/models/customer.model.js b/app/models/customer.model.js index 29d2a8e..fd351bd 100644 --- a/app/models/customer.model.js +++ b/app/models/customer.model.js @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // Copyright 2026 Aaron K. Clark -'use strict'; +"use strict"; module.exports = (sequelize, Sequelize) => { const Customer = sequelize.define('Customer', { custId: { @@ -12,37 +12,30 @@ module.exports = (sequelize, Sequelize) => { custCompanyName: { field: 'custCompanyName', type: Sequelize.STRING - }, custFName: { field: 'custFName', type: Sequelize.STRING - }, custLName: { field: 'custLName', type: Sequelize.STRING - }, custAddress1: { field: 'custAddress1', type: Sequelize.STRING - }, custAddress2: { field: 'custAddress2', type: Sequelize.STRING - }, custCity: { field: 'custCity', type: Sequelize.STRING - }, custState: { field: 'custState', type: Sequelize.STRING - }, custZip: { field: 'custZip', @@ -55,7 +48,6 @@ module.exports = (sequelize, Sequelize) => { custPhone: { field: 'custPhone', type: Sequelize.STRING - }, custEmail: { field: 'custEmail', @@ -73,7 +65,5 @@ module.exports = (sequelize, Sequelize) => { } ); - - return Customer; -} \ No newline at end of file +}