postgresql

This commit is contained in:
2023-12-20 23:09:12 +03:00
parent 872217d845
commit 89046d130c
14 changed files with 336 additions and 4 deletions

21
gorm/good.go Normal file
View 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"
}