app-index.js 666 B

12345678910111213141516171819202122232425262728
  1. // TODO: App Specific Models
  2. const Location = require('./location')
  3. const Workday = require('./workday')
  4. const Service = require('./service')
  5. const Retailer = require('./retailer')
  6. const LocationWorkday = Location.hasMany(Workday)
  7. const WorkdayLocation = Workday.belongsTo(Location)
  8. const WorkdayService = Workday.hasMany(Service)
  9. const ServiceWorkday = Service.belongsTo(Workday)
  10. const RetailerService = Retailer.hasMany(Service)
  11. const ServiceRetailer = Service.belongsTo(Retailer)
  12. module.exports = {
  13. Location,
  14. Workday,
  15. Service,
  16. Retailer,
  17. LocationWorkday,
  18. WorkdayLocation,
  19. WorkdayService,
  20. ServiceWorkday,
  21. RetailerService,
  22. ServiceRetailer,
  23. }