basic internal structure

This commit is contained in:
samantha42
2026-03-24 11:17:08 +01:00
parent 29b3c2dd6c
commit a9d4f09b62
14 changed files with 407 additions and 3 deletions

28
internal/model/company.go Normal file
View File

@@ -0,0 +1,28 @@
package model
type Currency struct {
ID int
Code string
Name string
}
type Company struct {
ID int
Name string
SharesOutstanding int
Price float64
CurrencyID int
Currency *Currency // populated on joins
}
type CompanyInput struct {
Name string `json:"name"`
SharesOutstanding int `json:"shares_outstanding"`
Price float64 `json:"price"`
CurrencyID int `json:"currency_id"`
}
type CurrencyInput struct {
Code string `json:"code"`
Name string `json:"name"`
}