diff options
| author | Marius Peter <dev@marius-peter.com> | 2025-11-01 18:08:28 +0100 | 
|---|---|---|
| committer | Marius Peter <dev@marius-peter.com> | 2025-11-01 18:08:28 +0100 | 
| commit | 56985d215b2d3665937d5675bd3f52df3ee15109 (patch) | |
| tree | 395ed59ebcf7a4ed5d51714fb864758f88574cbb /models | |
| parent | 7fcdf1c402ea3db38147d1aa12eb5b9bd5b3e592 (diff) | |
Hydrate nutrient values for fertilizer product structs.
Diffstat (limited to 'models')
| -rw-r--r-- | models/fertilizer-product.rkt | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/models/fertilizer-product.rkt b/models/fertilizer-product.rkt index 409d746..abaf77a 100644 --- a/models/fertilizer-product.rkt +++ b/models/fertilizer-product.rkt @@ -5,6 +5,8 @@   fertilizer-product   fertilizer-product?   fertilizer-product-id fertilizer-product-brand-name + (rename-out +  [fertilizer-product-nutrient-values fertilizer-product-values])   ;; SQL CRUD   (contract-out    [create-fertilizer-product! (->* (string? @@ -28,7 +30,7 @@           "nutrient.rkt")  ;; Instances of this struct are persisted in the fertilizer_products table. -(struct fertilizer-product (id canonical-name brand-name) #:transparent) +(struct fertilizer-product (id canonical-name nutrient-values brand-name) #:transparent)  ;; CREATE  |