postgresql
This commit is contained in:
21
gorm/good.go
Normal file
21
gorm/good.go
Normal file
@ -0,0 +1,21 @@
|
||||
package gorm
|
||||
|
||||
import "time"
|
||||
|
||||
type Good struct {
|
||||
ID string
|
||||
Name string
|
||||
IDC int
|
||||
IDR int
|
||||
Goodlink string
|
||||
Seller string
|
||||
Sellerlink string
|
||||
Sellerrating int
|
||||
Sold int
|
||||
Price float64
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
func (Good) TableName() string {
|
||||
return "goods"
|
||||
}
|
Reference in New Issue
Block a user