diff options
Diffstat (limited to 'database/factories/ServiceFactory.ts')
-rw-r--r-- | database/factories/ServiceFactory.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/database/factories/ServiceFactory.ts b/database/factories/ServiceFactory.ts new file mode 100644 index 0000000..f675063 --- /dev/null +++ b/database/factories/ServiceFactory.ts | |||
@@ -0,0 +1,8 @@ | |||
1 | import Service from 'App/Models/Service'; | ||
2 | import Factory from '@ioc:Adonis/Lucid/Factory'; | ||
3 | |||
4 | export default Factory.define(Service, ({ faker }) => ({ | ||
5 | name: faker.company.name(), | ||
6 | recipeId: faker.string.alphanumeric(9), | ||
7 | serviceId: faker.string.alphanumeric(10), | ||
8 | })).build(); | ||