123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- # 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.
- #
- # Note that this schema.rb definition is the authoritative source for your
- # database schema. If you need to create the application database on another
- # system, you should be using db:schema:load, not running all the migrations
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
- # you'll amass, the slower it'll run and the greater likelihood for issues).
- #
- # It's strongly recommended that you check this file into your version control system.
- ActiveRecord::Schema.define(version: 20161111073417) do
- create_table "accounts", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
- t.bigint "ipaddr", null: false
- t.integer "pulled", null: false
- t.boolean "isused", null: false
- t.string "login", null: false
- t.string "password"
- t.integer "issue"
- t.string "comment"
- t.string "owner", null: false
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
- t.index ["created_at"], name: "index_accounts_on_created_at", using: :btree
- t.index ["ipaddr"], name: "index_accounts_on_ipaddr", using: :btree
- t.index ["issue"], name: "index_accounts_on_issue", using: :btree
- t.index ["isused"], name: "index_accounts_on_isused", using: :btree
- t.index ["login"], name: "index_accounts_on_login", using: :btree
- t.index ["password"], name: "index_accounts_on_password", using: :btree
- t.index ["pulled"], name: "index_accounts_on_pulled", using: :btree
- t.index ["updated_at"], name: "index_accounts_on_updated_at", using: :btree
- end
- create_table "ipaddrs", primary_key: "ipaddr", unsigned: true, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
- t.datetime "doc", default: -> { "CURRENT_TIMESTAMP" }, null: false
- t.datetime "dom", null: false
- t.bigint "pulled", default: 0
- t.boolean "isused", default: false
- t.bigint "uid", unsigned: true
- t.index ["uid"], name: "uid", using: :btree
- t.index ["uid"], name: "uni_uid", unique: true, using: :btree
- end
- create_table "radacct", primary_key: "RadAcctId", id: :bigint, force: :cascade, options: "ENGINE=MyISAM DEFAULT CHARSET=utf8" do |t|
- t.string "AcctSessionId", limit: 32, default: "", null: false
- t.string "AcctUniqueId", limit: 32, default: "", null: false
- t.string "UserName", limit: 64, default: "", null: false
- t.string "Realm", limit: 64, default: ""
- t.string "NASIPAddress", limit: 15, default: "", null: false
- t.string "NASPortId", limit: 15
- t.string "NASPortType", limit: 32
- t.datetime "AcctStartTime", null: false
- t.datetime "AcctStopTime", null: false
- t.integer "AcctSessionTime"
- t.string "AcctAuthentic", limit: 32
- t.string "ConnectInfo_start", limit: 50
- t.string "ConnectInfo_stop", limit: 50
- t.bigint "AcctInputOctets"
- t.bigint "AcctOutputOctets"
- t.string "CalledStationId", limit: 50, default: "", null: false
- t.string "CallingStationId", limit: 50, default: "", null: false
- t.string "AcctTerminateCause", limit: 32, default: "", null: false
- t.string "ServiceType", limit: 32
- t.string "FramedProtocol", limit: 32
- t.string "FramedIPAddress", limit: 15, default: "", null: false
- t.integer "AcctStartDelay"
- t.integer "AcctStopDelay"
- t.string "XAscendSessionSvrKey", limit: 10
- t.index ["AcctSessionId"], name: "AcctSessionId", using: :btree
- t.index ["AcctStartTime"], name: "AcctStartTime", using: :btree
- t.index ["AcctStopTime"], name: "AcctStopTime", using: :btree
- t.index ["AcctUniqueId"], name: "AcctUniqueId", using: :btree
- t.index ["FramedIPAddress"], name: "FramedIPAddress", using: :btree
- t.index ["NASIPAddress"], name: "NASIPAddress", using: :btree
- t.index ["UserName"], name: "UserName", using: :btree
- end
- create_table "sessions", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
- t.string "session_id", null: false
- t.string "cas_ticket"
- t.text "data", limit: 65535
- t.datetime "created_at"
- t.datetime "updated_at"
- t.index ["cas_ticket"], name: "index_sessions_on_cas_ticket", using: :btree
- t.index ["session_id"], name: "index_sessions_on_session_id", using: :btree
- t.index ["updated_at"], name: "index_sessions_on_updated_at", using: :btree
- end
- create_table "users", primary_key: "uid", id: :bigint, unsigned: true, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
- t.datetime "doc", default: -> { "CURRENT_TIMESTAMP" }, null: false
- t.datetime "dom", null: false
- t.string "username", limit: 64, null: false
- t.string "password"
- t.bigint "issue"
- t.text "comment", limit: 65535
- t.string "owner"
- t.index ["password"], name: "password", using: :btree
- t.index ["username"], name: "username", unique: true, using: :btree
- end
- create_table "users_old", primary_key: "uid", id: :bigint, unsigned: true, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
- t.datetime "doc", default: -> { "CURRENT_TIMESTAMP" }, null: false
- t.datetime "dom", null: false
- t.string "username", limit: 64, null: false
- t.string "password"
- t.bigint "issue"
- t.text "comment", limit: 65535
- t.index ["password"], name: "password", using: :btree
- t.index ["username"], name: "username", unique: true, using: :btree
- end
- add_foreign_key "ipaddrs", "users", column: "uid", primary_key: "uid", name: "ipaddrs_ibfk_1", on_update: :cascade, on_delete: :cascade
- end
|