// 创建三个角色 超级管理员 管理员 内容管理员 普通用户 import { PrismaClient } from '@prisma/client'; const prisma = new PrismaClient(); async function role() { await prisma.x_role.createMany({ data: [ { name: '超级管理员', desc: '拥有全部权限' }, { name: '管理员', desc: '拥有内容管理和系统设置权限' }, { name: '内容管理员', desc: '拥有内容管理权限' }, { name: '普通用户', desc: '拥有查看权限' }, ], }); } export default role;