feat: add audit log sqlc queries and generated code
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.30.0
|
||||
// sqlc v1.31.1
|
||||
|
||||
package db
|
||||
|
||||
@@ -47,6 +47,18 @@ type ApiToken struct {
|
||||
RevokedAt sql.NullTime `json:"revoked_at"`
|
||||
}
|
||||
|
||||
type AuditLog struct {
|
||||
ID string `json:"id"`
|
||||
OccurredAt time.Time `json:"occurred_at"`
|
||||
UserID sql.NullString `json:"user_id"`
|
||||
Action string `json:"action"`
|
||||
ResourceType sql.NullString `json:"resource_type"`
|
||||
ResourceID sql.NullString `json:"resource_id"`
|
||||
Ip sql.NullString `json:"ip"`
|
||||
UserAgent sql.NullString `json:"user_agent"`
|
||||
MetadataJson sql.NullString `json:"metadata_json"`
|
||||
}
|
||||
|
||||
type ContinueWatchingEntry struct {
|
||||
ID string `json:"id"`
|
||||
UserID string `json:"user_id"`
|
||||
@@ -58,6 +70,11 @@ type ContinueWatchingEntry struct {
|
||||
DurationSeconds sql.NullFloat64 `json:"duration_seconds"`
|
||||
}
|
||||
|
||||
type DataFix struct {
|
||||
ID string `json:"id"`
|
||||
AppliedAt time.Time `json:"applied_at"`
|
||||
}
|
||||
|
||||
type EpisodeAvailabilityCache struct {
|
||||
AnimeID int64 `json:"anime_id"`
|
||||
Data string `json:"data"`
|
||||
|
||||
Reference in New Issue
Block a user