diff --git a/db/oracle_schema.rb b/db/oracle_schema.rb index d8ef595361..fe18ae9482 100644 --- a/db/oracle_schema.rb +++ b/db/oracle_schema.rb @@ -10,8 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2024_11_07_134140) do - +ActiveRecord::Schema[7.0].define(version: 2024_11_07_134140) do create_table "access_tokens", force: :cascade do |t| t.integer "owner_id", precision: 38, null: false t.text "scopes" @@ -19,16 +18,16 @@ t.string "name", null: false t.string "permission", null: false t.integer "tenant_id", precision: 38 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 - t.datetime "expires_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" + t.datetime "expires_at" end create_table "accounts", force: :cascade do |t| t.string "org_name", default: "", null: false t.string "org_legaladdress", default: "" - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6 + t.datetime "created_at", null: false + t.datetime "updated_at" t.boolean "provider", default: false t.boolean "buyer", default: false t.integer "country_id", precision: 38 @@ -53,7 +52,7 @@ t.string "state_region" t.string "state" t.boolean "paid", default: false - t.datetime "paid_at", precision: 6 + t.datetime "paid_at" t.boolean "signs_legal_terms", default: true t.string "timezone" t.boolean "delta", default: true, null: false @@ -76,7 +75,7 @@ t.integer "prepared_assets_version", precision: 38 t.boolean "sample_data" t.integer "proxy_configs_file_size", precision: 38 - t.datetime "proxy_configs_updated_at", precision: 6 + t.datetime "proxy_configs_updated_at" t.string "proxy_configs_content_type" t.string "proxy_configs_file_name" t.string "support_email" @@ -88,10 +87,10 @@ t.string "proxy_configs_conf_file_name" t.string "proxy_configs_conf_content_type" t.integer "proxy_configs_conf_file_size", precision: 38 - t.datetime "proxy_configs_conf_updated_at", precision: 6 - t.datetime "hosted_proxy_deployed_at", precision: 6 + t.datetime "proxy_configs_conf_updated_at" + t.datetime "hosted_proxy_deployed_at" t.string "po_number" - t.datetime "state_changed_at", precision: 6 + t.datetime "state_changed_at" t.index ["default_service_id"], name: "index_accounts_on_default_service_id" t.index ["domain", "state_changed_at"], name: "index_accounts_on_domain_and_state_changed_at" t.index ["domain"], name: "index_accounts_on_domain", unique: true @@ -105,7 +104,7 @@ create_table "alerts", force: :cascade do |t| t.integer "account_id", precision: 38, null: false - t.datetime "timestamp", precision: 6, null: false + t.datetime "timestamp", null: false t.string "state", null: false t.integer "cinstance_id", precision: 38, null: false t.decimal "utilization", precision: 6, scale: 2, null: false @@ -126,8 +125,8 @@ t.string "annotated_type", null: false t.integer "annotated_id", precision: 38, null: false t.integer "tenant_id", precision: 38 - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["annotated_type", "annotated_id", "name"], name: "index_annotations_on_annotated_type_and_annotated_id_and_name", unique: true end @@ -138,8 +137,8 @@ t.text "body" t.text "description" t.boolean "published", default: false - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.string "system_name" t.string "base_path" t.string "swagger_version" @@ -153,8 +152,8 @@ create_table "application_keys", force: :cascade do |t| t.integer "application_id", precision: 38, null: false t.string "value", null: false - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 t.index ["application_id", "value"], name: "index_application_keys_on_application_id_and_value", unique: true end @@ -167,7 +166,7 @@ t.string "username" t.string "action" t.integer "version", precision: 38, default: 0 - t.datetime "created_at", precision: 6 + t.datetime "created_at" t.integer "tenant_id", precision: 38 t.integer "provider_id", precision: 38 t.string "kind" @@ -199,8 +198,8 @@ t.string "authorize_url" t.string "site" t.integer "account_id", precision: 38 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 t.string "identifier_key", default: "id" t.string "username_key", default: "login" @@ -220,8 +219,8 @@ t.string "path", default: "" t.integer "service_id", precision: 38 t.integer "backend_api_id", precision: 38 - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.integer "tenant_id", precision: 38 t.index ["backend_api_id", "service_id"], name: "index_backend_api_configs_on_backend_api_id_and_service_id", unique: true t.index ["path", "service_id"], name: "index_backend_api_configs_on_path_and_service_id", unique: true @@ -234,8 +233,8 @@ t.text "description" t.string "private_endpoint" t.integer "account_id", precision: 38 - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.integer "tenant_id", precision: 38 t.string "state", default: "published", null: false t.index ["account_id", "system_name"], name: "index_backend_apis_on_account_id_and_system_name", unique: true @@ -244,8 +243,8 @@ create_table "backend_events", force: :cascade do |t| t.text "data" - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false end create_table "billing_strategies", force: :cascade do |t| @@ -254,8 +253,8 @@ t.boolean "charging_enabled", default: false t.integer "charging_retry_delay", precision: 38, default: 3 t.integer "charging_retry_times", precision: 38, default: 3 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.string "numbering_period", default: "monthly" t.string "currency", default: "USD" t.integer "tenant_id", precision: 38 @@ -267,8 +266,8 @@ t.integer "category_type_id", precision: 38 t.integer "parent_id", precision: 38 t.string "name" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "account_id", precision: 38 t.integer "tenant_id", precision: 38 t.index ["account_id"], name: "index_categories_on_account_id" @@ -276,8 +275,8 @@ create_table "category_types", force: :cascade do |t| t.string "name" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "account_id", precision: 38 t.integer "tenant_id", precision: 38 t.index ["account_id"], name: "index_category_types_on_account_id" @@ -288,25 +287,25 @@ t.integer "user_account_id", precision: 38 t.string "user_key", limit: 256 t.string "provider_public_key" - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6 + t.datetime "created_at", null: false + t.datetime "updated_at" t.string "state", null: false t.text "description" - t.datetime "paid_until", precision: 6 + t.datetime "paid_until" t.string "application_id" t.string "name" - t.datetime "trial_period_expires_at", precision: 6 + t.datetime "trial_period_expires_at" t.decimal "setup_fee", precision: 20, scale: 2, default: "0.0" t.string "type", default: "Cinstance", null: false t.text "redirect_url" - t.datetime "variable_cost_paid_until", precision: 6 + t.datetime "variable_cost_paid_until" t.text "extra_fields" t.integer "tenant_id", precision: 38 t.string "create_origin" - t.datetime "first_traffic_at", precision: 6 - t.datetime "first_daily_traffic_at", precision: 6 + t.datetime "first_traffic_at" + t.datetime "first_daily_traffic_at" t.integer "service_id", precision: 38 - t.datetime "accepted_at", precision: 6 + t.datetime "accepted_at" t.index ["application_id"], name: "index_cinstances_on_application_id" t.index ["plan_id"], name: "fk_ct_contract_id" t.index ["type", "plan_id", "service_id", "state"], name: "index_cinstances_on_type_and_plan_id_and_service_id_and_state" @@ -321,15 +320,15 @@ t.integer "provider_id", precision: 38, null: false t.integer "section_id", precision: 38 t.integer "tenant_id", precision: 38 - t.datetime "attachment_updated_at", precision: 6 + t.datetime "attachment_updated_at" t.string "attachment_content_type" t.integer "attachment_file_size", precision: 38 t.string "attachment_file_name" t.string "random_secret" t.string "path" t.boolean "downloadable" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.index ["provider_id", "path"], name: "index_cms_files_on_provider_id_and_path" t.index ["provider_id"], name: "index_cms_files_on_provider_id" t.index ["section_id"], name: "index_cms_files_on_section_id" @@ -346,8 +345,8 @@ t.integer "tenant_id", precision: 38 t.integer "provider_id", precision: 38, null: false t.string "name" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.index ["provider_id"], name: "index_cms_groups_on_provider_id" end @@ -355,8 +354,8 @@ t.integer "tenant_id", precision: 38 t.integer "account_id", precision: 38 t.string "name" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "group_id", precision: 38 t.index ["account_id"], name: "index_cms_permissions_on_account_id" end @@ -365,8 +364,8 @@ t.integer "provider_id", precision: 38, null: false t.string "source", null: false t.string "target", null: false - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 t.index ["provider_id", "source"], name: "index_cms_redirects_on_provider_id_and_source" t.index ["provider_id"], name: "index_cms_redirects_on_provider_id" @@ -379,8 +378,8 @@ t.string "partial_path" t.string "title" t.string "system_name" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.boolean "public", default: true t.string "type", default: "CMS::Section" t.index ["parent_id"], name: "index_cms_sections_on_parent_id" @@ -399,8 +398,8 @@ t.text "draft" t.boolean "liquid_enabled" t.string "content_type" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "layout_id", precision: 38 t.text "options" t.string "updated_by" @@ -427,8 +426,8 @@ t.text "draft" t.boolean "liquid_enabled" t.string "content_type" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "layout_id", precision: 38 t.integer "template_id", precision: 38 t.string "template_type" @@ -445,8 +444,8 @@ t.string "configurable_type", limit: 50 t.string "name" t.string "value" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 t.index ["configurable_id", "configurable_type", "name"], name: "index_on_configurable_and_name", unique: true t.index ["configurable_id", "configurable_type"], name: "index_on_configurable" @@ -457,8 +456,8 @@ t.string "name" t.string "currency" t.decimal "tax_rate", precision: 5, scale: 2, default: "0.0", null: false - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 t.boolean "enabled", default: true t.index ["code"], name: "index_countries_on_code" @@ -469,7 +468,7 @@ t.string "owner_type" t.integer "object_id", precision: 38 t.string "object_type" - t.datetime "created_at", precision: 6, null: false + t.datetime "created_at", null: false t.text "metadata" t.index ["object_type", "object_id"], name: "index_deleted_objects_on_object_type_and_object_id" t.index ["owner_type", "owner_id"], name: "index_deleted_objects_on_owner_type_and_owner_id" @@ -487,8 +486,8 @@ t.string "address" t.integer "port", precision: 38 t.integer "tenant_id", precision: 38 - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["account_id"], name: "index_email_configurations_on_account_id" t.index ["email"], name: "index_email_configurations_on_email", unique: true end @@ -499,7 +498,7 @@ t.string "event_id", null: false t.text "metadata" t.text "data" - t.datetime "created_at", precision: 6, null: false + t.datetime "created_at", null: false t.integer "provider_id", precision: 38 t.integer "tenant_id", precision: 38 t.index ["created_at"], name: "index_event_store_events_on_created_at" @@ -512,8 +511,8 @@ t.integer "featurable_id", precision: 38 t.string "name" t.text "description" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.string "system_name" t.boolean "visible", default: true, null: false t.string "featurable_type", default: "Service", null: false @@ -534,8 +533,8 @@ create_table "fields_definitions", force: :cascade do |t| t.integer "account_id", precision: 38 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.string "target" t.boolean "hidden", default: false t.boolean "required", default: false @@ -568,15 +567,15 @@ t.text "settings" t.integer "proxy_id", precision: 38 t.integer "tenant_id", precision: 38 - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["proxy_id"], name: "index_gateway_configurations_on_proxy_id", unique: true end create_table "go_live_states", force: :cascade do |t| t.integer "account_id", precision: 38 - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.text "steps" t.string "recent" t.boolean "finished", default: false @@ -587,11 +586,11 @@ create_table "invitations", force: :cascade do |t| t.string "token" t.string "email" - t.datetime "sent_at", precision: 6 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "sent_at" + t.datetime "created_at" + t.datetime "updated_at" t.integer "account_id", precision: 38 - t.datetime "accepted_at", precision: 6 + t.datetime "accepted_at" t.integer "tenant_id", precision: 38 t.integer "user_id", precision: 38 end @@ -600,28 +599,28 @@ t.integer "provider_account_id", precision: 38, null: false t.string "invoice_prefix", null: false t.integer "invoice_count", precision: 38, default: 0 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.index ["provider_account_id", "invoice_prefix"], name: "index_invoice_counters_provider_prefix", unique: true end create_table "invoices", force: :cascade do |t| t.integer "provider_account_id", precision: 38 t.integer "buyer_account_id", precision: 38 - t.datetime "paid_at", precision: 6 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "paid_at" + t.datetime "created_at" + t.datetime "updated_at" t.date "due_on" t.string "pdf_file_name" t.string "pdf_content_type" t.integer "pdf_file_size", precision: 38 - t.datetime "pdf_updated_at", precision: 6 + t.datetime "pdf_updated_at" t.date "period" t.date "issued_on" t.string "state", default: "open", null: false t.string "friendly_id", default: "fix", null: false t.integer "tenant_id", precision: 38 - t.datetime "finalized_at", precision: 6 + t.datetime "finalized_at" t.string "fiscal_code" t.string "vat_code" t.decimal "vat_rate", precision: 20, scale: 2 @@ -657,8 +656,8 @@ t.integer "legal_term_version", precision: 38 t.string "resource_type" t.integer "resource_id", precision: 38 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 t.integer "account_id", precision: 38 t.index ["account_id"], name: "index_legal_term_acceptances_on_account_id" @@ -669,8 +668,8 @@ t.integer "legal_term_version", precision: 38 t.string "resource_type" t.integer "resource_id", precision: 38 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.string "scope" t.integer "tenant_id", precision: 38 end @@ -681,8 +680,8 @@ t.string "name" t.string "slug" t.text "body" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.boolean "published", default: false t.boolean "deleted", default: false t.boolean "archived", default: false @@ -698,8 +697,8 @@ t.string "name" t.string "slug" t.text "body" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.boolean "published", default: false t.boolean "deleted", default: false t.boolean "archived", default: false @@ -715,11 +714,11 @@ t.string "name" t.string "description" t.decimal "cost", precision: 20, scale: 4, default: "0.0", null: false - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.string "type", default: "" t.integer "metric_id", precision: 38 - t.datetime "finished_at", precision: 6 + t.datetime "finished_at" t.integer "quantity", precision: 38 t.date "started_at" t.integer "tenant_id", precision: 38 @@ -736,8 +735,8 @@ t.integer "buyer_id", precision: 38 t.integer "level", precision: 38, default: 10 t.string "description" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.index ["provider_id"], name: "index_log_entries_on_provider_id" end @@ -746,8 +745,8 @@ t.integer "system_operation_id", precision: 38 t.text "emails" t.boolean "dispatch", default: true - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 t.index ["account_id", "system_operation_id"], name: "index_mail_dispatch_rules_on_account_id_and_system_operation_id", unique: true end @@ -755,8 +754,8 @@ create_table "member_permissions", force: :cascade do |t| t.integer "user_id", precision: 38 t.string "admin_section" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 t.binary "service_ids" t.index ["user_id"], name: "index_member_permissions_on_user_id" @@ -769,9 +768,9 @@ t.string "kind", default: "", null: false t.integer "position", precision: 38 t.string "state", null: false - t.datetime "hidden_at", precision: 6 + t.datetime "hidden_at" t.integer "tenant_id", precision: 38 - t.datetime "deleted_at", precision: 6 + t.datetime "deleted_at" t.index ["message_id", "kind"], name: "index_message_recipients_on_message_id_and_kind" t.index ["receiver_id"], name: "idx_receiver_id" end @@ -781,10 +780,10 @@ t.text "subject" t.text "body" t.string "state", null: false - t.datetime "hidden_at", precision: 6 + t.datetime "hidden_at" t.string "type" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "system_operation_id", precision: 38 t.text "headers" t.integer "tenant_id", precision: 38 @@ -796,8 +795,8 @@ t.string "system_name" t.text "description" t.string "unit" - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6 + t.datetime "created_at", null: false + t.datetime "updated_at" t.integer "service_id", precision: 38 t.string "friendly_name" t.integer "parent_id", precision: 38 @@ -814,16 +813,16 @@ create_table "moderatorships", force: :cascade do |t| t.integer "forum_id", precision: 38 t.integer "user_id", precision: 38 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 end create_table "notification_preferences", force: :cascade do |t| t.integer "user_id", precision: 38 t.binary "preferences" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 t.index ["user_id"], name: "index_notification_preferences_on_user_id", unique: true end @@ -833,8 +832,8 @@ t.string "event_id", null: false t.string "system_name", limit: 1000 t.string "state", limit: 20 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.string "title", limit: 1000 t.index ["event_id"], name: "index_notifications_on_event_id" t.index ["user_id"], name: "index_notifications_on_user_id" @@ -845,8 +844,8 @@ t.string "oidc_configurable_type", null: false t.integer "oidc_configurable_id", precision: 38, null: false t.integer "tenant_id", precision: 38 - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["oidc_configurable_type", "oidc_configurable_id"], name: "oidc_configurable", unique: true end @@ -856,8 +855,8 @@ t.string "bubble_api_state" t.string "bubble_metric_state" t.string "bubble_deployment_state" - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "bubble_mapping_state" t.string "bubble_limit_state" t.integer "tenant_id", precision: 38 @@ -867,8 +866,8 @@ create_table "partners", force: :cascade do |t| t.string "name" t.string "api_key" - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "system_name" t.string "logout_url" end @@ -879,8 +878,8 @@ t.string "payment_service_reference" t.string "credit_card_partial_number" t.date "credit_card_expires_on" - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.integer "tenant_id", precision: 38 t.string "payment_method_id" t.index ["account_id", "buyer_reference"], name: "index_payment_details_on_account_id_and_buyer_reference" @@ -892,8 +891,8 @@ t.binary "gateway_settings" t.string "gateway_type" t.integer "account_id", precision: 38 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 t.index ["account_id"], name: "index_payment_gateway_settings_on_account_id" end @@ -902,8 +901,8 @@ t.integer "invoice_id", precision: 38, null: false t.string "state" t.integer "tenant_id", precision: 38 - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "reference" t.index ["invoice_id"], name: "index_payment_intents_on_invoice_id" t.index ["reference"], name: "index_payment_intents_on_reference", unique: true @@ -921,8 +920,8 @@ t.string "action" t.text "params" t.boolean "test", default: false, null: false - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 t.index ["invoice_id"], name: "index_payment_transactions_on_invoice_id" end @@ -932,8 +931,8 @@ t.integer "metric_id", precision: 38 t.boolean "visible", default: true t.boolean "limits_only_text", default: true - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.string "plan_type", null: false t.integer "tenant_id", precision: 38 t.index ["metric_id"], name: "idx_plan_metrics_metric_id" @@ -947,8 +946,8 @@ t.text "full_legal" t.decimal "cost_per_month", precision: 20, scale: 4, default: "0.0", null: false t.integer "trial_period_days", precision: 38 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "position", precision: 38, default: 0 t.string "state", null: false t.integer "cancellation_period", precision: 38, default: 0, null: false @@ -975,8 +974,8 @@ t.binary "schema", null: false t.integer "account_id", precision: 38, null: false t.integer "tenant_id", precision: 38 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.string "identifier" t.index ["account_id", "identifier"], name: "index_policies_on_account_id_and_identifier", unique: true t.index ["account_id"], name: "index_policies_on_account_id" @@ -986,8 +985,8 @@ t.integer "user_id", precision: 38 t.integer "topic_id", precision: 38 t.text "body" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "forum_id", precision: 38 t.text "body_html" t.string "email" @@ -1005,8 +1004,8 @@ t.integer "min", precision: 38, default: 1, null: false t.integer "max", precision: 38 t.decimal "cost_per_unit", precision: 20, scale: 4, default: "0.0", null: false - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "plan_id", precision: 38 t.integer "tenant_id", precision: 38 end @@ -1021,8 +1020,8 @@ t.string "email_sales" t.string "email_techsupport" t.string "email_press" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.string "logo_file_name" t.string "logo_content_type" t.integer "logo_file_size", precision: 38 @@ -1039,9 +1038,9 @@ t.text "value" t.integer "user_id", precision: 38 t.integer "tenant_id", precision: 38 - t.datetime "expires_at", precision: 6 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "expires_at" + t.datetime "created_at" + t.datetime "updated_at" end create_table "provider_constraints", force: :cascade do |t| @@ -1049,8 +1048,8 @@ t.integer "provider_id", precision: 38 t.integer "max_users", precision: 38 t.integer "max_services", precision: 38 - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["provider_id"], name: "index_provider_constraints_on_provider_id", unique: true end @@ -1058,15 +1057,15 @@ t.integer "tenant_id", precision: 38 t.integer "service_id", precision: 38 t.string "endpoint" - t.datetime "deployed_at", precision: 6 + t.datetime "deployed_at" t.string "auth_app_key", default: "app_key" t.string "auth_app_id", default: "app_id" t.string "auth_user_key", default: "user_key" t.string "credentials_location", default: "query", null: false t.string "error_auth_failed", default: "Authentication failed" t.string "error_auth_missing", default: "Authentication parameters missing" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "error_status_auth_failed", precision: 38, default: 403, null: false t.string "error_headers_auth_failed", default: "text/plain; charset=us-ascii", null: false t.integer "error_status_auth_missing", precision: 38, default: 403, null: false @@ -1097,8 +1096,8 @@ create_table "proxy_config_affecting_changes", force: :cascade do |t| t.integer "proxy_id", precision: 38, null: false - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["proxy_id"], name: "index_proxy_config_affecting_changes_on_proxy_id", unique: true end @@ -1109,8 +1108,8 @@ t.integer "tenant_id", precision: 38 t.string "environment", null: false t.text "content", null: false - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "hosts", limit: 8192 t.index ["proxy_id", "environment", "version"], name: "index_proxy_configs_on_proxy_id_and_environment_and_version" t.index ["proxy_id"], name: "index_proxy_configs_on_proxy_id" @@ -1122,8 +1121,8 @@ t.integer "tenant_id", precision: 38 t.text "lua_file" t.string "status" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" end create_table "proxy_rules", force: :cascade do |t| @@ -1134,8 +1133,8 @@ t.string "metric_system_name" t.integer "delta", precision: 38 t.integer "tenant_id", precision: 38 - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6 + t.datetime "created_at", null: false + t.datetime "updated_at" t.text "redirect_url" t.integer "position", precision: 38 t.boolean "last", default: false @@ -1148,8 +1147,8 @@ create_table "referrer_filters", force: :cascade do |t| t.integer "application_id", precision: 38, null: false t.string "value", null: false - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 t.index ["application_id"], name: "index_referrer_filters_on_application_id" end @@ -1157,16 +1156,16 @@ create_table "service_cubert_infos", force: :cascade do |t| t.string "bucket_id" t.integer "service_id", precision: 38 - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.integer "tenant_id", precision: 38 end create_table "service_tokens", force: :cascade do |t| t.integer "service_id", precision: 38 t.string "value" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 t.index ["service_id"], name: "index_service_tokens_on_service_id" end @@ -1176,8 +1175,8 @@ t.string "name", default: "" t.text "description" t.text "txt_support" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.string "logo_file_name" t.string "logo_content_type" t.integer "logo_file_size", precision: 38 @@ -1211,8 +1210,8 @@ t.string "bg_colour" t.string "link_colour" t.string "text_colour" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.string "menu_bg_colour" t.string "link_label" t.string "link_url" @@ -1284,7 +1283,7 @@ t.string "name" t.string "sluggable_type", limit: 50 t.integer "sluggable_id", precision: 38 - t.datetime "created_at", precision: 6 + t.datetime "created_at" t.integer "sequence", precision: 38, default: 1, null: false t.integer "tenant_id", precision: 38 t.index ["name", "sluggable_type", "sequence"], name: "index_slugs_on_n_s_and_s" @@ -1295,8 +1294,8 @@ t.string "uid" t.integer "authentication_provider_id", precision: 38 t.integer "user_id", precision: 38 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 t.text "id_token" t.index ["authentication_provider_id"], name: "index_sso_authorizations_on_authentication_provider_id" @@ -1307,8 +1306,8 @@ t.string "ref" t.string "name" t.text "description" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "pos", precision: 38 t.integer "tenant_id", precision: 38 end @@ -1317,8 +1316,8 @@ t.integer "tag_id", precision: 38 t.integer "taggable_id", precision: 38 t.string "taggable_type" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 t.integer "tagger_id", precision: 38 t.string "tagger_type" @@ -1329,8 +1328,8 @@ create_table "tags", force: :cascade do |t| t.string "name" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "account_id", precision: 38 t.integer "tenant_id", precision: 38 t.integer "taggings_count", precision: 38, default: 0 @@ -1340,8 +1339,8 @@ create_table "topic_categories", force: :cascade do |t| t.string "name" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "forum_id", precision: 38 t.integer "tenant_id", precision: 38 t.index ["forum_id"], name: "index_topic_categories_on_forum_id" @@ -1351,14 +1350,14 @@ t.integer "forum_id", precision: 38 t.integer "user_id", precision: 38 t.string "title" - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "hits", precision: 38, default: 0 t.boolean "sticky", default: false, null: false t.integer "posts_count", precision: 38, default: 0 t.boolean "locked", default: false t.integer "last_post_id", precision: 38 - t.datetime "last_updated_at", precision: 6 + t.datetime "last_updated_at" t.integer "last_user_id", precision: 38 t.string "permalink" t.integer "category_id", precision: 38 @@ -1373,8 +1372,8 @@ t.integer "metric_id", precision: 38 t.string "period" t.integer "value", precision: 38 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "plan_id", precision: 38 t.string "plan_type", null: false t.integer "tenant_id", precision: 38 @@ -1388,11 +1387,11 @@ t.string "key" t.string "ip" t.string "user_agent" - t.datetime "accessed_at", precision: 6 - t.datetime "revoked_at", precision: 6 - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false - t.datetime "secured_until", precision: 6 + t.datetime "accessed_at" + t.datetime "revoked_at" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.datetime "secured_until" t.integer "sso_authorization_id", precision: 38 t.index ["key"], name: "idx_key" t.index ["user_id"], name: "idx_user_id" @@ -1401,8 +1400,8 @@ create_table "user_topics", force: :cascade do |t| t.integer "user_id", precision: 38 t.integer "topic_id", precision: 38 - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.integer "tenant_id", precision: 38 end @@ -1411,12 +1410,12 @@ t.string "email" t.string "crypted_password", limit: 40 t.string "salt", limit: 40 - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6 + t.datetime "created_at", null: false + t.datetime "updated_at" t.string "remember_token", limit: 40 - t.datetime "remember_token_expires_at", precision: 6 + t.datetime "remember_token_expires_at" t.string "activation_code", limit: 40 - t.datetime "activated_at", precision: 6 + t.datetime "activated_at" t.string "state" t.string "role", default: "" t.string "lost_password_token" @@ -1426,14 +1425,14 @@ t.string "last_name" t.string "signup_type" t.string "job_role" - t.datetime "last_login_at", precision: 6 + t.datetime "last_login_at" t.string "last_login_ip" t.string "email_verification_code" t.string "title" t.text "extra_fields" t.integer "tenant_id", precision: 38 t.string "cas_identifier" - t.datetime "lost_password_token_generated_at", precision: 6 + t.datetime "lost_password_token_generated_at" t.string "authentication_id" t.string "open_id" t.string "password_digest" @@ -1456,8 +1455,8 @@ t.boolean "application_created_on", default: false t.boolean "application_updated_on", default: false t.boolean "application_deleted_on", default: false - t.datetime "created_at", precision: 6 - t.datetime "updated_at", precision: 6 + t.datetime "created_at" + t.datetime "updated_at" t.boolean "provider_actions", default: false t.boolean "account_plan_changed_on", default: false t.boolean "application_plan_changed_on", default: false diff --git a/db/postgres_schema.rb b/db/postgres_schema.rb index d4a4c5f2b8..5ab56cac3e 100644 --- a/db/postgres_schema.rb +++ b/db/postgres_schema.rb @@ -10,8 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2024_11_07_134140) do - +ActiveRecord::Schema[7.0].define(version: 2024_11_07_134140) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -22,16 +21,16 @@ t.string "name", limit: 255, null: false t.string "permission", limit: 255, null: false t.bigint "tenant_id" - t.datetime "created_at" - t.datetime "updated_at" - t.datetime "expires_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil + t.datetime "expires_at", precision: nil end create_table "accounts", force: :cascade do |t| t.string "org_name", limit: 255, default: "", null: false t.string "org_legaladdress", limit: 255, default: "" - t.datetime "created_at", null: false - t.datetime "updated_at" + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil t.boolean "provider", default: false t.boolean "buyer", default: false t.bigint "country_id" @@ -56,7 +55,7 @@ t.string "state_region", limit: 255 t.string "state", limit: 255 t.boolean "paid", default: false - t.datetime "paid_at" + t.datetime "paid_at", precision: nil t.boolean "signs_legal_terms", default: true t.string "timezone", limit: 255 t.boolean "delta", default: true, null: false @@ -79,7 +78,7 @@ t.integer "prepared_assets_version" t.boolean "sample_data" t.integer "proxy_configs_file_size" - t.datetime "proxy_configs_updated_at" + t.datetime "proxy_configs_updated_at", precision: nil t.string "proxy_configs_content_type", limit: 255 t.string "proxy_configs_file_name", limit: 255 t.string "support_email", limit: 255 @@ -91,10 +90,10 @@ t.string "proxy_configs_conf_file_name", limit: 255 t.string "proxy_configs_conf_content_type", limit: 255 t.integer "proxy_configs_conf_file_size" - t.datetime "proxy_configs_conf_updated_at" - t.datetime "hosted_proxy_deployed_at" + t.datetime "proxy_configs_conf_updated_at", precision: nil + t.datetime "hosted_proxy_deployed_at", precision: nil t.string "po_number", limit: 255 - t.datetime "state_changed_at" + t.datetime "state_changed_at", precision: nil t.index ["default_service_id"], name: "index_accounts_on_default_service_id" t.index ["domain", "state_changed_at"], name: "index_accounts_on_domain_and_state_changed_at" t.index ["domain"], name: "index_accounts_on_domain", unique: true @@ -108,7 +107,7 @@ create_table "alerts", force: :cascade do |t| t.bigint "account_id", null: false - t.datetime "timestamp", null: false + t.datetime "timestamp", precision: nil, null: false t.string "state", limit: 255, null: false t.bigint "cinstance_id", null: false t.decimal "utilization", precision: 6, scale: 2, null: false @@ -129,8 +128,8 @@ t.string "annotated_type", null: false t.bigint "annotated_id", null: false t.integer "tenant_id" - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["annotated_type", "annotated_id", "name"], name: "index_annotations_on_annotated_type_and_annotated_id_and_name", unique: true end @@ -141,8 +140,8 @@ t.text "body" t.text "description" t.boolean "published", default: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "system_name", limit: 255 t.string "base_path", limit: 255 t.string "swagger_version", limit: 255 @@ -156,8 +155,8 @@ create_table "application_keys", force: :cascade do |t| t.bigint "application_id", null: false t.string "value", limit: 255, null: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["application_id", "value"], name: "index_application_keys_on_application_id_and_value", unique: true end @@ -170,7 +169,7 @@ t.string "username", limit: 255 t.string "action", limit: 255 t.integer "version", default: 0 - t.datetime "created_at" + t.datetime "created_at", precision: nil t.bigint "tenant_id" t.bigint "provider_id" t.string "kind", limit: 255 @@ -202,8 +201,8 @@ t.string "authorize_url", limit: 255 t.string "site", limit: 255 t.bigint "account_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.string "identifier_key", limit: 255, default: "id" t.string "username_key", limit: 255, default: "login" @@ -223,8 +222,8 @@ t.string "path", default: "" t.bigint "service_id" t.bigint "backend_api_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.bigint "tenant_id" t.index ["backend_api_id", "service_id"], name: "index_backend_api_configs_on_backend_api_id_and_service_id", unique: true t.index ["path", "service_id"], name: "index_backend_api_configs_on_path_and_service_id", unique: true @@ -237,8 +236,8 @@ t.text "description" t.string "private_endpoint" t.bigint "account_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.bigint "tenant_id" t.string "state", default: "published", null: false t.index ["account_id", "system_name"], name: "index_backend_apis_on_account_id_and_system_name", unique: true @@ -247,8 +246,8 @@ create_table "backend_events", id: :bigint, default: nil, force: :cascade do |t| t.text "data" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false end create_table "billing_strategies", force: :cascade do |t| @@ -257,8 +256,8 @@ t.boolean "charging_enabled", default: false t.integer "charging_retry_delay", default: 3 t.integer "charging_retry_times", default: 3 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "numbering_period", limit: 255, default: "monthly" t.string "currency", limit: 255, default: "USD" t.bigint "tenant_id" @@ -270,8 +269,8 @@ t.bigint "category_type_id" t.bigint "parent_id" t.string "name", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "account_id" t.bigint "tenant_id" t.index ["account_id"], name: "index_categories_on_account_id" @@ -279,8 +278,8 @@ create_table "category_types", force: :cascade do |t| t.string "name", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "account_id" t.bigint "tenant_id" t.index ["account_id"], name: "index_category_types_on_account_id" @@ -291,25 +290,25 @@ t.bigint "user_account_id" t.string "user_key", limit: 256 t.string "provider_public_key", limit: 255 - t.datetime "created_at", null: false - t.datetime "updated_at" + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil t.string "state", limit: 255, null: false t.text "description" - t.datetime "paid_until" + t.datetime "paid_until", precision: nil t.string "application_id", limit: 255 t.string "name", limit: 255 - t.datetime "trial_period_expires_at" + t.datetime "trial_period_expires_at", precision: nil t.decimal "setup_fee", precision: 20, scale: 2, default: "0.0" t.string "type", limit: 255, default: "Cinstance", null: false t.text "redirect_url" - t.datetime "variable_cost_paid_until" + t.datetime "variable_cost_paid_until", precision: nil t.text "extra_fields" t.bigint "tenant_id" t.string "create_origin", limit: 255 - t.datetime "first_traffic_at" - t.datetime "first_daily_traffic_at" + t.datetime "first_traffic_at", precision: nil + t.datetime "first_daily_traffic_at", precision: nil t.bigint "service_id" - t.datetime "accepted_at" + t.datetime "accepted_at", precision: nil t.index ["application_id"], name: "index_cinstances_on_application_id" t.index ["plan_id"], name: "fk_ct_contract_id" t.index ["type", "plan_id", "service_id", "state"], name: "index_cinstances_on_type_and_plan_id_and_service_id_and_state" @@ -324,15 +323,15 @@ t.bigint "provider_id", null: false t.bigint "section_id" t.bigint "tenant_id" - t.datetime "attachment_updated_at" + t.datetime "attachment_updated_at", precision: nil t.string "attachment_content_type", limit: 255 t.bigint "attachment_file_size" t.string "attachment_file_name", limit: 255 t.string "random_secret", limit: 255 t.string "path", limit: 255 t.boolean "downloadable" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.index ["provider_id", "path"], name: "index_cms_files_on_provider_id_and_path" t.index ["provider_id"], name: "index_cms_files_on_provider_id" t.index ["section_id"], name: "index_cms_files_on_section_id" @@ -349,8 +348,8 @@ t.bigint "tenant_id" t.bigint "provider_id", null: false t.string "name", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.index ["provider_id"], name: "index_cms_groups_on_provider_id" end @@ -358,8 +357,8 @@ t.bigint "tenant_id" t.bigint "account_id" t.string "name", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "group_id" t.index ["account_id"], name: "index_cms_permissions_on_account_id" end @@ -368,8 +367,8 @@ t.bigint "provider_id", null: false t.string "source", limit: 255, null: false t.string "target", limit: 255, null: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["provider_id", "source"], name: "index_cms_redirects_on_provider_id_and_source" t.index ["provider_id"], name: "index_cms_redirects_on_provider_id" @@ -382,8 +381,8 @@ t.string "partial_path", limit: 255 t.string "title", limit: 255 t.string "system_name", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.boolean "public", default: true t.string "type", limit: 255, default: "CMS::Section" t.index ["parent_id"], name: "index_cms_sections_on_parent_id" @@ -402,8 +401,8 @@ t.text "draft" t.boolean "liquid_enabled" t.string "content_type", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "layout_id" t.text "options" t.string "updated_by", limit: 255 @@ -430,8 +429,8 @@ t.text "draft" t.boolean "liquid_enabled" t.string "content_type", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "layout_id" t.bigint "template_id" t.string "template_type", limit: 255 @@ -448,8 +447,8 @@ t.string "configurable_type", limit: 50 t.string "name", limit: 255 t.string "value", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["configurable_id", "configurable_type", "name"], name: "index_on_configurable_and_name", unique: true t.index ["configurable_id", "configurable_type"], name: "index_on_configurable" @@ -460,8 +459,8 @@ t.string "name", limit: 255 t.string "currency", limit: 255 t.decimal "tax_rate", precision: 5, scale: 2, default: "0.0", null: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.integer "tenant_id" t.boolean "enabled", default: true t.index ["code"], name: "index_countries_on_code" @@ -472,7 +471,7 @@ t.string "owner_type" t.bigint "object_id" t.string "object_type" - t.datetime "created_at", null: false + t.datetime "created_at", precision: nil, null: false t.text "metadata" t.index ["object_type", "object_id"], name: "index_deleted_objects_on_object_type_and_object_id" t.index ["owner_type", "owner_id"], name: "index_deleted_objects_on_owner_type_and_owner_id" @@ -490,8 +489,8 @@ t.string "address" t.integer "port" t.bigint "tenant_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["account_id"], name: "index_email_configurations_on_account_id" t.index ["email"], name: "index_email_configurations_on_email", unique: true end @@ -502,7 +501,7 @@ t.string "event_id", limit: 255, null: false t.text "metadata" t.text "data" - t.datetime "created_at", null: false + t.datetime "created_at", precision: nil, null: false t.bigint "provider_id" t.bigint "tenant_id" t.index ["created_at"], name: "index_event_store_events_on_created_at" @@ -515,8 +514,8 @@ t.bigint "featurable_id" t.string "name", limit: 255 t.text "description" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "system_name", limit: 255 t.boolean "visible", default: true, null: false t.string "featurable_type", limit: 255, default: "Service", null: false @@ -537,8 +536,8 @@ create_table "fields_definitions", force: :cascade do |t| t.bigint "account_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "target", limit: 255 t.boolean "hidden", default: false t.boolean "required", default: false @@ -571,15 +570,15 @@ t.text "settings" t.bigint "proxy_id" t.bigint "tenant_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["proxy_id"], name: "index_gateway_configurations_on_proxy_id", unique: true end create_table "go_live_states", force: :cascade do |t| t.bigint "account_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.text "steps" t.string "recent", limit: 255 t.boolean "finished", default: false @@ -590,11 +589,11 @@ create_table "invitations", force: :cascade do |t| t.string "token", limit: 255 t.string "email", limit: 255 - t.datetime "sent_at" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "sent_at", precision: nil + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "account_id" - t.datetime "accepted_at" + t.datetime "accepted_at", precision: nil t.bigint "tenant_id" t.bigint "user_id" end @@ -603,28 +602,28 @@ t.bigint "provider_account_id", null: false t.string "invoice_prefix", limit: 255, null: false t.integer "invoice_count", default: 0 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.index ["provider_account_id", "invoice_prefix"], name: "index_invoice_counters_provider_prefix", unique: true end create_table "invoices", force: :cascade do |t| t.bigint "provider_account_id" t.bigint "buyer_account_id" - t.datetime "paid_at" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "paid_at", precision: nil + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.date "due_on" t.string "pdf_file_name", limit: 255 t.string "pdf_content_type", limit: 255 t.integer "pdf_file_size" - t.datetime "pdf_updated_at" + t.datetime "pdf_updated_at", precision: nil t.date "period" t.date "issued_on" t.string "state", limit: 255, default: "open", null: false t.string "friendly_id", limit: 255, default: "fix", null: false t.bigint "tenant_id" - t.datetime "finalized_at" + t.datetime "finalized_at", precision: nil t.string "fiscal_code", limit: 255 t.string "vat_code", limit: 255 t.decimal "vat_rate", precision: 20, scale: 2 @@ -660,8 +659,8 @@ t.integer "legal_term_version" t.string "resource_type", limit: 255 t.bigint "resource_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.bigint "account_id" t.index ["account_id"], name: "index_legal_term_acceptances_on_account_id" @@ -672,8 +671,8 @@ t.integer "legal_term_version" t.string "resource_type", limit: 255 t.bigint "resource_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "scope", limit: 255 t.bigint "tenant_id" end @@ -684,8 +683,8 @@ t.string "name", limit: 255 t.string "slug", limit: 255 t.text "body" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.boolean "published", default: false t.boolean "deleted", default: false t.boolean "archived", default: false @@ -701,8 +700,8 @@ t.string "name", limit: 255 t.string "slug", limit: 255 t.text "body" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.boolean "published", default: false t.boolean "deleted", default: false t.boolean "archived", default: false @@ -718,11 +717,11 @@ t.string "name", limit: 255 t.string "description", limit: 255 t.decimal "cost", precision: 20, scale: 4, default: "0.0", null: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "type", limit: 255, default: "" t.bigint "metric_id" - t.datetime "finished_at" + t.datetime "finished_at", precision: nil t.integer "quantity" t.time "started_at" t.bigint "tenant_id" @@ -739,8 +738,8 @@ t.bigint "buyer_id" t.integer "level", default: 10 t.string "description", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.index ["provider_id"], name: "index_log_entries_on_provider_id" end @@ -749,8 +748,8 @@ t.bigint "system_operation_id" t.text "emails" t.boolean "dispatch", default: true - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["account_id", "system_operation_id"], name: "index_mail_dispatch_rules_on_account_id_and_system_operation_id", unique: true end @@ -758,8 +757,8 @@ create_table "member_permissions", force: :cascade do |t| t.bigint "user_id" t.string "admin_section", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.binary "service_ids" t.index ["user_id"], name: "index_member_permissions_on_user_id" @@ -772,9 +771,9 @@ t.string "kind", limit: 255, default: "", null: false t.integer "position" t.string "state", limit: 255, null: false - t.datetime "hidden_at" + t.datetime "hidden_at", precision: nil t.bigint "tenant_id" - t.datetime "deleted_at" + t.datetime "deleted_at", precision: nil t.index ["message_id", "kind"], name: "index_message_recipients_on_message_id_and_kind" t.index ["receiver_id"], name: "idx_receiver_id" end @@ -784,10 +783,10 @@ t.text "subject" t.text "body" t.string "state", limit: 255, null: false - t.datetime "hidden_at" + t.datetime "hidden_at", precision: nil t.string "type", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "system_operation_id" t.text "headers" t.bigint "tenant_id" @@ -799,8 +798,8 @@ t.string "system_name", limit: 255 t.text "description" t.string "unit", limit: 255 - t.datetime "created_at", null: false - t.datetime "updated_at" + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil t.bigint "service_id" t.string "friendly_name", limit: 255 t.bigint "parent_id" @@ -817,16 +816,16 @@ create_table "moderatorships", force: :cascade do |t| t.bigint "forum_id" t.bigint "user_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" end create_table "notification_preferences", force: :cascade do |t| t.bigint "user_id" t.binary "preferences" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["user_id"], name: "index_notification_preferences_on_user_id", unique: true end @@ -836,8 +835,8 @@ t.string "event_id", limit: 255, null: false t.string "system_name", limit: 1000 t.string "state", limit: 20 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "title", limit: 1000 t.index ["event_id"], name: "index_notifications_on_event_id" t.index ["user_id"], name: "index_notifications_on_user_id" @@ -848,8 +847,8 @@ t.string "oidc_configurable_type", null: false t.bigint "oidc_configurable_id", null: false t.bigint "tenant_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["oidc_configurable_type", "oidc_configurable_id"], name: "oidc_configurable", unique: true end @@ -859,8 +858,8 @@ t.string "bubble_api_state", limit: 255 t.string "bubble_metric_state", limit: 255 t.string "bubble_deployment_state", limit: 255 - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.string "bubble_mapping_state", limit: 255 t.string "bubble_limit_state", limit: 255 t.bigint "tenant_id" @@ -870,8 +869,8 @@ create_table "partners", force: :cascade do |t| t.string "name", limit: 255 t.string "api_key", limit: 255 - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.string "system_name", limit: 255 t.string "logout_url", limit: 255 end @@ -882,8 +881,8 @@ t.string "payment_service_reference", limit: 255 t.string "credit_card_partial_number", limit: 255 t.date "credit_card_expires_on" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.bigint "tenant_id" t.string "payment_method_id" t.index ["account_id", "buyer_reference"], name: "index_payment_details_on_account_id_and_buyer_reference" @@ -895,8 +894,8 @@ t.binary "gateway_settings" t.string "gateway_type", limit: 255 t.bigint "account_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["account_id"], name: "index_payment_gateway_settings_on_account_id" end @@ -905,8 +904,8 @@ t.integer "invoice_id", null: false t.string "state" t.bigint "tenant_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.string "reference" t.index ["invoice_id"], name: "index_payment_intents_on_invoice_id" t.index ["reference"], name: "index_payment_intents_on_reference", unique: true @@ -924,8 +923,8 @@ t.string "action", limit: 255 t.text "params" t.boolean "test", default: false, null: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["invoice_id"], name: "index_payment_transactions_on_invoice_id" end @@ -935,8 +934,8 @@ t.bigint "metric_id" t.boolean "visible", default: true t.boolean "limits_only_text", default: true - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "plan_type", limit: 255, null: false t.bigint "tenant_id" t.index ["metric_id"], name: "idx_plan_metrics_metric_id" @@ -950,8 +949,8 @@ t.text "full_legal" t.decimal "cost_per_month", precision: 20, scale: 4, default: "0.0", null: false t.integer "trial_period_days" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.integer "position", default: 0 t.string "state", limit: 255, null: false t.integer "cancellation_period", default: 0, null: false @@ -978,8 +977,8 @@ t.binary "schema", null: false t.bigint "account_id", null: false t.bigint "tenant_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "identifier" t.index ["account_id", "identifier"], name: "index_policies_on_account_id_and_identifier", unique: true t.index ["account_id"], name: "index_policies_on_account_id" @@ -989,8 +988,8 @@ t.bigint "user_id" t.bigint "topic_id" t.text "body" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "forum_id" t.text "body_html" t.string "email", limit: 255 @@ -1008,8 +1007,8 @@ t.bigint "min", default: 1, null: false t.bigint "max" t.decimal "cost_per_unit", precision: 20, scale: 4, default: "0.0", null: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "plan_id" t.bigint "tenant_id" end @@ -1024,8 +1023,8 @@ t.string "email_sales", limit: 255 t.string "email_techsupport", limit: 255 t.string "email_press", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "logo_file_name", limit: 255 t.string "logo_content_type", limit: 255 t.integer "logo_file_size" @@ -1042,9 +1041,9 @@ t.text "value" t.bigint "user_id" t.bigint "tenant_id" - t.datetime "expires_at" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "expires_at", precision: nil + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.index ["user_id"], name: "fk_rails_260e99b630" end @@ -1053,8 +1052,8 @@ t.bigint "provider_id" t.integer "max_users" t.integer "max_services" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["provider_id"], name: "index_provider_constraints_on_provider_id", unique: true end @@ -1062,15 +1061,15 @@ t.bigint "tenant_id" t.bigint "service_id" t.string "endpoint", limit: 255 - t.datetime "deployed_at" + t.datetime "deployed_at", precision: nil t.string "auth_app_key", limit: 255, default: "app_key" t.string "auth_app_id", limit: 255, default: "app_id" t.string "auth_user_key", limit: 255, default: "user_key" t.string "credentials_location", limit: 255, default: "query", null: false t.string "error_auth_failed", limit: 255, default: "Authentication failed" t.string "error_auth_missing", limit: 255, default: "Authentication parameters missing" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.integer "error_status_auth_failed", default: 403, null: false t.string "error_headers_auth_failed", limit: 255, default: "text/plain; charset=us-ascii", null: false t.integer "error_status_auth_missing", default: 403, null: false @@ -1101,8 +1100,8 @@ create_table "proxy_config_affecting_changes", force: :cascade do |t| t.integer "proxy_id", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["proxy_id"], name: "index_proxy_config_affecting_changes_on_proxy_id", unique: true end @@ -1113,8 +1112,8 @@ t.bigint "tenant_id" t.string "environment", limit: 255, null: false t.text "content", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.string "hosts", limit: 8192 t.index ["proxy_id", "environment", "version"], name: "index_proxy_configs_on_proxy_id_and_environment_and_version" t.index ["proxy_id"], name: "index_proxy_configs_on_proxy_id" @@ -1126,8 +1125,8 @@ t.bigint "tenant_id" t.text "lua_file" t.string "status", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil end create_table "proxy_rules", force: :cascade do |t| @@ -1138,8 +1137,8 @@ t.string "metric_system_name", limit: 255 t.integer "delta" t.bigint "tenant_id" - t.datetime "created_at", null: false - t.datetime "updated_at" + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil t.text "redirect_url" t.integer "position" t.boolean "last", default: false @@ -1152,8 +1151,8 @@ create_table "referrer_filters", force: :cascade do |t| t.bigint "application_id", null: false t.string "value", limit: 255, null: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["application_id"], name: "index_referrer_filters_on_application_id" end @@ -1161,16 +1160,16 @@ create_table "service_cubert_infos", force: :cascade do |t| t.string "bucket_id", limit: 255 t.bigint "service_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.bigint "tenant_id" end create_table "service_tokens", force: :cascade do |t| t.bigint "service_id" t.string "value", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["service_id"], name: "index_service_tokens_on_service_id" end @@ -1180,8 +1179,8 @@ t.string "name", limit: 255, default: "" t.text "description" t.text "txt_support" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "logo_file_name", limit: 255 t.string "logo_content_type", limit: 255 t.integer "logo_file_size" @@ -1215,8 +1214,8 @@ t.string "bg_colour", limit: 255 t.string "link_colour", limit: 255 t.string "text_colour", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "menu_bg_colour", limit: 255 t.string "link_label", limit: 255 t.string "link_url", limit: 255 @@ -1288,7 +1287,7 @@ t.string "name", limit: 255 t.string "sluggable_type", limit: 50 t.bigint "sluggable_id" - t.datetime "created_at" + t.datetime "created_at", precision: nil t.integer "sequence", default: 1, null: false t.bigint "tenant_id" t.index ["name", "sluggable_type", "sequence"], name: "index_slugs_on_n_s_and_s" @@ -1299,8 +1298,8 @@ t.string "uid", limit: 255 t.bigint "authentication_provider_id" t.bigint "user_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.text "id_token" t.index ["authentication_provider_id"], name: "index_sso_authorizations_on_authentication_provider_id" @@ -1311,8 +1310,8 @@ t.string "ref", limit: 255 t.string "name", limit: 255 t.text "description" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.integer "pos" t.integer "tenant_id" end @@ -1321,8 +1320,8 @@ t.bigint "tag_id" t.bigint "taggable_id" t.string "taggable_type", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.integer "tagger_id" t.string "tagger_type", limit: 255 @@ -1333,8 +1332,8 @@ create_table "tags", force: :cascade do |t| t.string "name", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "account_id" t.bigint "tenant_id" t.integer "taggings_count", default: 0 @@ -1344,8 +1343,8 @@ create_table "topic_categories", force: :cascade do |t| t.string "name", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "forum_id" t.bigint "tenant_id" t.index ["forum_id"], name: "index_topic_categories_on_forum_id" @@ -1355,14 +1354,14 @@ t.bigint "forum_id" t.bigint "user_id" t.string "title", limit: 255 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.integer "hits", default: 0 t.boolean "sticky", default: false, null: false t.integer "posts_count", default: 0 t.boolean "locked", default: false t.bigint "last_post_id" - t.datetime "last_updated_at" + t.datetime "last_updated_at", precision: nil t.bigint "last_user_id" t.string "permalink", limit: 255 t.bigint "category_id" @@ -1377,8 +1376,8 @@ t.bigint "metric_id" t.string "period", limit: 255 t.bigint "value" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "plan_id" t.string "plan_type", limit: 255, null: false t.bigint "tenant_id" @@ -1392,11 +1391,11 @@ t.string "key", limit: 255 t.string "ip", limit: 255 t.string "user_agent", limit: 255 - t.datetime "accessed_at" - t.datetime "revoked_at" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.datetime "secured_until" + t.datetime "accessed_at", precision: nil + t.datetime "revoked_at", precision: nil + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false + t.datetime "secured_until", precision: nil t.bigint "sso_authorization_id" t.index ["key"], name: "idx_key" t.index ["sso_authorization_id"], name: "index_user_sessions_on_sso_authorization_id" @@ -1406,8 +1405,8 @@ create_table "user_topics", force: :cascade do |t| t.bigint "user_id" t.bigint "topic_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" end @@ -1416,12 +1415,12 @@ t.string "email", limit: 255 t.string "crypted_password", limit: 40 t.string "salt", limit: 40 - t.datetime "created_at", null: false - t.datetime "updated_at" + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil t.string "remember_token", limit: 40 - t.datetime "remember_token_expires_at" + t.datetime "remember_token_expires_at", precision: nil t.string "activation_code", limit: 40 - t.datetime "activated_at" + t.datetime "activated_at", precision: nil t.string "state", limit: 255 t.string "role", limit: 255, default: "" t.string "lost_password_token", limit: 255 @@ -1431,14 +1430,14 @@ t.string "last_name", limit: 255 t.string "signup_type", limit: 255 t.string "job_role", limit: 255 - t.datetime "last_login_at" + t.datetime "last_login_at", precision: nil t.string "last_login_ip", limit: 255 t.string "email_verification_code", limit: 255 t.string "title", limit: 255 t.text "extra_fields" t.bigint "tenant_id" t.string "cas_identifier", limit: 255 - t.datetime "lost_password_token_generated_at" + t.datetime "lost_password_token_generated_at", precision: nil t.string "authentication_id", limit: 255 t.string "open_id", limit: 255 t.string "password_digest", limit: 255 @@ -1461,8 +1460,8 @@ t.boolean "application_created_on", default: false t.boolean "application_updated_on", default: false t.boolean "application_deleted_on", default: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.boolean "provider_actions", default: false t.boolean "account_plan_changed_on", default: false t.boolean "application_plan_changed_on", default: false diff --git a/db/schema.rb b/db/schema.rb index cc68dc2d46..75fa15cf5e 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,8 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[6.1].define(version: 2024_11_07_134140) do - +ActiveRecord::Schema[7.0].define(version: 2024_11_07_134140) do create_table "access_tokens", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.bigint "owner_id", null: false t.text "scopes" @@ -19,9 +18,9 @@ t.string "name", null: false t.string "permission", null: false t.bigint "tenant_id" - t.datetime "created_at" - t.datetime "updated_at" - t.datetime "expires_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil + t.datetime "expires_at", precision: nil t.index ["owner_id"], name: "idx_auth_tokens_of_user" t.index ["value", "owner_id"], name: "idx_value_auth_tokens_of_user", unique: true end @@ -29,8 +28,8 @@ create_table "accounts", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.string "org_name", default: "", null: false t.string "org_legaladdress", default: "" - t.datetime "created_at", null: false - t.datetime "updated_at" + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil t.boolean "provider", default: false t.boolean "buyer", default: false t.bigint "country_id" @@ -55,7 +54,7 @@ t.string "state_region" t.string "state" t.boolean "paid", default: false - t.datetime "paid_at" + t.datetime "paid_at", precision: nil t.boolean "signs_legal_terms", default: true t.string "timezone" t.boolean "delta", default: true, null: false @@ -78,7 +77,7 @@ t.integer "prepared_assets_version" t.boolean "sample_data" t.integer "proxy_configs_file_size" - t.datetime "proxy_configs_updated_at" + t.datetime "proxy_configs_updated_at", precision: nil t.string "proxy_configs_content_type" t.string "proxy_configs_file_name" t.string "support_email" @@ -90,10 +89,10 @@ t.string "proxy_configs_conf_file_name" t.string "proxy_configs_conf_content_type" t.integer "proxy_configs_conf_file_size" - t.datetime "proxy_configs_conf_updated_at" - t.datetime "hosted_proxy_deployed_at" + t.datetime "proxy_configs_conf_updated_at", precision: nil + t.datetime "hosted_proxy_deployed_at", precision: nil t.string "po_number" - t.datetime "state_changed_at" + t.datetime "state_changed_at", precision: nil t.index ["default_service_id"], name: "index_accounts_on_default_service_id" t.index ["domain", "state_changed_at"], name: "index_accounts_on_domain_and_state_changed_at" t.index ["domain"], name: "index_accounts_on_domain", unique: true @@ -107,7 +106,7 @@ create_table "alerts", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.bigint "account_id", null: false - t.datetime "timestamp", null: false + t.datetime "timestamp", precision: nil, null: false t.string "state", null: false t.bigint "cinstance_id", null: false t.decimal "utilization", precision: 6, scale: 2, null: false @@ -128,8 +127,8 @@ t.string "annotated_type", null: false t.bigint "annotated_id", null: false t.integer "tenant_id" - t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.index ["annotated_type", "annotated_id", "name"], name: "index_annotations_on_annotated_type_and_annotated_id_and_name", unique: true end @@ -140,8 +139,8 @@ t.text "body", size: :long t.text "description" t.boolean "published", default: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "system_name" t.string "base_path" t.string "swagger_version" @@ -155,8 +154,8 @@ create_table "application_keys", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.bigint "application_id", null: false t.string "value", null: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["application_id", "value"], name: "index_application_keys_on_application_id_and_value", unique: true end @@ -169,7 +168,7 @@ t.string "username" t.string "action" t.integer "version", default: 0 - t.datetime "created_at" + t.datetime "created_at", precision: nil t.bigint "tenant_id" t.bigint "provider_id" t.string "kind" @@ -201,8 +200,8 @@ t.string "authorize_url" t.string "site" t.bigint "account_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.string "identifier_key", default: "id" t.string "username_key", default: "login" @@ -222,8 +221,8 @@ t.string "path", default: "" t.bigint "service_id" t.bigint "backend_api_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.bigint "tenant_id" t.index ["backend_api_id", "service_id"], name: "index_backend_api_configs_on_backend_api_id_and_service_id", unique: true t.index ["path", "service_id"], name: "index_backend_api_configs_on_path_and_service_id", unique: true @@ -236,8 +235,8 @@ t.text "description", size: :medium t.string "private_endpoint" t.bigint "account_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.bigint "tenant_id" t.string "state", default: "published", null: false t.index ["account_id", "system_name"], name: "index_backend_apis_on_account_id_and_system_name", unique: true @@ -246,8 +245,8 @@ create_table "backend_events", id: :bigint, default: nil, charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.text "data" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false end create_table "billing_strategies", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| @@ -256,8 +255,8 @@ t.boolean "charging_enabled", default: false t.integer "charging_retry_delay", default: 3 t.integer "charging_retry_times", default: 3 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "numbering_period", default: "monthly" t.string "currency", default: "USD" t.bigint "tenant_id" @@ -269,8 +268,8 @@ t.bigint "category_type_id" t.bigint "parent_id" t.string "name" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "account_id" t.bigint "tenant_id" t.index ["account_id"], name: "index_categories_on_account_id" @@ -278,8 +277,8 @@ create_table "category_types", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.string "name" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "account_id" t.bigint "tenant_id" t.index ["account_id"], name: "index_category_types_on_account_id" @@ -290,25 +289,25 @@ t.bigint "user_account_id" t.string "user_key", limit: 256 t.string "provider_public_key" - t.datetime "created_at", null: false - t.datetime "updated_at" + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil t.string "state", null: false t.text "description" - t.datetime "paid_until" + t.datetime "paid_until", precision: nil t.string "application_id" t.string "name" - t.datetime "trial_period_expires_at" + t.datetime "trial_period_expires_at", precision: nil t.decimal "setup_fee", precision: 20, scale: 2, default: "0.0" t.string "type", default: "Cinstance", null: false t.text "redirect_url" - t.datetime "variable_cost_paid_until" + t.datetime "variable_cost_paid_until", precision: nil t.text "extra_fields" t.bigint "tenant_id" t.string "create_origin" - t.datetime "first_traffic_at" - t.datetime "first_daily_traffic_at" + t.datetime "first_traffic_at", precision: nil + t.datetime "first_daily_traffic_at", precision: nil t.bigint "service_id" - t.datetime "accepted_at" + t.datetime "accepted_at", precision: nil t.index ["application_id"], name: "index_cinstances_on_application_id" t.index ["plan_id"], name: "fk_ct_contract_id" t.index ["type", "plan_id", "service_id", "state"], name: "index_cinstances_on_type_and_plan_id_and_service_id_and_state" @@ -323,15 +322,15 @@ t.bigint "provider_id", null: false t.bigint "section_id" t.bigint "tenant_id" - t.datetime "attachment_updated_at" + t.datetime "attachment_updated_at", precision: nil t.string "attachment_content_type" t.bigint "attachment_file_size" t.string "attachment_file_name" t.string "random_secret" t.string "path" t.boolean "downloadable" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.index ["provider_id", "path"], name: "index_cms_files_on_provider_id_and_path" t.index ["provider_id"], name: "index_cms_files_on_provider_id" t.index ["section_id"], name: "index_cms_files_on_section_id" @@ -348,8 +347,8 @@ t.bigint "tenant_id" t.bigint "provider_id", null: false t.string "name" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.index ["provider_id"], name: "index_cms_groups_on_provider_id" end @@ -357,8 +356,8 @@ t.bigint "tenant_id" t.bigint "account_id" t.string "name" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "group_id" t.index ["account_id"], name: "index_cms_permissions_on_account_id" end @@ -367,8 +366,8 @@ t.bigint "provider_id", null: false t.string "source", null: false t.string "target", null: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["provider_id", "source"], name: "index_cms_redirects_on_provider_id_and_source" t.index ["provider_id"], name: "index_cms_redirects_on_provider_id" @@ -381,8 +380,8 @@ t.string "partial_path" t.string "title" t.string "system_name" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.boolean "public", default: true t.string "type", default: "CMS::Section" t.index ["parent_id"], name: "index_cms_sections_on_parent_id" @@ -401,8 +400,8 @@ t.text "draft", size: :medium t.boolean "liquid_enabled" t.string "content_type" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "layout_id" t.text "options" t.string "updated_by" @@ -429,8 +428,8 @@ t.text "draft", size: :medium t.boolean "liquid_enabled" t.string "content_type" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "layout_id" t.bigint "template_id" t.string "template_type" @@ -447,8 +446,8 @@ t.string "configurable_type", limit: 50 t.string "name" t.string "value" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["configurable_id", "configurable_type", "name"], name: "index_on_configurable_and_name", unique: true t.index ["configurable_id", "configurable_type"], name: "index_on_configurable" @@ -459,8 +458,8 @@ t.string "name" t.string "currency" t.decimal "tax_rate", precision: 5, scale: 2, default: "0.0", null: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.integer "tenant_id" t.boolean "enabled", default: true t.index ["code"], name: "index_countries_on_code" @@ -471,7 +470,7 @@ t.string "owner_type" t.bigint "object_id" t.string "object_type" - t.datetime "created_at", null: false + t.datetime "created_at", precision: nil, null: false t.text "metadata" t.index ["object_type", "object_id"], name: "index_deleted_objects_on_object_type_and_object_id" t.index ["owner_type", "owner_id"], name: "index_deleted_objects_on_owner_type_and_owner_id" @@ -489,8 +488,8 @@ t.string "address", collation: "utf8mb3_general_ci" t.integer "port", limit: 2, unsigned: true t.bigint "tenant_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["account_id"], name: "index_email_configurations_on_account_id" t.index ["email"], name: "index_email_configurations_on_email", unique: true end @@ -501,7 +500,7 @@ t.string "event_id", null: false t.text "metadata", size: :medium t.text "data" - t.datetime "created_at", null: false + t.datetime "created_at", precision: nil, null: false t.bigint "provider_id" t.bigint "tenant_id" t.index ["created_at"], name: "index_event_store_events_on_created_at" @@ -514,8 +513,8 @@ t.bigint "featurable_id" t.string "name" t.text "description" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "system_name" t.boolean "visible", default: true, null: false t.string "featurable_type", default: "Service", null: false @@ -536,8 +535,8 @@ create_table "fields_definitions", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.bigint "account_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "target" t.boolean "hidden", default: false t.boolean "required", default: false @@ -570,15 +569,15 @@ t.text "settings" t.bigint "proxy_id" t.bigint "tenant_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["proxy_id"], name: "index_gateway_configurations_on_proxy_id", unique: true end create_table "go_live_states", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.bigint "account_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.text "steps" t.string "recent" t.boolean "finished", default: false @@ -589,11 +588,11 @@ create_table "invitations", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.string "token" t.string "email" - t.datetime "sent_at" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "sent_at", precision: nil + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "account_id" - t.datetime "accepted_at" + t.datetime "accepted_at", precision: nil t.bigint "tenant_id" t.bigint "user_id" end @@ -602,28 +601,28 @@ t.bigint "provider_account_id", null: false t.string "invoice_prefix", null: false t.integer "invoice_count", default: 0 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.index ["provider_account_id", "invoice_prefix"], name: "index_invoice_counters_provider_prefix", unique: true end create_table "invoices", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.bigint "provider_account_id" t.bigint "buyer_account_id" - t.datetime "paid_at" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "paid_at", precision: nil + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.date "due_on" t.string "pdf_file_name" t.string "pdf_content_type" t.integer "pdf_file_size" - t.datetime "pdf_updated_at" + t.datetime "pdf_updated_at", precision: nil t.date "period" t.date "issued_on" t.string "state", default: "open", null: false t.string "friendly_id", default: "fix", null: false t.bigint "tenant_id" - t.datetime "finalized_at" + t.datetime "finalized_at", precision: nil t.string "fiscal_code" t.string "vat_code" t.decimal "vat_rate", precision: 20, scale: 2 @@ -659,8 +658,8 @@ t.integer "legal_term_version" t.string "resource_type" t.bigint "resource_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.bigint "account_id" t.index ["account_id"], name: "index_legal_term_acceptances_on_account_id" @@ -671,8 +670,8 @@ t.integer "legal_term_version" t.string "resource_type" t.bigint "resource_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "scope" t.bigint "tenant_id" end @@ -683,8 +682,8 @@ t.string "name" t.string "slug" t.text "body", size: :long - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.boolean "published", default: false t.boolean "deleted", default: false t.boolean "archived", default: false @@ -700,8 +699,8 @@ t.string "name" t.string "slug" t.text "body", size: :long - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.boolean "published", default: false t.boolean "deleted", default: false t.boolean "archived", default: false @@ -717,11 +716,11 @@ t.string "name" t.string "description" t.decimal "cost", precision: 20, scale: 4, default: "0.0", null: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "type", default: "" t.bigint "metric_id" - t.datetime "finished_at" + t.datetime "finished_at", precision: nil t.integer "quantity" t.time "started_at" t.bigint "tenant_id" @@ -738,8 +737,8 @@ t.bigint "buyer_id" t.integer "level", default: 10 t.string "description" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.index ["provider_id"], name: "index_log_entries_on_provider_id" end @@ -748,8 +747,8 @@ t.bigint "system_operation_id" t.text "emails" t.boolean "dispatch", default: true - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["account_id", "system_operation_id"], name: "index_mail_dispatch_rules_on_account_id_and_system_operation_id", unique: true end @@ -757,8 +756,8 @@ create_table "member_permissions", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.bigint "user_id" t.string "admin_section" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.binary "service_ids" t.index ["user_id"], name: "index_member_permissions_on_user_id" @@ -771,9 +770,9 @@ t.string "kind", default: "", null: false t.integer "position" t.string "state", null: false - t.datetime "hidden_at" + t.datetime "hidden_at", precision: nil t.bigint "tenant_id" - t.datetime "deleted_at" + t.datetime "deleted_at", precision: nil t.index ["message_id", "kind"], name: "index_message_recipients_on_message_id_and_kind" t.index ["receiver_id"], name: "idx_receiver_id" end @@ -783,10 +782,10 @@ t.text "subject" t.text "body" t.string "state", null: false - t.datetime "hidden_at" + t.datetime "hidden_at", precision: nil t.string "type" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "system_operation_id" t.text "headers" t.bigint "tenant_id" @@ -798,8 +797,8 @@ t.string "system_name" t.text "description" t.string "unit" - t.datetime "created_at", null: false - t.datetime "updated_at" + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil t.bigint "service_id" t.string "friendly_name" t.bigint "parent_id" @@ -816,16 +815,16 @@ create_table "moderatorships", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.bigint "forum_id" t.bigint "user_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" end create_table "notification_preferences", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.bigint "user_id" t.binary "preferences" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["user_id"], name: "index_notification_preferences_on_user_id", unique: true end @@ -835,8 +834,8 @@ t.string "event_id", null: false t.string "system_name", limit: 1000 t.string "state", limit: 20 - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "title", limit: 1000 t.index ["event_id"], name: "index_notifications_on_event_id" t.index ["user_id"], name: "index_notifications_on_user_id" @@ -847,8 +846,8 @@ t.string "oidc_configurable_type", null: false t.bigint "oidc_configurable_id", null: false t.bigint "tenant_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["oidc_configurable_type", "oidc_configurable_id"], name: "oidc_configurable", unique: true end @@ -858,8 +857,8 @@ t.string "bubble_api_state" t.string "bubble_metric_state" t.string "bubble_deployment_state" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.string "bubble_mapping_state" t.string "bubble_limit_state" t.bigint "tenant_id" @@ -869,8 +868,8 @@ create_table "partners", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.string "name" t.string "api_key" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.string "system_name" t.string "logout_url" end @@ -881,8 +880,8 @@ t.string "payment_service_reference" t.string "credit_card_partial_number" t.date "credit_card_expires_on" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.bigint "tenant_id" t.string "payment_method_id" t.index ["account_id", "buyer_reference"], name: "index_payment_details_on_account_id_and_buyer_reference" @@ -894,8 +893,8 @@ t.binary "gateway_settings" t.string "gateway_type" t.bigint "account_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["account_id"], name: "index_payment_gateway_settings_on_account_id" end @@ -904,8 +903,8 @@ t.integer "invoice_id", null: false t.string "state" t.bigint "tenant_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.string "reference" t.index ["invoice_id"], name: "index_payment_intents_on_invoice_id" t.index ["reference"], name: "index_payment_intents_on_reference", unique: true @@ -923,8 +922,8 @@ t.string "action" t.text "params" t.boolean "test", default: false, null: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["invoice_id"], name: "index_payment_transactions_on_invoice_id" end @@ -934,8 +933,8 @@ t.bigint "metric_id" t.boolean "visible", default: true t.boolean "limits_only_text", default: true - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "plan_type", null: false t.bigint "tenant_id" t.index ["metric_id"], name: "idx_plan_metrics_metric_id" @@ -949,8 +948,8 @@ t.text "full_legal", size: :long t.decimal "cost_per_month", precision: 20, scale: 4, default: "0.0", null: false t.integer "trial_period_days" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.integer "position", default: 0 t.string "state", null: false t.integer "cancellation_period", default: 0, null: false @@ -977,8 +976,8 @@ t.binary "schema", size: :long, null: false t.bigint "account_id", null: false t.bigint "tenant_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "identifier" t.index ["account_id", "identifier"], name: "index_policies_on_account_id_and_identifier", unique: true t.index ["account_id"], name: "index_policies_on_account_id" @@ -988,8 +987,8 @@ t.bigint "user_id" t.bigint "topic_id" t.text "body" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "forum_id" t.text "body_html" t.string "email" @@ -1007,8 +1006,8 @@ t.bigint "min", default: 1, null: false t.bigint "max" t.decimal "cost_per_unit", precision: 20, scale: 4, default: "0.0", null: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "plan_id" t.bigint "tenant_id" t.index ["plan_id"], name: "index_pricing_rules_on_plan_id_and_plan_type" @@ -1024,8 +1023,8 @@ t.string "email_sales" t.string "email_techsupport" t.string "email_press" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "logo_file_name" t.string "logo_content_type" t.integer "logo_file_size" @@ -1042,9 +1041,9 @@ t.text "value" t.bigint "user_id" t.bigint "tenant_id" - t.datetime "expires_at" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "expires_at", precision: nil + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.index ["user_id"], name: "fk_rails_260e99b630" end @@ -1053,8 +1052,8 @@ t.bigint "provider_id" t.integer "max_users" t.integer "max_services" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["provider_id"], name: "index_provider_constraints_on_provider_id", unique: true end @@ -1062,15 +1061,15 @@ t.bigint "tenant_id" t.bigint "service_id" t.string "endpoint" - t.datetime "deployed_at" + t.datetime "deployed_at", precision: nil t.string "auth_app_key", default: "app_key" t.string "auth_app_id", default: "app_id" t.string "auth_user_key", default: "user_key" t.string "credentials_location", default: "query", null: false t.string "error_auth_failed", default: "Authentication failed" t.string "error_auth_missing", default: "Authentication parameters missing" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.integer "error_status_auth_failed", default: 403, null: false t.string "error_headers_auth_failed", default: "text/plain; charset=us-ascii", null: false t.integer "error_status_auth_missing", default: 403, null: false @@ -1101,8 +1100,8 @@ create_table "proxy_config_affecting_changes", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.integer "proxy_id", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.index ["proxy_id"], name: "index_proxy_config_affecting_changes_on_proxy_id", unique: true end @@ -1113,8 +1112,8 @@ t.bigint "tenant_id" t.string "environment", null: false t.text "content", size: :medium, null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.string "hosts", limit: 8192 t.index ["proxy_id", "environment", "version"], name: "index_proxy_configs_on_proxy_id_and_environment_and_version" t.index ["proxy_id"], name: "index_proxy_configs_on_proxy_id" @@ -1126,8 +1125,8 @@ t.bigint "tenant_id" t.text "lua_file", size: :medium t.string "status" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil end create_table "proxy_rules", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| @@ -1138,8 +1137,8 @@ t.string "metric_system_name" t.integer "delta" t.bigint "tenant_id" - t.datetime "created_at", null: false - t.datetime "updated_at" + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil t.text "redirect_url" t.integer "position" t.boolean "last", default: false @@ -1152,8 +1151,8 @@ create_table "referrer_filters", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.bigint "application_id", null: false t.string "value", null: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["application_id"], name: "index_referrer_filters_on_application_id" end @@ -1161,16 +1160,16 @@ create_table "service_cubert_infos", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.string "bucket_id" t.bigint "service_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false t.bigint "tenant_id" end create_table "service_tokens", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.bigint "service_id" t.string "value" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.index ["service_id"], name: "index_service_tokens_on_service_id" end @@ -1180,8 +1179,8 @@ t.string "name", default: "" t.text "description" t.text "txt_support" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "logo_file_name" t.string "logo_content_type" t.integer "logo_file_size" @@ -1215,8 +1214,8 @@ t.string "bg_colour" t.string "link_colour" t.string "text_colour" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.string "menu_bg_colour" t.string "link_label" t.string "link_url" @@ -1288,7 +1287,7 @@ t.string "name" t.string "sluggable_type", limit: 50 t.bigint "sluggable_id" - t.datetime "created_at" + t.datetime "created_at", precision: nil t.integer "sequence", default: 1, null: false t.bigint "tenant_id" t.index ["name", "sluggable_type", "sequence"], name: "index_slugs_on_n_s_and_s" @@ -1299,8 +1298,8 @@ t.string "uid" t.bigint "authentication_provider_id" t.bigint "user_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.text "id_token" t.index ["authentication_provider_id"], name: "index_sso_authorizations_on_authentication_provider_id" @@ -1311,8 +1310,8 @@ t.string "ref" t.string "name" t.text "description" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.integer "pos" t.integer "tenant_id" end @@ -1321,8 +1320,8 @@ t.bigint "tag_id" t.bigint "taggable_id" t.string "taggable_type" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" t.integer "tagger_id" t.string "tagger_type" @@ -1333,8 +1332,8 @@ create_table "tags", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.string "name" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "account_id" t.bigint "tenant_id" t.integer "taggings_count", default: 0 @@ -1344,8 +1343,8 @@ create_table "topic_categories", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.string "name" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "forum_id" t.bigint "tenant_id" t.index ["forum_id"], name: "index_topic_categories_on_forum_id" @@ -1355,14 +1354,14 @@ t.bigint "forum_id" t.bigint "user_id" t.string "title" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.integer "hits", default: 0 t.boolean "sticky", default: false, null: false t.integer "posts_count", default: 0 t.boolean "locked", default: false t.bigint "last_post_id" - t.datetime "last_updated_at" + t.datetime "last_updated_at", precision: nil t.bigint "last_user_id" t.string "permalink" t.bigint "category_id" @@ -1377,8 +1376,8 @@ t.bigint "metric_id" t.string "period" t.bigint "value" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "plan_id" t.string "plan_type", null: false t.bigint "tenant_id" @@ -1392,11 +1391,11 @@ t.string "key" t.string "ip" t.string "user_agent" - t.datetime "accessed_at" - t.datetime "revoked_at" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.datetime "secured_until" + t.datetime "accessed_at", precision: nil + t.datetime "revoked_at", precision: nil + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil, null: false + t.datetime "secured_until", precision: nil t.bigint "sso_authorization_id" t.index ["key"], name: "idx_key" t.index ["sso_authorization_id"], name: "index_user_sessions_on_sso_authorization_id" @@ -1406,8 +1405,8 @@ create_table "user_topics", charset: "utf8mb3", collation: "utf8mb3_bin", force: :cascade do |t| t.bigint "user_id" t.bigint "topic_id" - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.bigint "tenant_id" end @@ -1416,12 +1415,12 @@ t.string "email" t.string "crypted_password", limit: 40 t.string "salt", limit: 40 - t.datetime "created_at", null: false - t.datetime "updated_at" + t.datetime "created_at", precision: nil, null: false + t.datetime "updated_at", precision: nil t.string "remember_token", limit: 40 - t.datetime "remember_token_expires_at" + t.datetime "remember_token_expires_at", precision: nil t.string "activation_code", limit: 40 - t.datetime "activated_at" + t.datetime "activated_at", precision: nil t.string "state" t.string "role", default: "" t.string "lost_password_token" @@ -1431,14 +1430,14 @@ t.string "last_name" t.string "signup_type" t.string "job_role" - t.datetime "last_login_at" + t.datetime "last_login_at", precision: nil t.string "last_login_ip" t.string "email_verification_code" t.string "title" t.text "extra_fields" t.bigint "tenant_id" t.string "cas_identifier" - t.datetime "lost_password_token_generated_at" + t.datetime "lost_password_token_generated_at", precision: nil t.string "authentication_id" t.string "open_id" t.string "password_digest" @@ -1461,8 +1460,8 @@ t.boolean "application_created_on", default: false t.boolean "application_updated_on", default: false t.boolean "application_deleted_on", default: false - t.datetime "created_at" - t.datetime "updated_at" + t.datetime "created_at", precision: nil + t.datetime "updated_at", precision: nil t.boolean "provider_actions", default: false t.boolean "account_plan_changed_on", default: false t.boolean "application_plan_changed_on", default: false