Files
ubicloud/model/account_identity.rb
Enes Cakir d2500f59fc Add identities association to the account
I also refactored test to mock different omniauth providers.
2024-12-30 12:22:26 +03:00

21 lines
738 B
Ruby

# frozen_string_literal: true
require_relative "../model"
class AccountIdentity < Sequel::Model(:account_identities)
many_to_one :account
end
# Table: account_identities
# Columns:
# id | uuid | PRIMARY KEY DEFAULT gen_random_uuid()
# account_id | uuid | NOT NULL
# provider | text | NOT NULL
# uid | text | NOT NULL
# created_at | timestamp with time zone | NOT NULL DEFAULT now()
# Indexes:
# account_identities_pkey | PRIMARY KEY btree (id)
# account_identities_provider_uid_key | UNIQUE btree (provider, uid)
# Foreign key constraints:
# account_identities_account_id_fkey | (account_id) REFERENCES accounts(id)