import { factory } from 'factory-bot' import { datatype, image, internet, name } from 'faker' import { sample } from 'lodash' import { SmartfitTeacher } from '../../src/models' factory.define( 'smartfit_teacher', SmartfitTeacher, { id: datatype.uuid, name: name.findName, email: internet.email, document_number: () => sample(['30820773077', '15150349097']), photo_url: () => image.imageUrl(), smartfit_unit_id: () => datatype.number({ min: 1 }), }, SmartfitTeacher, ) export { factory }