Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Company ¶
type Company struct { ID uint `gorm:"primary_key" json:"id"` CompanyName string `json:"name"` CompanyLocalNumber string `json:"company_local_number"` CompanyLei string `json:"company_lei"` Country Country `json:"Country" gorm:"foreignkey:CountryId"` CountryId uint `sql:"DEFAULT:NULL"` Domain string `json:"domain"` CompanyType string `json:"company_type"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `sql:"index" json:"deleted_at"` }
type Country ¶
type Country struct { ID uint `gorm:"primary_key"` Name string `json:"name"` Iso2Code string `json:"iso2code"` Iso3Code string `json:"iso3code"` ContinentName string `json:"continent_name"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `sql:"index" json:"deleted_at"` }
type Fund ¶
type Fund struct { ID uint `gorm:"primary_key" json:"id"` FundName string `json:"fund_name"` FundNumber string `json:"fund_number"` ExecutiveBody Company `json:"executive_body" gorm:"foreignkey:ExecutiveBodyId"` ExecutiveBodyId uint `sql:"DEFAULT:NULL"` IsActive bool `json:"is_active"` CreatedAt time.Time `gorm:"primary_key" json:"created_at"` UpdatedAt time.Time `gorm:"primary_key" json:"updated_at"` DeletedAt *time.Time `sql:"index" json:"deleted_at"` }
type Instrument ¶
type Instrument struct { ID uint `gorm:"primary_key" json:"id"` Industry string `json:"industry"` InstrumentName string `json:"instrument_name"` InvestmentType string `json:"investment_type"` InstrumentNumber string `json:"instrument_number"` IssuerNumber Company `json:"issuer_number" gorm:"foreignkey:IssuerNumberId"` IssuerNumberId uint `sql:"DEFAULT:NULL"` Market Market `json:"Market" gorm:"foreignkey:MarketId"` MarketId uint `sql:"DEFAULT:NULL"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `sql:"index" json:"deleted_at"` }
func (Instrument) TableName ¶
func (Instrument) TableName() string
type InstrumentDateByCompany ¶
type InstrumentDateByCompany struct { ID uint `gorm:"primary_key" json:"id"` InvestingCompany Company `json:"invest_company" gorm:"foreignkey:InvestingCompanyId"` InvestingCompanyId uint `sql:"DEFAULT:NULL"` Currency string `json:"currency"` Duration float64 `json:"duration"` FairValue float64 `json:"fair_value"` InstrumentNumber Instrument `json:"instrument_number" gorm:"foreignkey:InstrumentNumberId"` InstrumentNumberId uint `sql:"DEFAULT:NULL"` Fund Fund `json:"fund_id" gorm:"foreignkey:FundId"` FundId uint `sql:"DEFAULT:NULL"` NominalValue float64 `json:"nominal_value"` Price float64 `json:"price"` PurchaseDate time.Time `json:"purchase_date" sql:"DEFAULT:NULL"` Rate float64 `json:"rate"` RateFundHolding float64 `json:"fund_rate_holding"` RateFundInstrumentType float64 `json:"rate_funding_instrument_type"` RateRegister float64 `json:"rate_register"` ReportDate time.Time `json:"report_date"` CreatedAt time.Time `json:"created_at" gorm:"default:CURRENT_TIMESTAMP"` UpdatedAt time.Time `json:"updated_at" gorm:"default:CURRENT_TIMESTAMP"` DeletedAt *time.Time `sql:"index" json:"deleted_at"` }
func (InstrumentDateByCompany) TableName ¶
func (InstrumentDateByCompany) TableName() string
type Market ¶
type Market struct { ID uint `gorm:"primary_key" json:"id"` MarketName string `json:"market_name"` MarketCode string `json:"market_code"` Country Country `json:"country" gorm:"foreignkey:CountryId"` CountryId uint `sql:"DEFAULT:NULL"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `sql:"index" json:"deleted_at"` }
Click to show internal directories.
Click to hide internal directories.