feat 删除deleteAt字段

This commit is contained in:
timerzz 2024-08-27 14:19:31 +08:00
parent 1da1fd27d8
commit 68e2a21402
4 changed files with 12 additions and 24 deletions

View File

@ -2,8 +2,6 @@ package v2
import (
"time"
"gorm.io/gorm"
)
type Brand string
@ -17,7 +15,6 @@ type Article struct {
ID uint `gorm:"primary_key" json:"id"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt gorm.DeletedAt `gorm:"index"`
Name string `gorm:"index" json:"name"`

View File

@ -2,15 +2,12 @@ package v2
import (
"time"
"gorm.io/gorm"
)
type CalculateProcess struct {
ID uint `gorm:"primary_key" json:"id"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt gorm.DeletedAt `gorm:"index"`
//所有人ID
OwnerID uint `gorm:"index" json:"ownerID"`
// 所有者类型是provider还是providerArticle还是Seller还是sellerArticle

View File

@ -2,8 +2,6 @@ package v2
import (
"time"
"gorm.io/gorm"
)
type ProviderId string
@ -12,7 +10,6 @@ type Provider struct {
ID uint `gorm:"primary_key" json:"id"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt gorm.DeletedAt `gorm:"index"`
ProviderId ProviderId `gorm:"unique" json:"providerId"`
// 供应商的名称

View File

@ -2,8 +2,6 @@ package v2
import (
"time"
"gorm.io/gorm"
)
type SellerId string
@ -13,7 +11,6 @@ type Seller struct {
ID uint `gorm:"primary_key" json:"id"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt gorm.DeletedAt `gorm:"index"`
SellerId SellerId `gorm:"unique" json:"sellerId"`
// 出货商的名称