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.
23 lines
656 B
23 lines
656 B
# frozen_string_literal: true
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: completed_documents
|
|
#
|
|
# id :bigint not null, primary key
|
|
# sha256 :string not null
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
# submitter_id :bigint not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_completed_documents_on_sha256 (sha256)
|
|
# index_completed_documents_on_submitter_id (submitter_id)
|
|
#
|
|
class CompletedDocument < ApplicationRecord
|
|
belongs_to :submitter, optional: true
|
|
|
|
has_one :completed_submitter, primary_key: :submitter_id, inverse_of: :completed_documents, dependent: :destroy
|
|
end
|