PageRenderTime 53ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/db/schema.rb

http://vmaki.googlecode.com/
Ruby | 148 lines | 124 code | 14 blank | 10 comment | 0 complexity | f04cb50fe5cfa69a215a70277a69d7cc MD5 | raw file
Possible License(s): LGPL-2.1
  1. # This file is auto-generated from the current state of the database. Instead of editing this file,
  2. # please use the migrations feature of Active Record to incrementally modify your database, and
  3. # then regenerate this schema definition.
  4. #
  5. # Note that this schema.rb definition is the authoritative source for your database schema. If you need
  6. # to create the application database on another system, you should be using db:schema:load, not running
  7. # all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
  8. # you'll amass, the slower it'll run and the greater likelihood for issues).
  9. #
  10. # It's strongly recommended to check this file into your version control system.
  11. ActiveRecord::Schema.define(:version => 20090623092416) do
  12. create_table "hosts", :force => true do |t|
  13. t.string "name"
  14. t.string "connection_type"
  15. t.string "username"
  16. t.string "password"
  17. t.boolean "connect", :default => false
  18. t.boolean "connected", :default => false
  19. t.datetime "created_at"
  20. t.datetime "updated_at"
  21. t.integer "cpus"
  22. t.integer "cores"
  23. t.integer "total_memory"
  24. t.integer "memory"
  25. t.integer "mhz"
  26. t.string "model"
  27. t.integer "nodes"
  28. t.integer "sockets"
  29. t.integer "threads"
  30. t.boolean "hvm_support"
  31. t.string "ip_address"
  32. t.integer "lock_version"
  33. end
  34. create_table "isos", :force => true do |t|
  35. t.string "description"
  36. t.string "filename"
  37. t.decimal "size"
  38. t.datetime "created_at"
  39. t.datetime "updated_at"
  40. t.integer "lock_version"
  41. end
  42. create_table "log", :force => true do |t|
  43. t.string "user"
  44. t.string "subject"
  45. t.text "text"
  46. t.datetime "created_at"
  47. t.string "log_level"
  48. end
  49. create_table "nics", :force => true do |t|
  50. t.string "name"
  51. t.integer "host_id"
  52. t.datetime "created_at"
  53. t.datetime "updated_at"
  54. end
  55. create_table "pools", :force => true do |t|
  56. t.string "name"
  57. t.integer "host_id"
  58. t.datetime "created_at"
  59. t.datetime "updated_at"
  60. t.float "allocation"
  61. t.float "available"
  62. t.float "capacity"
  63. t.integer "state"
  64. t.integer "num_of_volumes"
  65. end
  66. create_table "sessions", :force => true do |t|
  67. t.string "session_id", :null => false
  68. t.text "data"
  69. t.datetime "created_at"
  70. t.datetime "updated_at"
  71. end
  72. add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id"
  73. add_index "sessions", ["updated_at"], :name => "index_sessions_on_updated_at"
  74. create_table "snapshots", :force => true do |t|
  75. t.string "name"
  76. t.text "description"
  77. t.string "status"
  78. t.decimal "size"
  79. t.integer "vm_id"
  80. t.datetime "created_at"
  81. t.datetime "updated_at"
  82. t.boolean "restore"
  83. t.string "display_date"
  84. t.integer "lock_version"
  85. end
  86. create_table "users", :force => true do |t|
  87. t.text "name"
  88. t.text "password"
  89. t.text "role"
  90. t.datetime "created_at"
  91. t.datetime "updated_at"
  92. t.integer "lock_version"
  93. end
  94. create_table "vms", :force => true do |t|
  95. t.string "name"
  96. t.integer "memory"
  97. t.integer "vcpu"
  98. t.string "bootloader"
  99. t.string "ostype"
  100. t.string "status"
  101. t.string "action"
  102. t.integer "host_id"
  103. t.integer "swapvolume_id"
  104. t.integer "rootvolume_id"
  105. t.datetime "created_at"
  106. t.datetime "updated_at"
  107. t.string "uuid"
  108. t.string "boot_device"
  109. t.string "vnc_url"
  110. t.integer "max_memory"
  111. t.integer "nic_id"
  112. t.integer "iso_id"
  113. t.string "cdrom", :default => "phy"
  114. t.integer "lock_version"
  115. end
  116. create_table "vnc_ports", :force => true do |t|
  117. t.integer "port"
  118. t.string "vmname"
  119. t.string "hostname"
  120. t.datetime "created_at"
  121. t.datetime "updated_at"
  122. end
  123. create_table "volumes", :force => true do |t|
  124. t.string "name"
  125. t.float "capacity"
  126. t.string "vol_type"
  127. t.integer "pool_id"
  128. t.datetime "created_at"
  129. t.datetime "updated_at"
  130. t.string "target_path"
  131. t.boolean "mkfs", :default => false
  132. t.float "allocation"
  133. end
  134. end