|
|
|
@ -282,6 +282,19 @@ ActiveRecord::Schema[8.0].define(version: 2025_09_30_175543) do
|
|
|
|
t.index ["external_partnership_id"], name: "index_partnerships_on_external_partnership_id", unique: true
|
|
|
|
t.index ["external_partnership_id"], name: "index_partnerships_on_external_partnership_id", unique: true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create_table "search_entries", force: :cascade do |t|
|
|
|
|
|
|
|
|
t.string "record_type", null: false
|
|
|
|
|
|
|
|
t.bigint "record_id", null: false
|
|
|
|
|
|
|
|
t.bigint "account_id", null: false
|
|
|
|
|
|
|
|
t.tsvector "tsvector", null: false
|
|
|
|
|
|
|
|
t.datetime "created_at", null: false
|
|
|
|
|
|
|
|
t.datetime "updated_at", null: false
|
|
|
|
|
|
|
|
t.index ["account_id", "tsvector"], name: "index_search_entries_on_account_id_tsvector_submission", where: "((record_type)::text = 'Submission'::text)", using: :gin
|
|
|
|
|
|
|
|
t.index ["account_id", "tsvector"], name: "index_search_entries_on_account_id_tsvector_submitter", where: "((record_type)::text = 'Submitter'::text)", using: :gin
|
|
|
|
|
|
|
|
t.index ["account_id", "tsvector"], name: "index_search_entries_on_account_id_tsvector_template", where: "((record_type)::text = 'Template'::text)", using: :gin
|
|
|
|
|
|
|
|
t.index ["record_id", "record_type"], name: "index_search_entries_on_record_id_and_record_type", unique: true
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
create_table "submission_events", force: :cascade do |t|
|
|
|
|
create_table "submission_events", force: :cascade do |t|
|
|
|
|
t.integer "submission_id", null: false
|
|
|
|
t.integer "submission_id", null: false
|
|
|
|
t.integer "submitter_id"
|
|
|
|
t.integer "submitter_id"
|
|
|
|
|