Files
kontor/kontor-rails/db/schema.rb
T
2025-06-28 18:19:14 +02:00

109 lines
3.4 KiB
Ruby
Generated

# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# This file is the source Rails uses to define your schema when running `bin/rails
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
# be faster and is potentially less error prone than running all of your
# migrations from scratch. Old migrations may fail to apply correctly if those
# migrations use external dependencies or application code.
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.0].define(version: 2025_06_26_100213) do
create_table "artists", force: :cascade do |t|
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "comic_works", force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "comics", id: false, force: :cascade do |t|
t.string "id"
t.datetime "created_date"
t.datetime "last_modified_date"
t.integer "version"
t.string "title"
t.boolean "current_order"
t.boolean "completed"
t.string "weblink"
t.integer "publisher_id"
t.index ["publisher_id"], name: "index_comics_on_publisher_id"
end
create_table "issue_works", force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "issues", id: false, force: :cascade do |t|
t.string "id"
t.datetime "created_date"
t.datetime "last_modified_date"
t.integer "version"
t.string "issueNumber"
t.string "title"
t.datetime "published_on"
t.boolean "in_stock"
t.boolean "is_read"
t.integer "comic_id"
t.integer "volume_id"
t.integer "story_arc_id"
t.index ["comic_id"], name: "index_issues_on_comic_id"
t.index ["story_arc_id"], name: "index_issues_on_story_arc_id"
t.index ["volume_id"], name: "index_issues_on_volume_id"
end
create_table "publishers", id: false, force: :cascade do |t|
t.string "id"
t.datetime "created_date"
t.datetime "last_modified_date"
t.integer "version"
t.string "name"
t.string "weblink"
t.string "parent_publisher_id"
end
create_table "story_arcs", id: false, force: :cascade do |t|
t.string "id"
t.datetime "created_date"
t.datetime "last_modified_date"
t.integer "version"
t.string "name"
t.integer "comic_id"
t.index ["comic_id"], name: "index_story_arcs_on_comic_id"
end
create_table "trade_paperbacks", id: false, force: :cascade do |t|
t.string "id"
t.datetime "created_date"
t.datetime "last_modified_date"
t.integer "version"
t.string "name"
t.integer "issue_start"
t.integer "issue_end"
t.integer "comic_id"
t.index ["comic_id"], name: "index_trade_paperbacks_on_comic_id"
end
create_table "volumes", id: false, force: :cascade do |t|
t.string "id"
t.datetime "created_date"
t.datetime "last_modified_date"
t.integer "version"
t.string "name"
t.integer "comic_id"
t.index ["comic_id"], name: "index_volumes_on_comic_id"
end
create_table "worktypes", force: :cascade do |t|
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
end