You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

zip-code.js 534B

123456789101112131415161718
  1. const Schwifty = require('@hapipal/schwifty')
  2. const Joi = require('joi')
  3. module.exports = class ZipCode extends Schwifty.Model {
  4. static get tableName() {
  5. return 'zip_codes'
  6. }
  7. static get joiSchema() {
  8. return Joi.object({
  9. zip_code_id: Joi.number(),
  10. latitude: Joi.string().required(),
  11. longitude: Joi.string().required(),
  12. city: Joi.string().required(),
  13. state: Joi.string().required(),
  14. county: Joi.string().required(),
  15. })
  16. }
  17. }