|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema.define(version: 2025_03_07_104536) do |
14 | | - |
| 13 | +ActiveRecord::Schema[7.2].define(version: 2025_03_07_104536) do |
15 | 14 | # These are extensions that must be enabled in order to support this database |
16 | 15 | enable_extension "plpgsql" |
17 | 16 |
|
18 | 17 | create_table "accounts", force: :cascade do |t| |
19 | 18 | t.string "email" |
20 | 19 | t.string "password_digest" |
21 | | - t.datetime "created_at", precision: 6, null: false |
22 | | - t.datetime "updated_at", precision: 6, null: false |
| 20 | + t.datetime "created_at", null: false |
| 21 | + t.datetime "updated_at", null: false |
23 | 22 | end |
24 | 23 |
|
25 | 24 | create_table "active_storage_attachments", force: :cascade do |t| |
26 | 25 | t.string "name", null: false |
27 | 26 | t.string "record_type", null: false |
28 | 27 | t.bigint "record_id", null: false |
29 | 28 | t.bigint "blob_id", null: false |
30 | | - t.datetime "created_at", null: false |
| 29 | + t.datetime "created_at", precision: nil, null: false |
31 | 30 | t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id" |
32 | 31 | t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true |
33 | 32 | end |
|
39 | 38 | t.text "metadata" |
40 | 39 | t.bigint "byte_size", null: false |
41 | 40 | t.string "checksum", null: false |
42 | | - t.datetime "created_at", null: false |
| 41 | + t.datetime "created_at", precision: nil, null: false |
43 | 42 | t.string "service_name", null: false |
44 | 43 | t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true |
45 | 44 | end |
|
56 | 55 | t.integer "width" |
57 | 56 | t.integer "height" |
58 | 57 | t.integer "byte_size" |
59 | | - t.datetime "created_at", precision: 6, null: false |
60 | | - t.datetime "updated_at", precision: 6, null: false |
| 58 | + t.datetime "created_at", null: false |
| 59 | + t.datetime "updated_at", null: false |
61 | 60 | end |
62 | 61 |
|
63 | 62 | create_table "maglev_page_paths", force: :cascade do |t| |
|
72 | 71 |
|
73 | 72 | create_table "maglev_pages", force: :cascade do |t| |
74 | 73 | t.boolean "visible", default: true |
75 | | - t.datetime "created_at", precision: 6, null: false |
76 | | - t.datetime "updated_at", precision: 6, null: false |
| 74 | + t.datetime "created_at", null: false |
| 75 | + t.datetime "updated_at", null: false |
77 | 76 | t.jsonb "title_translations", default: {} |
78 | 77 | t.jsonb "seo_title_translations", default: {} |
79 | 78 | t.jsonb "meta_description_translations", default: {} |
|
91 | 90 | t.string "handle", null: false |
92 | 91 | t.jsonb "sections_translations", default: {} |
93 | 92 | t.integer "lock_version" |
94 | | - t.datetime "created_at", precision: 6, null: false |
95 | | - t.datetime "updated_at", precision: 6, null: false |
| 93 | + t.datetime "created_at", null: false |
| 94 | + t.datetime "updated_at", null: false |
96 | 95 | t.index ["handle"], name: "index_maglev_sections_content_stores_on_handle" |
97 | 96 | t.index ["maglev_page_id"], name: "index_maglev_sections_content_stores_on_maglev_page_id" |
98 | 97 | end |
99 | 98 |
|
100 | 99 | create_table "maglev_sites", force: :cascade do |t| |
101 | 100 | t.string "name" |
102 | | - t.datetime "created_at", precision: 6, null: false |
103 | | - t.datetime "updated_at", precision: 6, null: false |
104 | | - t.jsonb "navigation", default: [] |
| 101 | + t.datetime "created_at", null: false |
| 102 | + t.datetime "updated_at", null: false |
105 | 103 | t.jsonb "locales", default: [] |
106 | 104 | t.jsonb "sections_translations", default: {} |
107 | 105 | t.integer "lock_version" |
108 | | - t.string "siteable_type" |
109 | | - t.bigint "siteable_id" |
110 | | - t.string "handle" |
111 | | - t.string "theme_id" |
112 | | - t.string "domain" |
113 | 106 | t.jsonb "style", default: [] |
114 | | - t.index ["siteable_type", "siteable_id"], name: "index_maglev_sites_on_siteable" |
115 | 107 | end |
116 | 108 |
|
117 | 109 | create_table "products", force: :cascade do |t| |
118 | 110 | t.string "name" |
119 | 111 | t.string "sku" |
120 | 112 | t.float "price" |
121 | 113 | t.boolean "sold_out", default: false |
122 | | - t.datetime "created_at", precision: 6, null: false |
123 | | - t.datetime "updated_at", precision: 6, null: false |
| 114 | + t.datetime "created_at", null: false |
| 115 | + t.datetime "updated_at", null: false |
124 | 116 | end |
125 | 117 |
|
126 | 118 | add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" |
|
0 commit comments