add completed submitters and documents

This commit is contained in:
Oleksandr Turchyn
2024-10-22 22:29:24 +03:00
committed by Pete Matsyburka
parent c303159c63
commit e2f930f6f7
14 changed files with 302 additions and 18 deletions
@@ -0,0 +1,24 @@
# frozen_string_literal: true
class CreateCompletedSubmittersAndDocuments < ActiveRecord::Migration[7.2]
def change
create_table :completed_submitters do |t|
t.bigint :submitter_id, null: false
t.bigint :submission_id, null: false
t.bigint :account_id, null: false, index: true
t.bigint :template_id, null: false
t.string :source, null: false
t.integer :sms_count, null: false
t.datetime :completed_at, null: false
t.timestamps
end
create_table :completed_documents do |t|
t.bigint :submitter_id, null: false, index: true
t.string :sha256, null: false, index: true
t.timestamps
end
end
end