AlexanderMint/upment-hanami

View on GitHub
lib/upment/entities/role.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class Role < Hanami::Entity
  attributes do
    attribute :id, Types::Int
    attribute :user_id, Types::Int

    attribute :name, Types::Strict::String.enum('admin')

    attribute :created_at, Types::Time
    attribute :updated_at, Types::Time
  end
end