2025-04-07 01:12:02 +00:00
|
|
|
package entity
|
|
|
|
|
|
2025-07-02 06:03:52 +00:00
|
|
|
import (
|
|
|
|
|
"github.com/google/uuid"
|
|
|
|
|
"time"
|
|
|
|
|
)
|
2025-04-07 01:12:02 +00:00
|
|
|
|
|
|
|
|
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
|
2025-07-02 06:03:52 +00:00
|
|
|
ClientId *uuid.UUID
|
2025-04-07 01:12:02 +00:00
|
|
|
CreatedAt time.Time
|
|
|
|
|
}
|