35 lines
1.1 KiB
Ruby
Executable File
35 lines
1.1 KiB
Ruby
Executable File
# frozen_string_literal: true
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: account_users
|
|
#
|
|
# id :bigint not null, primary key
|
|
# active_at :datetime
|
|
# auto_offline :boolean default(TRUE), not null
|
|
# availability :integer default("online"), not null
|
|
# role :integer default("agent")
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
# account_id :bigint
|
|
# agent_capacity_policy_id :bigint
|
|
# custom_role_id :bigint
|
|
# inviter_id :bigint
|
|
# user_id :bigint
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_account_users_on_account_id (account_id)
|
|
# index_account_users_on_agent_capacity_policy_id (agent_capacity_policy_id)
|
|
# index_account_users_on_custom_role_id (custom_role_id)
|
|
# index_account_users_on_user_id (user_id)
|
|
# uniq_user_id_per_account_id (account_id,user_id) UNIQUE
|
|
#
|
|
FactoryBot.define do
|
|
factory :account_user do
|
|
account
|
|
user
|
|
role { 'agent' }
|
|
end
|
|
end
|