| 123456789101112131415161718192021222324252627282930313233343536 |
- // TODO: App Specific Models
- const {database} = require('@alancnet/material-framework/server')
- 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)
- const WorkdayService = Workday.hasMany(Service)
- 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,
- ServiceWorkday,
- RetailerService,
- ServiceRetailer,
- })
|