Skip to content

Commit

Permalink
update waittime
Browse files Browse the repository at this point in the history
  • Loading branch information
vicwere committed May 15, 2024
1 parent 0a75bc8 commit baf4041
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions models/waittime.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const sequelize = require("../db_config");
const Sequelize = require("sequelize");

const Waittime = sequelize.sequelize.define(
"waittime", {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true
},
timestamp: Sequelize.TEXT,
mfl_code: Sequelize.INTEGER,
county: Sequelize.TEXT,
sub_county: Sequelize.TEXT,
facility_name:Sequelize.TEXT,

queue: Sequelize.TEXT,
average_wait_time: Sequelize.FLOAT,
record_pk: {
type: Sequelize.STRING,
unique: true // Ensure uniqueness of usernames
},
}, {
timestamps: true,
paranoid: true,
underscored: true,
freezeTableName: true,
tableName: "waittime"
}
);
exports.Waittime = Waittime;

0 comments on commit baf4041

Please sign in to comment.