Skip to content
Snippets Groups Projects
Select Git revision
  • 8cf355287d1e965ff43ecc51ac8c8524c41ce2a9
  • develop default protected
  • issue/168-score-boost
  • issue/132-rota-ultimo-achievement-user
  • issue/111-gamificacao-banco
5 results

role.seed.ts

Blame
  • Janaina's avatar
    Issue #61/Comparing-SQL-Schemas
    jsk22 authored
    6fb60e0a
    History
    role.seed.ts 555 B
    import type db from "@/db";
    import roleTable, { type RoleInput } from "../schema/roles.schema";
    
    export default async function seed(db: db) {
      await db.insert(roleTable).values(rolesData)
    }
    
    const rolesData: RoleInput[] = [
      {
        name: "user",
        description: "This role represents a normal user in Portal MEC."
      },
      {
        name: "admin",
        description: "This role represents an MEC Admin, that can perform any action."
      },
      {
        name: "contributor",
        description: "This role represents an MEC Contributor, that can approve resources."
    
      }
    ]