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.
		
		
		
		
		
			
		
			
				
					
					
						
							35 lines
						
					
					
						
							1.1 KiB
						
					
					
				
			
		
		
	
	
							35 lines
						
					
					
						
							1.1 KiB
						
					
					
				# frozen_string_literal: true
 | 
						|
 | 
						|
# == Schema Information
 | 
						|
#
 | 
						|
# Table name: completed_submitters
 | 
						|
#
 | 
						|
#  id                  :bigint           not null, primary key
 | 
						|
#  completed_at        :datetime         not null
 | 
						|
#  sms_count           :integer          not null
 | 
						|
#  source              :string           not null
 | 
						|
#  verification_method :string
 | 
						|
#  created_at          :datetime         not null
 | 
						|
#  updated_at          :datetime         not null
 | 
						|
#  account_id          :bigint           not null
 | 
						|
#  submission_id       :bigint           not null
 | 
						|
#  submitter_id        :bigint           not null
 | 
						|
#  template_id         :bigint
 | 
						|
#
 | 
						|
# Indexes
 | 
						|
#
 | 
						|
#  index_completed_submitters_on_account_id    (account_id)
 | 
						|
#  index_completed_submitters_on_submitter_id  (submitter_id) UNIQUE
 | 
						|
#
 | 
						|
class CompletedSubmitter < ApplicationRecord
 | 
						|
  belongs_to :submitter
 | 
						|
  belongs_to :submission
 | 
						|
  belongs_to :account
 | 
						|
  belongs_to :template, optional: true
 | 
						|
 | 
						|
  has_many :completed_documents, dependent: :destroy,
 | 
						|
                                 primary_key: :submitter_id,
 | 
						|
                                 foreign_key: :submitter_id,
 | 
						|
                                 inverse_of: :completed_submitter
 | 
						|
end
 |