package models import "time" type AuditLog struct { ID uint `json:"id" gorm:"primaryKey;autoIncrement"` Action string `json:"action" gorm:"type:varchar(100);not null"` ResourceType string `json:"resource_type" gorm:"type:varchar(100);not null"` ResourceID string `json:"resource_id" gorm:"type:varchar(255)"` Operator string `json:"operator" gorm:"type:varchar(255);not null"` IPAddress string `json:"ip_address" gorm:"type:varchar(45)"` Details string `json:"details" gorm:"type:text"` CreatedAt time.Time `json:"created_at" gorm:"not null;autoCreateTime"` }