This repository has been archived on 2024-11-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
enzos-events/database/seeders/User.ts
Sockenklaus a52c0143df Added database, orm, auth modules
added db migrations for users and initial data
added first controllers
added auth middleware
added rest routes and controller stub
...
2023-07-03 16:24:19 +02:00

19 lines
370 B
TypeScript

import BaseSeeder from '@ioc:Adonis/Lucid/Seeder'
import User from 'App/Models/User'
export default class extends BaseSeeder {
public async run () {
await User.createMany([
{
username: 'admin',
password: 'initialPass',
isAdmin: true
},
{
username: "firstUser",
password: "firstPass",
}
])
}
}