mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
19 lines
469 B
Go
19 lines
469 B
Go
package entities
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type AuditLog struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
TableName string `gorm:"size:100;not null"`
|
|
RecordId uint `gorm:"not null"`
|
|
Action string `gorm:"size:30;not null"`
|
|
BeforeData string `gorm:"type:jsonb"`
|
|
AfterData string `gorm:"type:jsonb"`
|
|
ChangedBy uint `gorm:"not null"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
|
|
User *User `gorm:"foreignKey:ChangedBy;references:Id"`
|
|
}
|