feat 删除deleteAt字段
This commit is contained in:
parent
1da1fd27d8
commit
68e2a21402
@ -2,8 +2,6 @@ package v2
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Brand string
|
type Brand string
|
||||||
@ -14,10 +12,9 @@ const (
|
|||||||
|
|
||||||
// Article 商品
|
// Article 商品
|
||||||
type Article struct {
|
type Article struct {
|
||||||
ID uint `gorm:"primary_key" json:"id"`
|
ID uint `gorm:"primary_key" json:"id"`
|
||||||
CreatedAt time.Time `json:"createdAt"`
|
CreatedAt time.Time `json:"createdAt"`
|
||||||
UpdatedAt time.Time `json:"updatedAt"`
|
UpdatedAt time.Time `json:"updatedAt"`
|
||||||
DeletedAt gorm.DeletedAt `gorm:"index"`
|
|
||||||
|
|
||||||
Name string `gorm:"index" json:"name"`
|
Name string `gorm:"index" json:"name"`
|
||||||
|
|
||||||
|
@ -2,15 +2,12 @@ package v2
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type CalculateProcess struct {
|
type CalculateProcess struct {
|
||||||
ID uint `gorm:"primary_key" json:"id"`
|
ID uint `gorm:"primary_key" json:"id"`
|
||||||
CreatedAt time.Time `json:"createdAt"`
|
CreatedAt time.Time `json:"createdAt"`
|
||||||
UpdatedAt time.Time `json:"updatedAt"`
|
UpdatedAt time.Time `json:"updatedAt"`
|
||||||
DeletedAt gorm.DeletedAt `gorm:"index"`
|
|
||||||
//所有人ID
|
//所有人ID
|
||||||
OwnerID uint `gorm:"index" json:"ownerID"`
|
OwnerID uint `gorm:"index" json:"ownerID"`
|
||||||
// 所有者类型,是provider还是providerArticle还是Seller还是sellerArticle
|
// 所有者类型,是provider还是providerArticle还是Seller还是sellerArticle
|
||||||
|
@ -2,17 +2,14 @@ package v2
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProviderId string
|
type ProviderId string
|
||||||
|
|
||||||
type Provider struct {
|
type Provider struct {
|
||||||
ID uint `gorm:"primary_key" json:"id"`
|
ID uint `gorm:"primary_key" json:"id"`
|
||||||
CreatedAt time.Time `json:"createdAt"`
|
CreatedAt time.Time `json:"createdAt"`
|
||||||
UpdatedAt time.Time `json:"updatedAt"`
|
UpdatedAt time.Time `json:"updatedAt"`
|
||||||
DeletedAt gorm.DeletedAt `gorm:"index"`
|
|
||||||
|
|
||||||
ProviderId ProviderId `gorm:"unique" json:"providerId"`
|
ProviderId ProviderId `gorm:"unique" json:"providerId"`
|
||||||
// 供应商的名称
|
// 供应商的名称
|
||||||
|
@ -2,18 +2,15 @@ package v2
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type SellerId string
|
type SellerId string
|
||||||
|
|
||||||
// Seller 出货商
|
// Seller 出货商
|
||||||
type Seller struct {
|
type Seller struct {
|
||||||
ID uint `gorm:"primary_key" json:"id"`
|
ID uint `gorm:"primary_key" json:"id"`
|
||||||
CreatedAt time.Time `json:"createdAt"`
|
CreatedAt time.Time `json:"createdAt"`
|
||||||
UpdatedAt time.Time `json:"updatedAt"`
|
UpdatedAt time.Time `json:"updatedAt"`
|
||||||
DeletedAt gorm.DeletedAt `gorm:"index"`
|
|
||||||
|
|
||||||
SellerId SellerId `gorm:"unique" json:"sellerId"`
|
SellerId SellerId `gorm:"unique" json:"sellerId"`
|
||||||
// 出货商的名称
|
// 出货商的名称
|
||||||
|
Loading…
Reference in New Issue
Block a user