modarb-be / src /seeder /seeders /001-admins.seeder.ts
moahmedwafy's picture
fix: seeders sorting
0a650a3
raw
history blame contribute delete
463 Bytes
import { Role } from "@common/enums/role.enum";
import { Admin } from "modules/console/common/models/admin.model";
import { seederWrapper } from "seeder/helpers/seeder-wrapper";
export default seederWrapper(Admin, async () => {
// create super admin
await Admin.create({
name: "Super Admin",
email: "[email protected]",
password: "super",
image: `https://placehold.co/300x400`,
gender: "M1 Abrams Tank",
role: Role.SUPER_ADMIN,
});
});