mirror of
https://github.com/docusealco/docuseal.git
synced 2026-06-23 04:10:11 +00:00
23 lines
656 B
Ruby
23 lines
656 B
Ruby
# 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
|