(untested) seperate db saving to allow for hopefully equipment screen to work. api not implemented currently.

This commit is contained in:
kittentm 2026-03-04 01:36:07 +01:00
commit ca3b145a0c
No known key found for this signature in database
GPG key ID: 520EDAA0C8CDE295
5 changed files with 100 additions and 17 deletions

20
judd/models/equipment.js Normal file
View file

@ -0,0 +1,20 @@
const { DataTypes } = require('sequelize');
const { connection } = require('../database');
const Equipment = connection.define('Equipment', {
PId: {
type: DataTypes.BIGINT,
allowNull: false
},
weapon: {
type: DataTypes.INTEGER
},
sumpaint: {
type: DataTypes.INTEGER
}
}, {
tableName: 'equipment',
timestamps: true
});
module.exports = { Equipment };

View file

@ -0,0 +1,34 @@
const { DataTypes } = require('sequelize');
const { connection } = require('../database');
const EquipmentLast = connection.define('EquipmentLast', {
PId: {
type: DataTypes.BIGINT,
allowNull: false,
unique: true
},
weapon: { type: DataTypes.INTEGER },
// shoes
Gear_Shoes: { type: DataTypes.INTEGER },
Gear_Shoes_Skill0: { type: DataTypes.INTEGER },
Gear_Shoes_Skill1: { type: DataTypes.INTEGER },
Gear_Shoes_Skill2: { type: DataTypes.INTEGER },
// clothes
Gear_Clothes: { type: DataTypes.INTEGER },
Gear_Clothes_Skill0: { type: DataTypes.INTEGER },
Gear_Clothes_Skill1: { type: DataTypes.INTEGER },
Gear_Clothes_Skill2: { type: DataTypes.INTEGER },
// hat
Gear_Head: { type: DataTypes.INTEGER },
Gear_Head_Skill0: { type: DataTypes.INTEGER },
Gear_Head_Skill1: { type: DataTypes.INTEGER },
Gear_Head_Skill2: { type: DataTypes.INTEGER },
// levels
Rank: { type: DataTypes.INTEGER },
Udemae: { type: DataTypes.INTEGER }
}, {
tableName: 'equipment_last',
timestamps: true
});
module.exports = { EquipmentLast };