25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

82 lines
3.0 KiB

  1. # This file is auto-generated from the current state of the database. Instead
  2. # of editing this file, please use the migrations feature of Active Record to
  3. # incrementally modify your database, and then regenerate this schema definition.
  4. #
  5. # Note that this schema.rb definition is the authoritative source for your
  6. # database schema. If you need to create the application database on another
  7. # system, you should be using db:schema:load, not running all the migrations
  8. # from scratch. The latter is a flawed and unsustainable approach (the more migrations
  9. # you'll amass, the slower it'll run and the greater likelihood for issues).
  10. #
  11. # It's strongly recommended that you check this file into your version control system.
  12. ActiveRecord::Schema.define(version: 20161126234039) do
  13. create_table "categories", force: :cascade do |t|
  14. t.string "name"
  15. t.integer "parent_id"
  16. t.datetime "created_at", null: false
  17. t.datetime "updated_at", null: false
  18. t.integer "user_id"
  19. t.index ["parent_id"], name: "index_categories_on_parent_id"
  20. t.index ["user_id"], name: "index_categories_on_user_id"
  21. end
  22. create_table "contents", force: :cascade do |t|
  23. t.text "text"
  24. t.integer "document_id"
  25. t.datetime "created_at", null: false
  26. t.datetime "updated_at", null: false
  27. t.integer "pagecount", default: -1
  28. t.index ["document_id"], name: "index_contents_on_document_id"
  29. end
  30. create_table "documents", force: :cascade do |t|
  31. t.string "name"
  32. t.datetime "created_at", null: false
  33. t.datetime "updated_at", null: false
  34. t.string "doc_file_name"
  35. t.string "doc_content_type"
  36. t.integer "doc_file_size"
  37. t.datetime "doc_updated_at"
  38. t.string "doc_fingerprint"
  39. t.integer "user_id"
  40. t.integer "category_id"
  41. t.index ["category_id"], name: "index_documents_on_category_id"
  42. t.index ["doc_fingerprint"], name: "index_documents_on_doc_fingerprint"
  43. t.index ["user_id"], name: "index_documents_on_user_id"
  44. end
  45. create_table "documents_tags", id: false, force: :cascade do |t|
  46. t.integer "document_id", null: false
  47. t.integer "tag_id", null: false
  48. end
  49. create_table "page_previews", force: :cascade do |t|
  50. t.integer "content_id"
  51. t.datetime "created_at", null: false
  52. t.datetime "updated_at", null: false
  53. t.string "preview_file_name"
  54. t.string "preview_content_type"
  55. t.integer "preview_file_size"
  56. t.datetime "preview_updated_at"
  57. t.integer "pagenumber"
  58. t.index ["content_id"], name: "index_page_previews_on_content_id"
  59. end
  60. create_table "tags", force: :cascade do |t|
  61. t.string "value"
  62. t.boolean "automatically_asigned"
  63. t.datetime "created_at", null: false
  64. t.datetime "updated_at", null: false
  65. end
  66. create_table "users", force: :cascade do |t|
  67. t.string "name"
  68. t.string "password_digest"
  69. t.datetime "created_at", null: false
  70. t.datetime "updated_at", null: false
  71. end
  72. end