From 4f7f3e90111a7b1abc87c13925d419af20b6ca57 Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Thu, 24 Dec 2020 20:19:24 -0800 Subject: [PATCH] add ID field --- one/purchase/purchase.go | 1 + 1 file changed, 1 insertion(+) diff --git a/one/purchase/purchase.go b/one/purchase/purchase.go index 499f404..edf6973 100644 --- a/one/purchase/purchase.go +++ b/one/purchase/purchase.go @@ -42,6 +42,7 @@ var ( // Purchase stores information related to a purchase. type Purchase struct { + ID int64 // ID is a unique ID of Purchase and is stored in the database. BuyOrder *alpaca.Order SellOrder *alpaca.Order SellFilledYearDay int // The day of the year that the sale is made.