pejhancctv/models/Order_products.go

18 lines
499 B
Go
Raw Normal View History

2024-01-08 16:06:31 +03:30
package models
import "time"
type Order_products struct {
Order_products_id uint `gorm:"primaryKey"`
Order_id uint
Order Order `gorm:"references:Order_id"`
Product_id uint
Product Product `gorm:"references:Product_id"`
Price uint64
Quantity_ordered uint
Created_at time.Time
Updated_at time.Time `gorm:"default:null"`
Removed_at time.Time `gorm:"default:null"`
Is_removed bool `gorm:"default:false"`
}