mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
572 B
19 lines
572 B
# frozen_string_literal: true
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: accounts
|
|
#
|
|
# id :bigint not null, primary key
|
|
# name :string not null
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
class Account < ApplicationRecord
|
|
has_many :users, dependent: :destroy
|
|
has_many :encrypted_configs, dependent: :destroy
|
|
has_many :flows, dependent: :destroy
|
|
has_many :active_users, -> { active }, dependent: :destroy,
|
|
inverse_of: :account, class_name: 'User'
|
|
end
|