vendor.go 393 B

123456789101112131415161718
  1. package models
  2. import (
  3. "github.com/jinzhu/gorm"
  4. )
  5. // Vendor vendor
  6. // vendor is those who make products
  7. type Vendor struct {
  8. gorm.Model
  9. // vendor name
  10. VendorName string `sql:"type:varchar(200);not null;"`
  11. // vendor key
  12. VendorKey string `sql:"type:varchar(200);not null;key;"`
  13. // vendor description
  14. VendorDescription string `sql:"type:text;not null;"`
  15. Products []Product
  16. }