Skip to content

Commit

Permalink
models: (drug) Fix Unique parsing issue with workaround
Browse files Browse the repository at this point in the history
See #92
  • Loading branch information
5HT2 committed Mar 20, 2023
1 parent c9573e5 commit 76290ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion models/drug.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"regexp"
"strconv"
"time"

"github.com/google/uuid"
)

var (
Expand All @@ -12,7 +14,7 @@ var (

type Drug struct {
Unique
Account Unique `json:"account_id" db:"account_id"` // References account that created this drug.
Account uuid.UUID `json:"account_id" db:"account_id"` // References account that created this drug.
Name string `json:"name" db:"drug_name"` // Required
Dosage int64 `json:"dosage" db:"drug_dosage"` // Optional
DosageUnit string `json:"dosage_unit" db:"drug_dosage_unit"` // Optional, uses "unknown" if unset
Expand Down

0 comments on commit 76290ca

Please sign in to comment.