mirror of
https://github.com/docusealco/docuseal.git
synced 2026-06-23 04:10:11 +00:00
28 lines
657 B
Ruby
28 lines
657 B
Ruby
# frozen_string_literal: true
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: document_metadata
|
|
#
|
|
# id :bigint not null, primary key
|
|
# blob_checksum :string not null
|
|
# text_runs :text not null
|
|
# created_at :datetime not null
|
|
# account_id :bigint not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_document_metadata_on_account_id_and_blob_checksum (account_id,blob_checksum) UNIQUE
|
|
#
|
|
# Foreign Keys
|
|
#
|
|
# fk_rails_... (account_id => accounts.id)
|
|
#
|
|
class DocumentMetadata < ApplicationRecord
|
|
belongs_to :account
|
|
|
|
attribute :text_runs, :string, default: -> { {} }
|
|
|
|
serialize :text_runs, coder: JSON
|
|
end
|