package l4g

import (
	"time"

	"github.com/google/uuid"
)

// Entry is a single structured log record. It is the framework-owned mirror of
// the application's log-entry model: field names, types, and order match, so an
// app can convert directly (e.g. models.LogEntry(entry)) when persisting via the
// database writer registered with SetDatabaseWriter.
type Entry struct {
	ID                uuid.UUID
	AppUserID         *uuid.UUID
	OrgID             *uuid.UUID
	Content           *string
	StructuredContent *string
	Category          int32
	LogType           int32
	Timestamp         time.Time
	IdentityID        *uuid.UUID
}
