|
@@ -18,7 +18,7 @@ ActiveRecord::Schema.define(version: 20140820003139) do
|
|
|
|
|
|
create_table "agent_logs", force: true do |t|
|
|
|
t.integer "agent_id", null: false
|
|
|
- t.text "message", null: false
|
|
|
+ t.text "message", limit: 16777215, null: false, charset: "utf8mb4", collation: "utf8mb4_bin"
|
|
|
t.integer "level", default: 3, null: false
|
|
|
t.integer "inbound_event_id"
|
|
|
t.integer "outbound_event_id"
|
|
@@ -28,24 +28,24 @@ ActiveRecord::Schema.define(version: 20140820003139) do
|
|
|
|
|
|
create_table "agents", force: true do |t|
|
|
|
t.integer "user_id"
|
|
|
- t.text "options"
|
|
|
- t.string "type"
|
|
|
- t.string "name"
|
|
|
- t.string "schedule"
|
|
|
+ t.text "options", limit: 16777215, charset: "utf8mb4", collation: "utf8mb4_bin"
|
|
|
+ t.string "type", collation: "utf8_bin"
|
|
|
+ t.string "name", charset: "utf8mb4", collation: "utf8mb4_bin"
|
|
|
+ t.string "schedule", collation: "utf8_bin"
|
|
|
t.integer "events_count"
|
|
|
t.datetime "last_check_at"
|
|
|
t.datetime "last_receive_at"
|
|
|
t.integer "last_checked_event_id"
|
|
|
- t.datetime "created_at"
|
|
|
- t.datetime "updated_at"
|
|
|
- t.text "memory"
|
|
|
+ t.datetime "created_at", null: false
|
|
|
+ t.datetime "updated_at", null: false
|
|
|
+ t.text "memory", limit: 2147483647, charset: "utf8mb4", collation: "utf8mb4_bin"
|
|
|
t.datetime "last_web_request_at"
|
|
|
t.integer "keep_events_for", default: 0, null: false
|
|
|
t.datetime "last_event_at"
|
|
|
t.datetime "last_error_log_at"
|
|
|
t.boolean "propagate_immediately", default: false, null: false
|
|
|
t.boolean "disabled", default: false, null: false
|
|
|
- t.string "guid", null: false
|
|
|
+ t.string "guid", null: false, charset: "ascii", collation: "ascii_bin"
|
|
|
t.integer "service_id"
|
|
|
end
|
|
|
|
|
@@ -55,10 +55,10 @@ ActiveRecord::Schema.define(version: 20140820003139) do
|
|
|
add_index "agents", ["user_id", "created_at"], name: "index_agents_on_user_id_and_created_at", using: :btree
|
|
|
|
|
|
create_table "delayed_jobs", force: true do |t|
|
|
|
- t.integer "priority", default: 0
|
|
|
- t.integer "attempts", default: 0
|
|
|
- t.text "handler"
|
|
|
- t.text "last_error"
|
|
|
+ t.integer "priority", default: 0
|
|
|
+ t.integer "attempts", default: 0
|
|
|
+ t.text "handler", limit: 16777215, charset: "utf8mb4", collation: "utf8mb4_bin"
|
|
|
+ t.text "last_error", limit: 16777215, charset: "utf8mb4", collation: "utf8mb4_bin"
|
|
|
t.datetime "run_at"
|
|
|
t.datetime "locked_at"
|
|
|
t.datetime "failed_at"
|
|
@@ -73,11 +73,11 @@ ActiveRecord::Schema.define(version: 20140820003139) do
|
|
|
create_table "events", force: true do |t|
|
|
|
t.integer "user_id"
|
|
|
t.integer "agent_id"
|
|
|
- t.decimal "lat", precision: 15, scale: 10
|
|
|
- t.decimal "lng", precision: 15, scale: 10
|
|
|
- t.text "payload"
|
|
|
- t.datetime "created_at"
|
|
|
- t.datetime "updated_at"
|
|
|
+ t.decimal "lat", precision: 15, scale: 10
|
|
|
+ t.decimal "lng", precision: 15, scale: 10
|
|
|
+ t.text "payload", limit: 2147483647, charset: "utf8mb4", collation: "utf8mb4_bin"
|
|
|
+ t.datetime "created_at", null: false
|
|
|
+ t.datetime "updated_at", null: false
|
|
|
t.datetime "expires_at"
|
|
|
end
|
|
|
|
|
@@ -107,13 +107,13 @@ ActiveRecord::Schema.define(version: 20140820003139) do
|
|
|
add_index "scenario_memberships", ["scenario_id"], name: "index_scenario_memberships_on_scenario_id", using: :btree
|
|
|
|
|
|
create_table "scenarios", force: true do |t|
|
|
|
- t.string "name", null: false
|
|
|
- t.integer "user_id", null: false
|
|
|
+ t.string "name", null: false, charset: "utf8mb4", collation: "utf8mb4_bin"
|
|
|
+ t.integer "user_id", null: false
|
|
|
t.datetime "created_at"
|
|
|
t.datetime "updated_at"
|
|
|
- t.text "description"
|
|
|
- t.boolean "public", default: false, null: false
|
|
|
- t.string "guid", null: false
|
|
|
+ t.text "description", charset: "utf8mb4", collation: "utf8mb4_bin"
|
|
|
+ t.boolean "public", default: false, null: false
|
|
|
+ t.string "guid", null: false, charset: "ascii", collation: "ascii_bin"
|
|
|
t.string "source_url"
|
|
|
t.string "tag_bg_color"
|
|
|
t.string "tag_fg_color"
|
|
@@ -144,33 +144,33 @@ ActiveRecord::Schema.define(version: 20140820003139) do
|
|
|
t.integer "user_id", null: false
|
|
|
t.string "credential_name", null: false
|
|
|
t.text "credential_value", null: false
|
|
|
- t.datetime "created_at"
|
|
|
- t.datetime "updated_at"
|
|
|
- t.string "mode", default: "text", null: false
|
|
|
+ t.datetime "created_at", null: false
|
|
|
+ t.datetime "updated_at", null: false
|
|
|
+ t.string "mode", default: "text", null: false, collation: "utf8_bin"
|
|
|
end
|
|
|
|
|
|
add_index "user_credentials", ["user_id", "credential_name"], name: "index_user_credentials_on_user_id_and_credential_name", unique: true, using: :btree
|
|
|
|
|
|
create_table "users", force: true do |t|
|
|
|
- t.string "email", default: "", null: false
|
|
|
- t.string "encrypted_password", default: "", null: false
|
|
|
- t.string "reset_password_token"
|
|
|
+ t.string "email", default: "", null: false, collation: "utf8_bin"
|
|
|
+ t.string "encrypted_password", default: "", null: false, charset: "ascii", collation: "ascii_bin"
|
|
|
+ t.string "reset_password_token", collation: "utf8_bin"
|
|
|
t.datetime "reset_password_sent_at"
|
|
|
t.datetime "remember_created_at"
|
|
|
- t.integer "sign_in_count", default: 0
|
|
|
+ t.integer "sign_in_count", default: 0
|
|
|
t.datetime "current_sign_in_at"
|
|
|
t.datetime "last_sign_in_at"
|
|
|
t.string "current_sign_in_ip"
|
|
|
t.string "last_sign_in_ip"
|
|
|
- t.datetime "created_at"
|
|
|
- t.datetime "updated_at"
|
|
|
- t.boolean "admin", default: false, null: false
|
|
|
- t.integer "failed_attempts", default: 0
|
|
|
+ t.datetime "created_at", null: false
|
|
|
+ t.datetime "updated_at", null: false
|
|
|
+ t.boolean "admin", default: false, null: false
|
|
|
+ t.integer "failed_attempts", default: 0
|
|
|
t.string "unlock_token"
|
|
|
t.datetime "locked_at"
|
|
|
- t.string "username", null: false
|
|
|
- t.string "invitation_code", null: false
|
|
|
- t.integer "scenario_count", default: 0, null: false
|
|
|
+ t.string "username", limit: 191, null: false, charset: "utf8mb4", collation: "utf8mb4_unicode_ci"
|
|
|
+ t.string "invitation_code", null: false, collation: "utf8_bin"
|
|
|
+ t.integer "scenario_count", default: 0, null: false
|
|
|
end
|
|
|
|
|
|
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
|