package entity

// Permission represents a granular access right.
type Permission struct {
	Code        string `json:"code"`        // e.g., "USER_create", "JOB_view"
	Description string `json:"description"` // e.g., "Allows creating users"
}

// Role represents a collection of permissions.
type Role struct {
	Name        string       `json:"name"` // e.g., "ADMIN", "RECRUITER"
	Permissions []Permission `json:"permissions"`
}
