Реализация Page и DataCardWidget
This commit is contained in:
Generated
+66
@@ -0,0 +1,66 @@
|
||||
# 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: 0) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_catalog.plpgsql"
|
||||
|
||||
create_table "blowout", id: false, force: :cascade do |t|
|
||||
t.integer "ch_id"
|
||||
t.string "control_point"
|
||||
t.decimal "blowout_system"
|
||||
t.decimal "blowout_not_system"
|
||||
end
|
||||
|
||||
create_table "channels", id: :integer, default: nil, force: :cascade do |t|
|
||||
t.integer "channel_id", null: false
|
||||
t.integer "server_id"
|
||||
t.string "name_controlpoint", limit: 50, default: "Точка контроля", null: false
|
||||
t.string "name_db", limit: 50, default: "Блок Детектирования", null: false
|
||||
t.string "name_location", limit: 256, default: "Расположение", null: false
|
||||
t.float "event_value", default: 0.0, null: false
|
||||
t.string "unit", limit: 50
|
||||
t.datetime "event_date", precision: nil, default: "2022-06-20 00:00:00", null: false
|
||||
t.integer "on_off", default: 1, null: false
|
||||
t.float "coefficient", default: 1.0, null: false
|
||||
t.float "pre_accident", default: 0.1, null: false
|
||||
t.float "accident", default: 1.0, null: false
|
||||
t.integer "type", default: 1, null: false
|
||||
t.integer "count", default: 0, null: false
|
||||
t.float "value_impulses", default: 0.0, null: false
|
||||
t.integer "error_count", default: 0, null: false
|
||||
t.integer "state_for_threeview", default: 3, null: false
|
||||
t.float "min_nuclid_value", default: 1.0, null: false
|
||||
t.float "max_nuclid_value", default: 2.0, null: false
|
||||
t.float "background", default: 0.0, null: false
|
||||
t.float "consumption", default: 1.0, null: false
|
||||
t.boolean "special_control", default: true, null: false
|
||||
t.float "value_cu", default: 0.0, null: false
|
||||
t.index ["id"], name: "XI_channel_id_index"
|
||||
end
|
||||
|
||||
create_table "histories", id: false, force: :cascade do |t|
|
||||
t.integer "channel_id", null: false
|
||||
t.float "event_value", null: false
|
||||
t.datetime "event_date", precision: nil, null: false
|
||||
t.index ["channel_id", "event_date"], name: "IX_histories_id_event_date"
|
||||
end
|
||||
|
||||
create_table "special_report", id: false, force: :cascade do |t|
|
||||
t.integer "channel_id"
|
||||
t.string "name_controlpoint", limit: 50
|
||||
t.float "event_value"
|
||||
t.integer "channel_type"
|
||||
end
|
||||
|
||||
add_foreign_key "histories", "channels", name: "FK_history_id"
|
||||
end
|
||||
Reference in New Issue
Block a user