13 lines
458 B
Go
13 lines
458 B
Go
package entity
|
|
|
|
import "time"
|
|
|
|
type ActivityLogs struct {
|
|
ID uint `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
|
|
ActivityTypeId int `json:"activity_type_id" gorm:"type:int4"`
|
|
Url string `json:"url" gorm:"type:varchar"`
|
|
ArticleId *uint `json:"article_id" gorm:"type:int4"`
|
|
UserId *uint `json:"user_id" gorm:"type:int4"`
|
|
CreatedAt time.Time `json:"created_at" gorm:"default:now()"`
|
|
}
|