import { ActionType } from "@/lib/shared/constants/modules"

export type Role = {
  id: string
  name: string
  createdAt: Date
  updatedAt: Date
}

export type Permission = {
  id: string
  roleId: string
  module: string
  actions: ActionType[]
}

export type RoleWithPermissions = Role & {
  permissions: Permission[]
}

