Sha256: 1f26a562dbad30060b5175b17ac5424b8002d4cdd32a6ef8d3b7ce47e6d2bac7
Contents?: true
Size: 812 Bytes
Versions: 3
Compression:
Stored size: 812 Bytes
Contents
# frozen_string_literal: true module Osso module Models class Account < ::ActiveRecord::Base enum status_id: { Unverified: 1, Verified: 2, Closed: 3 } def context { email: email, id: id, scope: role, oauth_client_id: oauth_client_id, } end end end end # == Schema Information # # Table name: accounts # # id :uuid not null, primary key # email :citext not null # status_id :integer default(NULL), not null # role :string default("admin"), not null # oauth_client_id :string # # Indexes # # index_accounts_on_email (email) UNIQUE WHERE (status_id = ANY (ARRAY[1, 2])) # index_accounts_on_oauth_client_id (oauth_client_id) #
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
osso-0.1.2 | lib/osso/models/account.rb |
osso-0.1.1 | lib/osso/models/account.rb |
osso-0.1.0 | lib/osso/models/account.rb |