mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-07-02 04:18:38 -04:00
Add lots of backend and back-frontend report infrastructure
This commit is contained in:
1
db.go
1
db.go
@ -22,6 +22,7 @@ func initDB() *gorp.DbMap {
|
||||
dbmap.AddTableWithName(Security{}, "securities").SetKeys(true, "SecurityId")
|
||||
dbmap.AddTableWithName(Transaction{}, "transactions").SetKeys(true, "TransactionId")
|
||||
dbmap.AddTableWithName(Split{}, "splits").SetKeys(true, "SplitId")
|
||||
dbmap.AddTableWithName(Report{}, "reports").SetKeys(true, "ReportId")
|
||||
|
||||
err = dbmap.CreateTablesIfNotExists()
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user