Added the priciples, sub principles and the groups.
This commit is contained in:
32
db/schema.rb
generated
32
db/schema.rb
generated
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2022_06_11_183116) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2022_06_11_194255) do
|
||||
create_table "action_text_rich_texts", charset: "latin1", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.text "body", size: :long
|
||||
@@ -81,6 +81,33 @@ ActiveRecord::Schema[7.0].define(version: 2022_06_11_183116) do
|
||||
t.index ["name"], name: "index_principles_on_name"
|
||||
end
|
||||
|
||||
create_table "subprincipleitemgroups", charset: "latin1", force: :cascade do |t|
|
||||
t.bigint "subprinciple_id", null: false
|
||||
t.string "type"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["subprinciple_id"], name: "index_subprincipleitemgroups_on_subprinciple_id"
|
||||
end
|
||||
|
||||
create_table "subprinciples", charset: "latin1", force: :cascade do |t|
|
||||
t.bigint "principle_id", null: false
|
||||
t.string "name"
|
||||
t.text "description"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["name"], name: "index_subprinciples_on_name"
|
||||
t.index ["principle_id"], name: "index_subprinciples_on_principle_id"
|
||||
end
|
||||
|
||||
create_table "subprinciplitems", charset: "latin1", force: :cascade do |t|
|
||||
t.bigint "subprincipleitemgroup_id", null: false
|
||||
t.text "description"
|
||||
t.boolean "affirmative"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["subprincipleitemgroup_id"], name: "index_subprinciplitems_on_subprincipleitemgroup_id"
|
||||
end
|
||||
|
||||
create_table "users", charset: "latin1", force: :cascade do |t|
|
||||
t.string "email", default: "", null: false
|
||||
t.string "encrypted_password", default: "", null: false
|
||||
@@ -107,4 +134,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_06_11_183116) do
|
||||
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
|
||||
add_foreign_key "cafs", "companies"
|
||||
add_foreign_key "principles", "cafs"
|
||||
add_foreign_key "subprincipleitemgroups", "subprinciples"
|
||||
add_foreign_key "subprinciples", "principles"
|
||||
add_foreign_key "subprinciplitems", "subprincipleitemgroups"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user