summaryrefslogtreecommitdiff
path: root/db/schema.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/schema.rb')
-rw-r--r--db/schema.rb20
1 files changed, 19 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb
index feb2fd0..d201f5a 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema[8.0].define(version: 2025_09_01_112954) do
+ActiveRecord::Schema[8.0].define(version: 2025_09_08_181147) do
create_table "beds", force: :cascade do |t|
t.integer "location", null: false
t.datetime "created_at", null: false
@@ -122,8 +122,26 @@ ActiveRecord::Schema[8.0].define(version: 2025_09_01_112954) do
t.index ["crop_nutrient_need_id"], name: "index_rafts_on_crop_nutrient_need_id"
end
+ create_table "target_allocations", force: :cascade do |t|
+ t.integer "target_id", null: false
+ t.integer "nutrient_profile_id", null: false
+ t.decimal "percentage"
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
+ t.index ["nutrient_profile_id"], name: "index_target_allocations_on_nutrient_profile_id"
+ t.index ["target_id"], name: "index_target_allocations_on_target_id"
+ end
+
+ create_table "targets", force: :cascade do |t|
+ t.string "name"
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
+ end
+
add_foreign_key "fertilizer_compositions", "fertilizer_components"
add_foreign_key "fertilizer_compositions", "fertilizer_products"
add_foreign_key "rafts", "beds"
add_foreign_key "rafts", "nutrient_profiles", column: "crop_nutrient_need_id"
+ add_foreign_key "target_allocations", "nutrient_profiles"
+ add_foreign_key "target_allocations", "targets"
end
Copyright 2019--2025 Marius PETER