schema update

This commit is contained in:
2026-07-27 08:27:10 +02:00
parent 40caeb220c
commit bf5643df85
+15 -4
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.1].define(version: 2026_05_05_000009) do
ActiveRecord::Schema[8.1].define(version: 2026_05_05_000011) do
create_table "admin_users", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
t.datetime "created_at", null: false
t.string "email", default: "", null: false
@@ -179,13 +179,24 @@ ActiveRecord::Schema[8.1].define(version: 2026_05_05_000009) do
t.index ["software_id"], name: "idx_releases_software_id"
end
create_table "software_images", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
t.datetime "created_at", null: false
t.bigint "image_id", null: false
t.boolean "is_default", default: false, null: false
t.integer "position", default: 0, null: false
t.bigint "software_id", null: false, unsigned: true
t.datetime "updated_at", null: false
t.index ["image_id"], name: "fk_rails_a456fbc278"
t.index ["software_id", "image_id"], name: "index_software_images_on_software_id_and_image_id", unique: true
t.index ["software_id", "position"], name: "index_software_images_on_software_id_and_position"
end
create_table "softwares", id: { type: :bigint, unsigned: true }, charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
t.string "author"
t.datetime "created_at", precision: 3
t.datetime "deleted_at", precision: 3
t.text "desc"
t.boolean "highlighted", default: false
t.bigint "image_id"
t.string "license", limit: 128
t.string "name", limit: 128
t.string "platform", limit: 128
@@ -195,12 +206,12 @@ ActiveRecord::Schema[8.1].define(version: 2026_05_05_000009) do
t.string "title"
t.datetime "updated_at", precision: 3
t.index ["deleted_at"], name: "idx_softwares_deleted_at"
t.index ["image_id"], name: "index_softwares_on_image_id"
t.index ["name"], name: "idx_softwares_name", unique: true
end
add_foreign_key "external_links", "softwares", name: "fk_softwares_external_links"
add_foreign_key "members", "images"
add_foreign_key "releases", "softwares", name: "fk_softwares_releases"
add_foreign_key "softwares", "images"
add_foreign_key "software_images", "images"
add_foreign_key "software_images", "softwares"
end