forked from mHealthKenya/ushauri_api
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
endpoint to get patient app details for drug order
- Loading branch information
1 parent
7d5d468
commit 9c4ba7c
Showing
3 changed files
with
163 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const sequelize = require("../db_config"); | ||
const Sequelize = require("sequelize"); | ||
const Joi = require("joi"); | ||
|
||
const NDrugDelivery = sequelize.sequelize.define( | ||
"tbl_nishauri_drug_delivery", { | ||
id: { | ||
type: Sequelize.INTEGER, | ||
primaryKey: true, | ||
autoIncrement: true | ||
}, | ||
|
||
program_identifier:Sequelize.INTEGER, | ||
order_id:Sequelize.INTEGER, | ||
initiated_by:Sequelize.INTEGER | ||
}, { | ||
timestamps: true, | ||
paranoid: true, | ||
underscored: true, | ||
freezeTableName: true, | ||
tableName: "tbl_nishauri_drug_delivery" | ||
} | ||
); | ||
exports.NDrugDelivery = NDrugDelivery; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
const sequelize = require("../db_config"); | ||
const Sequelize = require("sequelize"); | ||
const Joi = require("joi"); | ||
|
||
const NDrugOrder = sequelize.sequelize.define( | ||
"tbl_nishauri_drug_order", { | ||
id: { | ||
type: Sequelize.INTEGER, | ||
primaryKey: true, | ||
autoIncrement: true | ||
}, | ||
|
||
program_identifier:Sequelize.INTEGER, | ||
appointment_id:Sequelize.INTEGER, | ||
event_id:Sequelize.INTEGER, | ||
delivery_address:Sequelize.STRING, | ||
delivery_lat:Sequelize.STRING, | ||
delivery_long:Sequelize.STRING, | ||
delivery_method:Sequelize.STRING, | ||
courier_service:Sequelize.STRING, | ||
delivery_person:Sequelize.STRING, | ||
delivery_person_id:Sequelize.STRING, | ||
delivery_person_contact:Sequelize.STRING, | ||
order_by:Sequelize.INTEGER, | ||
deliveries:Sequelize.STRING, | ||
mode:Sequelize.STRING, | ||
delivery_pickup_time:Sequelize.DATE, | ||
client_phone_no:Sequelize.STRING | ||
}, { | ||
timestamps: true, | ||
paranoid: true, | ||
underscored: true, | ||
freezeTableName: true, | ||
tableName: "tbl_nishauri_drug_order" | ||
} | ||
); | ||
exports.NDrugOrder = NDrugOrder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters