13 lines
177 B
Go
13 lines
177 B
Go
![]() |
package model
|
||
|
|
||
|
import (
|
||
|
"github.com/jinzhu/gorm"
|
||
|
)
|
||
|
|
||
|
type Product struct {
|
||
|
gorm.Model
|
||
|
Name string
|
||
|
Company Company
|
||
|
CompanyID uint
|
||
|
Code string `gorm:"unique; unique_index"`
|
||
|
}
|