|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema[7.1].define(version: 2025_09_01_203002) do |
| 13 | +ActiveRecord::Schema[7.2].define(version: 2025_09_01_203002) do |
14 | 14 | # These are extensions that must be enabled in order to support this database |
15 | 15 | enable_extension "pgcrypto" |
16 | 16 | enable_extension "plpgsql" |
|
33 | 33 | t.uuid "record_id", null: false |
34 | 34 | t.uuid "blob_id", null: false |
35 | 35 | t.datetime "created_at", null: false |
36 | | - t.string "locale", null: false |
| 36 | + t.string "locale", default: "en", null: false |
37 | 37 | t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id" |
38 | 38 | t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true |
39 | 39 | t.index ["record_type", "record_id", "name", "locale"], name: "index_active_storage_attachments_on_record_and_name_and_locale", unique: true |
|
871 | 871 | t.index ["pageable_type", "pageable_id"], name: "index_better_together_metrics_page_views_on_pageable" |
872 | 872 | end |
873 | 873 |
|
874 | | - create_table "better_together_metrics_rich_text_links", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| |
875 | | - t.integer "lock_version", default: 0, null: false |
876 | | - t.datetime "created_at", null: false |
877 | | - t.datetime "updated_at", null: false |
878 | | - t.uuid "rich_text_id", null: false |
879 | | - t.string "url", null: false |
880 | | - t.string "link_type", null: false |
881 | | - t.boolean "external", null: false |
882 | | - t.boolean "valid", default: false |
883 | | - t.string "host" |
884 | | - t.text "error_message" |
885 | | - t.index ["rich_text_id"], name: "index_better_together_metrics_rich_text_links_on_rich_text_id" |
886 | | - end |
887 | | - |
888 | 874 | create_table "better_together_metrics_search_queries", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| |
889 | 875 | t.integer "lock_version", default: 0, null: false |
890 | 876 | t.datetime "created_at", null: false |
|
1024 | 1010 | t.index ["role_id"], name: "person_community_membership_by_role" |
1025 | 1011 | end |
1026 | 1012 |
|
1027 | | - create_table "better_together_person_platform_integrations", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| |
1028 | | - t.integer "lock_version", default: 0, null: false |
1029 | | - t.datetime "created_at", null: false |
1030 | | - t.datetime "updated_at", null: false |
1031 | | - t.string "provider", limit: 50, default: "", null: false |
1032 | | - t.string "uid", limit: 50, default: "", null: false |
1033 | | - t.string "name" |
1034 | | - t.string "handle" |
1035 | | - t.string "profile_url" |
1036 | | - t.string "image_url" |
1037 | | - t.string "access_token" |
1038 | | - t.string "access_token_secret" |
1039 | | - t.string "refresh_token" |
1040 | | - t.datetime "expires_at" |
1041 | | - t.jsonb "auth" |
1042 | | - t.uuid "person_id" |
1043 | | - t.uuid "platform_id" |
1044 | | - t.uuid "user_id" |
1045 | | - t.index ["person_id"], name: "bt_person_platform_conections_by_person" |
1046 | | - t.index ["platform_id"], name: "bt_person_platform_conections_by_platform" |
1047 | | - t.index ["user_id"], name: "bt_person_platform_conections_by_user" |
1048 | | - end |
1049 | | - |
1050 | 1013 | create_table "better_together_person_platform_memberships", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| |
1051 | 1014 | t.integer "lock_version", default: 0, null: false |
1052 | 1015 | t.datetime "created_at", null: false |
|
1101 | 1064 | t.uuid "inviter_id", null: false |
1102 | 1065 | t.uuid "platform_role_id" |
1103 | 1066 | t.string "status", limit: 20, null: false |
1104 | | - t.string "locale", limit: 5, default: "es", null: false |
| 1067 | + t.string "locale", limit: 5, default: "en", null: false |
1105 | 1068 | t.string "token", limit: 24, null: false |
1106 | 1069 | t.datetime "valid_from", null: false |
1107 | 1070 | t.datetime "valid_until" |
|
1132 | 1095 | t.string "identifier", limit: 100, null: false |
1133 | 1096 | t.boolean "host", default: false, null: false |
1134 | 1097 | t.boolean "protected", default: false, null: false |
| 1098 | + t.uuid "community_id", null: false |
1135 | 1099 | t.string "privacy", limit: 50, default: "private", null: false |
1136 | | - t.uuid "community_id" |
| 1100 | + t.string "slug" |
1137 | 1101 | t.string "url", null: false |
1138 | 1102 | t.string "time_zone", null: false |
1139 | 1103 | t.jsonb "settings", default: {}, null: false |
|
1209 | 1173 | t.index ["resource_type", "position"], name: "index_roles_on_resource_type_and_position", unique: true |
1210 | 1174 | end |
1211 | 1175 |
|
1212 | | - create_table "better_together_seeds", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| |
1213 | | - t.integer "lock_version", default: 0, null: false |
1214 | | - t.datetime "created_at", null: false |
1215 | | - t.datetime "updated_at", null: false |
1216 | | - t.string "type", default: "BetterTogether::Seed", null: false |
1217 | | - t.string "seedable_type" |
1218 | | - t.uuid "seedable_id" |
1219 | | - t.uuid "creator_id" |
1220 | | - t.string "identifier", limit: 100, null: false |
1221 | | - t.string "privacy", limit: 50, default: "private", null: false |
1222 | | - t.string "version", null: false |
1223 | | - t.string "created_by", null: false |
1224 | | - t.datetime "seeded_at", null: false |
1225 | | - t.text "description", null: false |
1226 | | - t.jsonb "origin", null: false |
1227 | | - t.jsonb "payload", null: false |
1228 | | - t.index ["creator_id"], name: "by_better_together_seeds_creator" |
1229 | | - t.index ["identifier"], name: "index_better_together_seeds_on_identifier", unique: true |
1230 | | - t.index ["origin"], name: "index_better_together_seeds_on_origin", using: :gin |
1231 | | - t.index ["payload"], name: "index_better_together_seeds_on_payload", using: :gin |
1232 | | - t.index ["privacy"], name: "by_better_together_seeds_privacy" |
1233 | | - t.index ["seedable_type", "seedable_id"], name: "index_better_together_seeds_on_seedable" |
1234 | | - t.index ["type", "identifier"], name: "index_better_together_seeds_on_type_and_identifier", unique: true |
1235 | | - end |
1236 | | - |
1237 | 1176 | create_table "better_together_social_media_accounts", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| |
1238 | 1177 | t.integer "lock_version", default: 0, null: false |
1239 | 1178 | t.datetime "created_at", null: false |
|
1476 | 1415 | add_foreign_key "better_together_infrastructure_rooms", "better_together_communities", column: "community_id" |
1477 | 1416 | add_foreign_key "better_together_infrastructure_rooms", "better_together_infrastructure_floors", column: "floor_id" |
1478 | 1417 | add_foreign_key "better_together_infrastructure_rooms", "better_together_people", column: "creator_id" |
1479 | | - add_foreign_key "better_together_invitations", "better_together_invitations", column: "primary_invitation_id" |
1480 | 1418 | add_foreign_key "better_together_invitations", "better_together_roles", column: "role_id" |
1481 | 1419 | add_foreign_key "better_together_joatu_agreements", "better_together_joatu_offers", column: "offer_id" |
1482 | 1420 | add_foreign_key "better_together_joatu_agreements", "better_together_joatu_requests", column: "request_id" |
|
1487 | 1425 | add_foreign_key "better_together_joatu_response_links", "better_together_people", column: "creator_id" |
1488 | 1426 | add_foreign_key "better_together_messages", "better_together_conversations", column: "conversation_id" |
1489 | 1427 | add_foreign_key "better_together_messages", "better_together_people", column: "sender_id" |
1490 | | - add_foreign_key "better_together_metrics_rich_text_links", "action_text_rich_texts", column: "rich_text_id" |
1491 | 1428 | add_foreign_key "better_together_navigation_items", "better_together_navigation_areas", column: "navigation_area_id" |
1492 | 1429 | add_foreign_key "better_together_navigation_items", "better_together_navigation_items", column: "parent_id" |
1493 | 1430 | add_foreign_key "better_together_pages", "better_together_navigation_areas", column: "sidebar_nav_id" |
|
0 commit comments