diff --git a/lib/ontologies_linked_data/models/users/user.rb b/lib/ontologies_linked_data/models/users/user.rb index 2b06bb9b..1ba09c0c 100644 --- a/lib/ontologies_linked_data/models/users/user.rb +++ b/lib/ontologies_linked_data/models/users/user.rb @@ -18,6 +18,8 @@ class User < LinkedData::Models::Base attribute :role, enforce: [:role, :list], :default => lambda {|x| [LinkedData::Models::Users::Role.default]} attribute :firstName attribute :lastName + attribute :githubId, enforce: [:unique] + attribute :orcidId, enforce: [:unique] attribute :created, enforce: [:date_time], :default => lambda { |record| DateTime.now } attribute :passwordHash, enforce: [:existence] attribute :apikey, enforce: [:unique], :default => lambda {|x| SecureRandom.uuid}