package domain import ( "time" "code.nochebuena.dev/go/rbac" ) // User is the core user entity. type User struct { ID string `json:"id"` Name string `json:"name"` Email string `json:"email"` CreatedAt time.Time `json:"created_at"` } // ResourceTodos is the resource key stored in the user_role table for todo permissions. const ResourceTodos = "todos" // Permission bits for the todos resource. // Each constant is a bit position (0-based); the stored value is 1 << bit. const ( PermReadTodo rbac.Permission = 0 // bit 0 → mask value 1 PermWriteTodo rbac.Permission = 1 // bit 1 → mask value 2 )