14 lines
338 B
Go
14 lines
338 B
Go
package domain
|
|
|
|
//Company reflects a company record of company table.
|
|
type Company struct {
|
|
ID uint `gorm:"column:company_id;primary_key"`
|
|
Code string `gorm:"column:company_code"`
|
|
Name string `gorm:"column:company_name"`
|
|
}
|
|
|
|
// TableName returns the name of the Company table
|
|
func (Company) TableName() string {
|
|
return "company"
|
|
}
|