v2
This commit is contained in:
10
internal/erpserver/model/system/category.go
Normal file
10
internal/erpserver/model/system/category.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package system
|
||||
|
||||
type Category struct {
|
||||
ID int32 `json:"id" gorm:"primaryKey;autoIncrement;not null"`
|
||||
Name string `json:"name" gorm:"type:varchar(200);not null;uniqueIndex"`
|
||||
}
|
||||
|
||||
func (Category) TableName() string {
|
||||
return "categories"
|
||||
}
|
||||
Reference in New Issue
Block a user