13 lines
449 B
Go
13 lines
449 B
Go
package entity
|
|
|
|
import "time"
|
|
|
|
type ArticleCategoryDetails struct {
|
|
ID uint `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
|
|
ArticleId uint `json:"article_id" gorm:"type:int4"`
|
|
CategoryId int `json:"category_id" gorm:"type:int4"`
|
|
IsActive bool `json:"is_active" gorm:"type:bool"`
|
|
CreatedAt time.Time `json:"created_at" gorm:"default:now()"`
|
|
UpdatedAt time.Time `json:"updated_at" gorm:"default:now()"`
|
|
}
|