14 lines
398 B
Go
14 lines
398 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Entry struct {
|
|
ID uint32 `gorm:"primaryKey;autoIncrement"`
|
|
ContentTypeID uint32 `gorm:"not null;index"`
|
|
Data string `gorm:"type:text;not null"`
|
|
CreatedBy uint32 `gorm:"not null"`
|
|
UpdatedBy uint32 `gorm:"not null"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
|
}
|