package audit

import (
	"time"

	"github.com/tidbcloud/devops/models/base"
)

type AuditLog struct {
	base.Base

	Type      string     `gorm:"type:VARCHAR(255);not null"`
	ObjectID  string     `gorm:"type:VARCHAR(255);index:idx_obj_id;not null"`
	Operator  string     `gorm:"type:VARCHAR(255);not null"`
	Operation string     `gorm:"type:VARCHAR(255);not null"`
	OperateAt *time.Time `gorm:"type:TIMESTAMP"`
	Details   []byte     `gorm:"type:JSON"`
}
