mirror of
https://github.com/Dvorinka/Trackeep.git
synced 2026-06-03 20:12:58 +00:00
feat: migrate to DragonflyDB and clean up environment configuration
- Replace Redis with DragonflyDB for better performance and memory efficiency - Remove redundant environment variables (POSTGRES_*, ENCRYPTION_KEY, OAUTH_SERVICE_URL) - Consolidate database configuration to use single DB_* variables - Use JWT_SECRET for both JWT tokens and encryption - Remove PORT variable redundancy, use BACKEND_PORT consistently - Clean up docker-compose configurations for dev/prod consistency - Add DragonflyDB configuration with optimized memory usage - Remove redis.conf as it's no longer needed - Update health checks to use Redis-compatible CLI for DragonflyDB - Add missing VITE_API_URL to production frontend - Fix GitHub Actions to use correct go.sum path - Clean up development directories and unused files
This commit is contained in:
@@ -0,0 +1,115 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.30.0
|
||||
|
||||
package sqlc
|
||||
|
||||
import (
|
||||
"net/netip"
|
||||
|
||||
"github.com/jackc/pgx/v5/pgtype"
|
||||
)
|
||||
|
||||
type AuditLog struct {
|
||||
ID pgtype.UUID `json:"id"`
|
||||
UserID pgtype.UUID `json:"userId"`
|
||||
Action string `json:"action"`
|
||||
ResourceType string `json:"resourceType"`
|
||||
ResourceID pgtype.UUID `json:"resourceId"`
|
||||
OldValues []byte `json:"oldValues"`
|
||||
NewValues []byte `json:"newValues"`
|
||||
IpAddress *netip.Addr `json:"ipAddress"`
|
||||
UserAgent *string `json:"userAgent"`
|
||||
CreatedAt pgtype.Timestamp `json:"createdAt"`
|
||||
}
|
||||
|
||||
type Bookmark struct {
|
||||
ID pgtype.UUID `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Url string `json:"url"`
|
||||
Description *string `json:"description"`
|
||||
FaviconUrl *string `json:"faviconUrl"`
|
||||
ScreenshotUrl *string `json:"screenshotUrl"`
|
||||
UserID pgtype.UUID `json:"userId"`
|
||||
IsArchived *bool `json:"isArchived"`
|
||||
IsFavorite *bool `json:"isFavorite"`
|
||||
CreatedAt pgtype.Timestamp `json:"createdAt"`
|
||||
UpdatedAt pgtype.Timestamp `json:"updatedAt"`
|
||||
}
|
||||
|
||||
type BookmarkTag struct {
|
||||
BookmarkID pgtype.UUID `json:"bookmarkId"`
|
||||
TagID pgtype.UUID `json:"tagId"`
|
||||
}
|
||||
|
||||
type File struct {
|
||||
ID pgtype.UUID `json:"id"`
|
||||
Filename string `json:"filename"`
|
||||
OriginalName string `json:"originalName"`
|
||||
FileSize int64 `json:"fileSize"`
|
||||
MimeType *string `json:"mimeType"`
|
||||
FilePath string `json:"filePath"`
|
||||
ThumbnailPath *string `json:"thumbnailPath"`
|
||||
UserID pgtype.UUID `json:"userId"`
|
||||
CreatedAt pgtype.Timestamp `json:"createdAt"`
|
||||
UpdatedAt pgtype.Timestamp `json:"updatedAt"`
|
||||
}
|
||||
|
||||
type FileTag struct {
|
||||
FileID pgtype.UUID `json:"fileId"`
|
||||
TagID pgtype.UUID `json:"tagId"`
|
||||
}
|
||||
|
||||
type Note struct {
|
||||
ID pgtype.UUID `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Content *string `json:"content"`
|
||||
UserID pgtype.UUID `json:"userId"`
|
||||
CreatedAt pgtype.Timestamp `json:"createdAt"`
|
||||
UpdatedAt pgtype.Timestamp `json:"updatedAt"`
|
||||
}
|
||||
|
||||
type NoteTag struct {
|
||||
NoteID pgtype.UUID `json:"noteId"`
|
||||
TagID pgtype.UUID `json:"tagId"`
|
||||
}
|
||||
|
||||
type Tag struct {
|
||||
ID pgtype.UUID `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Color *string `json:"color"`
|
||||
UserID pgtype.UUID `json:"userId"`
|
||||
CreatedAt pgtype.Timestamp `json:"createdAt"`
|
||||
UpdatedAt pgtype.Timestamp `json:"updatedAt"`
|
||||
}
|
||||
|
||||
type Task struct {
|
||||
ID pgtype.UUID `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Description *string `json:"description"`
|
||||
Status *string `json:"status"`
|
||||
Priority *string `json:"priority"`
|
||||
DueDate pgtype.Timestamp `json:"dueDate"`
|
||||
UserID pgtype.UUID `json:"userId"`
|
||||
CreatedAt pgtype.Timestamp `json:"createdAt"`
|
||||
UpdatedAt pgtype.Timestamp `json:"updatedAt"`
|
||||
}
|
||||
|
||||
type TaskTag struct {
|
||||
TaskID pgtype.UUID `json:"taskId"`
|
||||
TagID pgtype.UUID `json:"tagId"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
ID pgtype.UUID `json:"id"`
|
||||
Email string `json:"email"`
|
||||
PasswordHash string `json:"passwordHash"`
|
||||
FirstName *string `json:"firstName"`
|
||||
LastName *string `json:"lastName"`
|
||||
AvatarUrl *string `json:"avatarUrl"`
|
||||
IsActive *bool `json:"isActive"`
|
||||
IsVerified *bool `json:"isVerified"`
|
||||
LastLogin pgtype.Timestamp `json:"lastLogin"`
|
||||
CreatedAt pgtype.Timestamp `json:"createdAt"`
|
||||
UpdatedAt pgtype.Timestamp `json:"updatedAt"`
|
||||
}
|
||||
Reference in New Issue
Block a user