|
|
@@ -4,6 +4,8 @@ const Location = require('./location')
|
|
|
const Workday = require('./workday')
|
|
|
const Service = require('./service')
|
|
|
const Retailer = require('./retailer')
|
|
|
+const StaffMember = require('./staff-member')
|
|
|
+const StaffingAgency = require('./staffing-agency')
|
|
|
|
|
|
const LocationWorkday = Location.hasMany(Workday)
|
|
|
const WorkdayLocation = Workday.belongsTo(Location)
|
|
|
@@ -14,12 +16,17 @@ const ServiceWorkday = Service.belongsTo(Workday)
|
|
|
const RetailerService = Retailer.hasMany(Service)
|
|
|
const ServiceRetailer = Service.belongsTo(Retailer)
|
|
|
|
|
|
+// const StaffingAgencyStaffMember = StaffingAgency.hasMany(StaffMember)
|
|
|
+// const StaffMemberStaffingAgency = StaffMember.belongsTo(StaffingAgency)
|
|
|
+
|
|
|
|
|
|
module.exports = Object.assign(database, {
|
|
|
Location,
|
|
|
Workday,
|
|
|
Service,
|
|
|
Retailer,
|
|
|
+ StaffMember,
|
|
|
+ StaffingAgency,
|
|
|
LocationWorkday,
|
|
|
WorkdayLocation,
|
|
|
WorkdayService,
|