|
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_07_03_215419) do |
| 13 | +ActiveRecord::Schema[7.1].define(version: 2025_07_10_121000) 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" |
|
848 | 848 | t.index ["role_id"], name: "person_platform_membership_by_role" |
849 | 849 | end |
850 | 850 |
|
| 851 | + create_table "better_together_person_blocks", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| |
| 852 | + t.integer "lock_version", default: 0, null: false |
| 853 | + t.datetime "created_at", null: false |
| 854 | + t.datetime "updated_at", null: false |
| 855 | + t.uuid "blocker_id", null: false |
| 856 | + t.uuid "blocked_id", null: false |
| 857 | + t.index ["blocker_id", "blocked_id"], name: "unique_person_blocks", unique: true |
| 858 | + t.index ["blocker_id"], name: "index_better_together_person_blocks_on_blocker_id" |
| 859 | + t.index ["blocked_id"], name: "index_better_together_person_blocks_on_blocked_id" |
| 860 | + end |
| 861 | + |
| 862 | + create_table "better_together_reports", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| |
| 863 | + t.integer "lock_version", default: 0, null: false |
| 864 | + t.datetime "created_at", null: false |
| 865 | + t.datetime "updated_at", null: false |
| 866 | + t.uuid "reporter_id", null: false |
| 867 | + t.uuid "reportable_id", null: false |
| 868 | + t.string "reportable_type", null: false |
| 869 | + t.text "reason" |
| 870 | + t.index ["reporter_id"], name: "index_better_together_reports_on_reporter_id" |
| 871 | + end |
| 872 | + |
851 | 873 | create_table "better_together_phone_numbers", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| |
852 | 874 | t.integer "lock_version", default: 0, null: false |
853 | 875 | t.datetime "created_at", null: false |
|
1240 | 1262 | add_foreign_key "better_together_person_platform_memberships", "better_together_people", column: "member_id" |
1241 | 1263 | add_foreign_key "better_together_person_platform_memberships", "better_together_platforms", column: "joinable_id" |
1242 | 1264 | add_foreign_key "better_together_person_platform_memberships", "better_together_roles", column: "role_id" |
| 1265 | + add_foreign_key "better_together_person_blocks", "better_together_people", column: "blocker_id" |
| 1266 | + add_foreign_key "better_together_person_blocks", "better_together_people", column: "blocked_id" |
| 1267 | + add_foreign_key "better_together_reports", "better_together_people", column: "reporter_id" |
1243 | 1268 | add_foreign_key "better_together_phone_numbers", "better_together_contact_details", column: "contact_detail_id" |
1244 | 1269 | add_foreign_key "better_together_places", "better_together_communities", column: "community_id" |
1245 | 1270 | add_foreign_key "better_together_places", "better_together_geography_spaces", column: "space_id" |
|
0 commit comments