fix: npm version fix

This commit is contained in:
DeathKaioken 2026-01-13 13:57:39 +01:00
parent 80e7a96bce
commit bf6b9d27af
3 changed files with 1092 additions and 1466 deletions

View File

@ -900,6 +900,27 @@ async function createDatabase() {
`); `);
console.log(' matrix_config (legacy) verified'); console.log(' matrix_config (legacy) verified');
await connection.query(`
CREATE TABLE IF NOT EXISTS pools (
id INT AUTO_INCREMENT PRIMARY KEY,
pool_name VARCHAR(255) NOT NULL,
description TEXT NULL,
price DECIMAL(10,2) NOT NULL DEFAULT 0.00,
pool_type ENUM('coffee','other') NOT NULL DEFAULT 'other',
is_active TINYINT(1) NOT NULL DEFAULT 1,
created_by INT NULL,
updated_by INT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
CONSTRAINT uq_pools_name UNIQUE (pool_name),
CONSTRAINT fk_pools_created_by FOREIGN KEY (created_by) REFERENCES users(id) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT fk_pools_updated_by FOREIGN KEY (updated_by) REFERENCES users(id) ON DELETE SET NULL ON UPDATE CASCADE,
INDEX idx_pools_active (is_active),
INDEX idx_pools_type (pool_type)
);
`);
console.log('✅ Pools table created/verified');
// --- user_matrix_metadata: add matrix_instance_id + alter PK --- // --- user_matrix_metadata: add matrix_instance_id + alter PK ---
await connection.query(` await connection.query(`
CREATE TABLE IF NOT EXISTS user_matrix_metadata ( CREATE TABLE IF NOT EXISTS user_matrix_metadata (

2535
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -22,7 +22,6 @@
"@aws-sdk/s3-request-presigner": "^3.894.0", "@aws-sdk/s3-request-presigner": "^3.894.0",
"@getbrevo/brevo": "^3.0.1", "@getbrevo/brevo": "^3.0.1",
"argon2": "^0.44.0", "argon2": "^0.44.0",
"aws-sdk": "^2.1692.0",
"cookie-parser": "^1.4.7", "cookie-parser": "^1.4.7",
"cors": "^2.8.5", "cors": "^2.8.5",
"csv-parse": "^6.1.0", "csv-parse": "^6.1.0",
@ -36,6 +35,7 @@
"pdfkit": "^0.17.2", "pdfkit": "^0.17.2",
"pidusage": "^4.0.1", "pidusage": "^4.0.1",
"puppeteer": "^24.22.0", "puppeteer": "^24.22.0",
"uuid": "^13.0.0",
"winston": "^3.17.0", "winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0" "winston-daily-rotate-file": "^5.0.0"
}, },