22 lines
388 B
Go
22 lines
388 B
Go
package entity
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
"time"
|
|
)
|
|
|
|
type AuditTrails struct {
|
|
ID uint `gorm:"primaryKey"`
|
|
Method string
|
|
Path string
|
|
IP string
|
|
Status int
|
|
UserID *string
|
|
RequestHeaders string
|
|
RequestBody string
|
|
ResponseBody string
|
|
DurationMs int64
|
|
ClientId *uuid.UUID
|
|
CreatedAt time.Time
|
|
}
|