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.
- Loading branch information
Showing
8 changed files
with
2,698 additions
and
2,184 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,22 @@ | ||
const sequelize = require("../db_config"); | ||
const Sequelize = require("sequelize"); | ||
const Joi = require("joi"); | ||
|
||
const NCourier= sequelize.sequelize.define( | ||
"tbl_nishauri_courier", { | ||
id: { | ||
type: Sequelize.INTEGER, | ||
primaryKey: true, | ||
autoIncrement: true | ||
}, | ||
|
||
name:Sequelize.STRING | ||
}, { | ||
timestamps: true, | ||
paranoid: true, | ||
underscored: true, | ||
freezeTableName: true, | ||
tableName: "tbl_nishauri_courier" | ||
} | ||
); | ||
exports.NCourier = NCourier; |
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,36 @@ | ||
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.INTEGER, | ||
delivery_person:Sequelize.STRING, | ||
delivery_person_id:Sequelize.STRING, | ||
delivery_person_contact:Sequelize.STRING, | ||
order_by:Sequelize.INTEGER, | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const sequelize = require("../db_config"); | ||
const Sequelize = require("sequelize"); | ||
const Joi = require("joi"); | ||
|
||
const NprogramTypes = sequelize.sequelize.define( | ||
"tbl_nishauri_program_type", { | ||
id: { | ||
type: Sequelize.INTEGER, | ||
primaryKey: true, | ||
autoIncrement: true | ||
}, | ||
|
||
name:Sequelize.STRING, | ||
program_code:Sequelize.STRING, | ||
description:Sequelize.STRING, | ||
is_active:Sequelize.STRING | ||
}, { | ||
timestamps: true, | ||
paranoid: true, | ||
underscored: true, | ||
freezeTableName: true, | ||
tableName: "tbl_nishauri_program_type" | ||
} | ||
); | ||
exports.NprogramTypes = NprogramTypes; |
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,40 @@ | ||
const sequelize = require("../db_config"); | ||
const Sequelize = require("sequelize"); | ||
const Joi = require("joi"); | ||
|
||
const NUserProfile = sequelize.sequelize.define( | ||
"tbl_nishauri_user_profile", { | ||
id: { | ||
type: Sequelize.INTEGER, | ||
primaryKey: true, | ||
autoIncrement: true | ||
}, | ||
|
||
user_id:Sequelize.INTEGER, | ||
f_name:Sequelize.STRING, | ||
l_name:Sequelize.STRING, | ||
email:Sequelize.STRING, | ||
phone_no:Sequelize.STRING, | ||
dob:Sequelize.DATEONLY, | ||
gender:Sequelize.STRING, | ||
landmark:Sequelize.STRING, | ||
blood_group: Sequelize.STRING, | ||
weight:Sequelize.STRING, | ||
height:Sequelize.STRING, | ||
marital: Sequelize.STRING, | ||
education: Sequelize.STRING, | ||
primary_language: Sequelize.STRING, | ||
occupation: Sequelize.STRING, | ||
allergies: Sequelize.STRING, | ||
chronics: Sequelize.STRING, | ||
disabilities: Sequelize.STRING | ||
|
||
}, { | ||
timestamps: true, | ||
paranoid: true, | ||
underscored: true, | ||
freezeTableName: true, | ||
tableName: "tbl_nishauri_user_profile" | ||
} | ||
); | ||
exports.NUserProfile = NUserProfile; |
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
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
Oops, something went wrong.