Added HBContest, HBForm

This commit is contained in:
ZacTohZY
2024-07-20 20:51:09 +08:00
parent eb4b026e18
commit 086572d171
8 changed files with 422 additions and 0 deletions

42
server/models/HBCform.js Normal file
View File

@@ -0,0 +1,42 @@
const { DataTypes } = require("sequelize");
module.exports = (sequelize, DataTypes) => {
const HBCform = sequelize.define(
"HBCform",
{
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
allowNull: false,
primaryKey: true,
},
electricalBill: {
type: DataTypes.DECIMAL(7, 2),
allowNull: false
},
waterBill: {
type: DataTypes.DECIMAL(7, 2),
allowNull: false
},
totalBill: {
type: DataTypes.DECIMAL(7, 2),
allowNull: false
},
noOfDependents: {
type: DataTypes.INTEGER,
allowNull: false
},
ebPicture: {
type: DataTypes.BLOB("long"),
allowNull: true,
},
wbPicture: {
type: DataTypes.BLOB("long"),
allowNull: true,
},
},
{
tableName: 'hbcform'
});
return HBCform;
}