From 6752968824502bac7a552411c9f68111187ee339 Mon Sep 17 00:00:00 2001 From: Nathan Date: Wed, 10 Apr 2024 18:36:53 -0400 Subject: [PATCH] controller, service --- backend/src/models/portfolio.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 backend/src/models/portfolio.go diff --git a/backend/src/models/portfolio.go b/backend/src/models/portfolio.go new file mode 100644 index 00000000..6fb0fe1f --- /dev/null +++ b/backend/src/models/portfolio.go @@ -0,0 +1,17 @@ +package models + +import ( + "time" +) + +type Portfolio struct { + types.Model + ID int64 `json:"id"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` + UserID string `json:"user_id"` + DayGain float64 `json:"day_gain"` + DayGainPct float64 `json:"day_gain_pct"` + TotalGain float64 `json:"total_gain"` + TotalGainPct float64 `json:"total_gain_pct"` +}