16 lines
545 B
Go
16 lines
545 B
Go
package entity
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type ArticleApprovals struct {
|
|
ID uint `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
|
|
ArticleId uint `json:"article_id" gorm:"type:int4"`
|
|
ApprovalBy uint `json:"approval_by" gorm:"type:int4"`
|
|
StatusId int `json:"status_id" gorm:"type:int4"`
|
|
Message string `json:"message" gorm:"type:varchar"`
|
|
ApprovalAtLevel *int `json:"approval_at_level" gorm:"type:int4"`
|
|
CreatedAt time.Time `json:"created_at" gorm:"default:now()"`
|
|
}
|