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.
28 lines
657 B
28 lines
657 B
# 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
|