factory.js 567 B

12345678910111213141516171819202122
  1. 'use strict'
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Factory
  5. |--------------------------------------------------------------------------
  6. |
  7. | Factories are used to define blueprints for database tables or Lucid
  8. | models. Later you can use these blueprints to seed your database
  9. | with dummy data.
  10. |
  11. */
  12. /** @type {import('@adonisjs/lucid/src/Factory')} */
  13. // const Factory = use('Factory')
  14. // Factory.blueprint('App/Models/User', (faker) => {
  15. // return {
  16. // username: faker.username()
  17. // }
  18. // })