|
|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
#
|
|
|
|
|
# It's strongly recommended that you check this file into your version control system.
|
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema[8.0].define(version: 2025_06_17_075609) do
|
|
|
|
|
ActiveRecord::Schema[8.0].define(version: 2025_06_18_085322) do
|
|
|
|
|
# These are extensions that must be enabled in order to support this database
|
|
|
|
|
enable_extension "btree_gin"
|
|
|
|
|
enable_extension "plpgsql"
|
|
|
|
|
@ -177,8 +177,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_06_17_075609) do
|
|
|
|
|
t.datetime "created_at", null: false
|
|
|
|
|
t.index ["account_id", "event_datetime"], name: "index_email_events_on_account_id_and_event_datetime"
|
|
|
|
|
t.index ["email"], name: "index_email_events_on_email"
|
|
|
|
|
t.index ["email"], name: "index_email_events_on_email_event_types", where: "((event_type)::text = ANY ((ARRAY['bounce'::character varying, 'soft_bounce'::character varying, 'complaint'::character varying, 'soft_complaint'::character varying])::text[]))"
|
|
|
|
|
t.index ["emailable_type", "emailable_id"], name: "index_email_events_on_emailable"
|
|
|
|
|
t.index ["event_type", "email"], name: "index_email_events_on_event_type_and_email", where: "((event_type)::text = ANY ((ARRAY['bounce'::character varying, 'soft_bounce'::character varying, 'complaint'::character varying, 'soft_complaint'::character varying])::text[]))"
|
|
|
|
|
t.index ["message_id"], name: "index_email_events_on_message_id"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
@ -306,6 +306,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_06_17_075609) do
|
|
|
|
|
t.text "name"
|
|
|
|
|
t.index ["account_id", "id"], name: "index_submissions_on_account_id_and_id"
|
|
|
|
|
t.index ["account_id", "template_id", "id"], name: "index_submissions_on_account_id_and_template_id_and_id", where: "(archived_at IS NULL)"
|
|
|
|
|
t.index ["account_id", "template_id", "id"], name: "index_submissions_on_account_id_and_template_id_and_id_archived", where: "(archived_at IS NOT NULL)"
|
|
|
|
|
t.index ["created_by_user_id"], name: "index_submissions_on_created_by_user_id"
|
|
|
|
|
t.index ["slug"], name: "index_submissions_on_slug", unique: true
|
|
|
|
|
t.index ["template_id"], name: "index_submissions_on_template_id"
|
|
|
|
|
@ -386,6 +387,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_06_17_075609) do
|
|
|
|
|
t.text "preferences", null: false
|
|
|
|
|
t.boolean "shared_link", default: false, null: false
|
|
|
|
|
t.index ["account_id", "folder_id", "id"], name: "index_templates_on_account_id_and_folder_id_and_id", where: "(archived_at IS NULL)"
|
|
|
|
|
t.index ["account_id", "id"], name: "index_templates_on_account_id_and_id_archived", where: "(archived_at IS NOT NULL)"
|
|
|
|
|
t.index ["account_id"], name: "index_templates_on_account_id"
|
|
|
|
|
t.index ["author_id"], name: "index_templates_on_author_id"
|
|
|
|
|
t.index ["external_id"], name: "index_templates_on_external_id"
|
|
|
|
|
|