changes to model

This commit is contained in:
samantha42
2026-03-26 08:39:42 +01:00
parent ff7b41e2a8
commit 3f878c1dc0
15 changed files with 119 additions and 195 deletions

View File

@@ -30,8 +30,6 @@ func main() {
}
database.InitDB(db)
database.MigrateAddUniqueToRevenueEntries(db)
database.MigrateTradeCode(db)
fmt.Println("Connected to SQLite database")
http.HandleFunc("/health", handlers.HealthHandler(db))
@@ -47,7 +45,8 @@ func main() {
http.HandleFunc("GET /company/revenue/categories", handlers.GetCompanyRevenueCategories(db))
// Currency
http.HandleFunc("GET /currencies", handlers.GetCurrenciesHandler(db))
http.HandleFunc("GET /currency/list", handlers.GetCurrenciesHandler(db))
http.HandleFunc("POST /currency/add", handlers.AddCurrencyHandler(db))
// Revenue
http.HandleFunc("POST /add/revenue/entry", handlers.AddRevenueEntryHandler(db))