diff --git a/models/admissions.js b/models/admissions.js index fdbcf45..b45bafa 100644 --- a/models/admissions.js +++ b/models/admissions.js @@ -10,7 +10,7 @@ const Admissions = sequelize.sequelize.define( }, mfl_code: Sequelize.INTEGER, ward: Sequelize.TEXT, - time_stamp: Sequelize.TEXT, + timestamp: Sequelize.TEXT, capacity: Sequelize.BIGINT, occupancy: Sequelize.BIGINT, diff --git a/models/billing.js b/models/billing.js index d802369..f671c3e 100644 --- a/models/billing.js +++ b/models/billing.js @@ -8,7 +8,7 @@ const Billing = sequelize.sequelize.define( primaryKey: true, autoIncrement: true }, - time_stamp: Sequelize.TEXT, + timestamp: Sequelize.TEXT, mfl_code: Sequelize.INTEGER, service_type: Sequelize.TEXT, invoices_total: Sequelize.BIGINT, diff --git a/models/diagnosis.js b/models/diagnosis.js index 8514e60..00344f5 100644 --- a/models/diagnosis.js +++ b/models/diagnosis.js @@ -8,7 +8,7 @@ const Diagnosis = sequelize.sequelize.define( primaryKey: true, autoIncrement: true }, - time_stamp: Sequelize.TEXT, + timestamp: Sequelize.TEXT, mfl_code: Sequelize.INTEGER, diagnosis_name: Sequelize.TEXT, total: Sequelize.BIGINT, diff --git a/models/inventory.js b/models/inventory.js index 015d6cb..0ce436a 100644 --- a/models/inventory.js +++ b/models/inventory.js @@ -8,7 +8,7 @@ const Inventory = sequelize.sequelize.define( primaryKey: true, autoIncrement: true }, - time_stamp: Sequelize.TEXT, + timestamp: Sequelize.TEXT, mfl_code: Sequelize.INTEGER, item_type: Sequelize.TEXT, item_name: Sequelize.TEXT, diff --git a/models/payments.js b/models/payments.js index a1b0603..7c47672 100644 --- a/models/payments.js +++ b/models/payments.js @@ -8,7 +8,7 @@ const Payments = sequelize.sequelize.define( primaryKey: true, autoIncrement: true }, - time_stamp: Sequelize.TEXT, + timestamp: Sequelize.TEXT, mfl_code: Sequelize.INTEGER, payment_mode: Sequelize.TEXT, no_of_patients: Sequelize.INTEGER, diff --git a/models/visits.js b/models/visits.js index e59e2f6..f392fd0 100644 --- a/models/visits.js +++ b/models/visits.js @@ -8,7 +8,7 @@ const Visits = sequelize.sequelize.define( primaryKey: true, autoIncrement: true }, - time_stamp: Sequelize.TEXT, + timestamp: Sequelize.TEXT, mfl_code: Sequelize.INTEGER, visit_type: Sequelize.TEXT, total: Sequelize.BIGINT, diff --git a/models/workload.js b/models/workload.js index 34a1b84..5500e4e 100644 --- a/models/workload.js +++ b/models/workload.js @@ -8,7 +8,7 @@ const Workload = sequelize.sequelize.define( primaryKey: true, autoIncrement: true }, - time_stamp: Sequelize.TEXT, + timestamp: Sequelize.TEXT, mfl_code: Sequelize.INTEGER, department: Sequelize.TEXT, total: Sequelize.BIGINT, diff --git a/routes/receiver.js b/routes/receiver.js index 33a6afa..98e9a94 100644 --- a/routes/receiver.js +++ b/routes/receiver.js @@ -157,7 +157,7 @@ const seconds = date.getSeconds().toString().padStart(2, '0'); const timestamp = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; let facility_attributes = { - "time_stamp": timestamp, + "timestamp": timestamp, "mfl_code": mfl_code } //Admissions