|
| 1 | +# frozen_string_literal: true |
| 2 | + |
1 | 3 | # This file is auto-generated from the current state of the database. Instead |
2 | 4 | # of editing this file, please use the migrations feature of Active Record to |
3 | 5 | # incrementally modify your database, and then regenerate this schema definition. |
|
10 | 12 | # |
11 | 13 | # It's strongly recommended that you check this file into your version control system. |
12 | 14 |
|
13 | | -ActiveRecord::Schema[8.0].define(version: 2025_03_07_104536) do |
14 | | - create_table "accounts", force: :cascade do |t| |
15 | | - t.string "email" |
16 | | - t.string "password_digest" |
17 | | - t.datetime "created_at", null: false |
18 | | - t.datetime "updated_at", null: false |
| 15 | +ActiveRecord::Schema[8.0].define(version: 20_250_307_104_536) do |
| 16 | + create_table 'accounts', force: :cascade do |t| |
| 17 | + t.string 'email' |
| 18 | + t.string 'password_digest' |
| 19 | + t.datetime 'created_at', null: false |
| 20 | + t.datetime 'updated_at', null: false |
19 | 21 | end |
20 | 22 |
|
21 | | - create_table "active_storage_attachments", force: :cascade do |t| |
22 | | - t.string "name", null: false |
23 | | - t.string "record_type", null: false |
24 | | - t.integer "record_id", null: false |
25 | | - t.integer "blob_id", null: false |
26 | | - t.datetime "created_at", precision: nil, null: false |
27 | | - t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id" |
28 | | - t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true |
| 23 | + create_table 'active_storage_attachments', force: :cascade do |t| |
| 24 | + t.string 'name', null: false |
| 25 | + t.string 'record_type', null: false |
| 26 | + t.integer 'record_id', null: false |
| 27 | + t.integer 'blob_id', null: false |
| 28 | + t.datetime 'created_at', precision: nil, null: false |
| 29 | + t.index ['blob_id'], name: 'index_active_storage_attachments_on_blob_id' |
| 30 | + t.index %w[record_type record_id name blob_id], name: 'index_active_storage_attachments_uniqueness', |
| 31 | + unique: true |
29 | 32 | end |
30 | 33 |
|
31 | | - create_table "active_storage_blobs", force: :cascade do |t| |
32 | | - t.string "key", null: false |
33 | | - t.string "filename", null: false |
34 | | - t.string "content_type" |
35 | | - t.text "metadata" |
36 | | - t.bigint "byte_size", null: false |
37 | | - t.string "checksum", null: false |
38 | | - t.datetime "created_at", precision: nil, null: false |
39 | | - t.string "service_name", null: false |
40 | | - t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true |
| 34 | + create_table 'active_storage_blobs', force: :cascade do |t| |
| 35 | + t.string 'key', null: false |
| 36 | + t.string 'filename', null: false |
| 37 | + t.string 'content_type' |
| 38 | + t.text 'metadata' |
| 39 | + t.bigint 'byte_size', null: false |
| 40 | + t.string 'checksum', null: false |
| 41 | + t.datetime 'created_at', precision: nil, null: false |
| 42 | + t.string 'service_name', null: false |
| 43 | + t.index ['key'], name: 'index_active_storage_blobs_on_key', unique: true |
41 | 44 | end |
42 | 45 |
|
43 | | - create_table "active_storage_variant_records", force: :cascade do |t| |
44 | | - t.integer "blob_id", null: false |
45 | | - t.string "variation_digest", null: false |
46 | | - t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true |
| 46 | + create_table 'active_storage_variant_records', force: :cascade do |t| |
| 47 | + t.integer 'blob_id', null: false |
| 48 | + t.string 'variation_digest', null: false |
| 49 | + t.index %w[blob_id variation_digest], name: 'index_active_storage_variant_records_uniqueness', unique: true |
47 | 50 | end |
48 | 51 |
|
49 | | - create_table "maglev_assets", force: :cascade do |t| |
50 | | - t.string "filename" |
51 | | - t.string "content_type" |
52 | | - t.integer "width" |
53 | | - t.integer "height" |
54 | | - t.integer "byte_size" |
55 | | - t.datetime "created_at", null: false |
56 | | - t.datetime "updated_at", null: false |
| 52 | + create_table 'maglev_assets', force: :cascade do |t| |
| 53 | + t.string 'filename' |
| 54 | + t.string 'content_type' |
| 55 | + t.integer 'width' |
| 56 | + t.integer 'height' |
| 57 | + t.integer 'byte_size' |
| 58 | + t.datetime 'created_at', null: false |
| 59 | + t.datetime 'updated_at', null: false |
57 | 60 | end |
58 | 61 |
|
59 | | - create_table "maglev_page_paths", force: :cascade do |t| |
60 | | - t.bigint "maglev_page_id" |
61 | | - t.string "locale", null: false |
62 | | - t.string "value", null: false |
63 | | - t.boolean "canonical", default: true |
64 | | - t.index ["canonical", "locale", "value"], name: "canonical_speed" |
65 | | - t.index ["canonical", "maglev_page_id", "locale"], name: "scoped_canonical_speed" |
66 | | - t.index ["maglev_page_id"], name: "index_maglev_page_paths_on_maglev_page_id" |
| 62 | + create_table 'maglev_page_paths', force: :cascade do |t| |
| 63 | + t.bigint 'maglev_page_id' |
| 64 | + t.string 'locale', null: false |
| 65 | + t.string 'value', null: false |
| 66 | + t.boolean 'canonical', default: true |
| 67 | + t.index %w[canonical locale value], name: 'canonical_speed' |
| 68 | + t.index %w[canonical maglev_page_id locale], name: 'scoped_canonical_speed' |
| 69 | + t.index ['maglev_page_id'], name: 'index_maglev_page_paths_on_maglev_page_id' |
67 | 70 | end |
68 | 71 |
|
69 | | - create_table "maglev_pages", force: :cascade do |t| |
70 | | - t.boolean "visible", default: true |
71 | | - t.datetime "created_at", null: false |
72 | | - t.datetime "updated_at", null: false |
73 | | - t.json "title_translations", default: {} |
74 | | - t.json "seo_title_translations", default: {} |
75 | | - t.json "meta_description_translations", default: {} |
76 | | - t.json "sections_translations", default: {} |
77 | | - t.integer "lock_version" |
78 | | - t.json "og_title_translations", default: {} |
79 | | - t.json "og_description_translations", default: {} |
80 | | - t.json "og_image_url_translations", default: {} |
81 | | - t.string "layout_id" |
82 | | - t.index ["layout_id"], name: "index_maglev_pages_on_layout_id" |
| 72 | + create_table 'maglev_pages', force: :cascade do |t| |
| 73 | + t.boolean 'visible', default: true |
| 74 | + t.datetime 'created_at', null: false |
| 75 | + t.datetime 'updated_at', null: false |
| 76 | + t.json 'title_translations', default: {} |
| 77 | + t.json 'seo_title_translations', default: {} |
| 78 | + t.json 'meta_description_translations', default: {} |
| 79 | + t.json 'sections_translations', default: {} |
| 80 | + t.integer 'lock_version' |
| 81 | + t.json 'og_title_translations', default: {} |
| 82 | + t.json 'og_description_translations', default: {} |
| 83 | + t.json 'og_image_url_translations', default: {} |
| 84 | + t.string 'layout_id' |
| 85 | + t.index ['layout_id'], name: 'index_maglev_pages_on_layout_id' |
83 | 86 | end |
84 | 87 |
|
85 | | - create_table "maglev_sections_content_stores", force: :cascade do |t| |
86 | | - t.integer "maglev_page_id" |
87 | | - t.string "handle", null: false |
88 | | - t.json "sections_translations", default: {} |
89 | | - t.integer "lock_version" |
90 | | - t.datetime "created_at", null: false |
91 | | - t.datetime "updated_at", null: false |
92 | | - t.index ["handle"], name: "index_maglev_sections_content_stores_on_handle" |
93 | | - t.index ["maglev_page_id"], name: "index_maglev_sections_content_stores_on_maglev_page_id" |
| 88 | + create_table 'maglev_sections_content_stores', force: :cascade do |t| |
| 89 | + t.integer 'maglev_page_id' |
| 90 | + t.string 'handle', null: false |
| 91 | + t.json 'sections_translations', default: {} |
| 92 | + t.integer 'lock_version' |
| 93 | + t.datetime 'created_at', null: false |
| 94 | + t.datetime 'updated_at', null: false |
| 95 | + t.index ['handle'], name: 'index_maglev_sections_content_stores_on_handle' |
| 96 | + t.index ['maglev_page_id'], name: 'index_maglev_sections_content_stores_on_maglev_page_id' |
94 | 97 | end |
95 | 98 |
|
96 | | - create_table "maglev_sites", force: :cascade do |t| |
97 | | - t.string "name" |
98 | | - t.datetime "created_at", null: false |
99 | | - t.datetime "updated_at", null: false |
100 | | - t.json "locales", default: [] |
101 | | - t.json "sections_translations", default: {} |
102 | | - t.integer "lock_version" |
103 | | - t.json "style", default: [] |
| 99 | + create_table 'maglev_sites', force: :cascade do |t| |
| 100 | + t.string 'name' |
| 101 | + t.datetime 'created_at', null: false |
| 102 | + t.datetime 'updated_at', null: false |
| 103 | + t.json 'locales', default: [] |
| 104 | + t.json 'sections_translations', default: {} |
| 105 | + t.integer 'lock_version' |
| 106 | + t.json 'style', default: [] |
104 | 107 | end |
105 | 108 |
|
106 | | - create_table "products", force: :cascade do |t| |
107 | | - t.string "name" |
108 | | - t.string "sku" |
109 | | - t.float "price" |
110 | | - t.boolean "sold_out", default: false |
111 | | - t.datetime "created_at", null: false |
112 | | - t.datetime "updated_at", null: false |
| 109 | + create_table 'products', force: :cascade do |t| |
| 110 | + t.string 'name' |
| 111 | + t.string 'sku' |
| 112 | + t.float 'price' |
| 113 | + t.boolean 'sold_out', default: false |
| 114 | + t.datetime 'created_at', null: false |
| 115 | + t.datetime 'updated_at', null: false |
113 | 116 | end |
114 | 117 |
|
115 | | - add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" |
116 | | - add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" |
117 | | - add_foreign_key "maglev_sections_content_stores", "maglev_pages" |
| 118 | + add_foreign_key 'active_storage_attachments', 'active_storage_blobs', column: 'blob_id' |
| 119 | + add_foreign_key 'active_storage_variant_records', 'active_storage_blobs', column: 'blob_id' |
| 120 | + add_foreign_key 'maglev_sections_content_stores', 'maglev_pages' |
118 | 121 | end |
0 commit comments