2026-01-24 21:06:18 +01:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
"github.com/google/uuid"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// FileShareLink represents a public share link for a file
|
|
|
|
|
type FileShareLink struct {
|
|
|
|
|
ID uuid.UUID `json:"id" db:"id"`
|
|
|
|
|
Token string `json:"token" db:"token"`
|
|
|
|
|
FileID uuid.UUID `json:"file_id" db:"file_id"`
|
2026-01-24 22:54:50 +01:00
|
|
|
OrgID *uuid.UUID `json:"org_id,omitempty" db:"org_id"`
|
2026-01-24 21:06:18 +01:00
|
|
|
CreatedByUserID uuid.UUID `json:"created_by_user_id" db:"created_by_user_id"`
|
|
|
|
|
CreatedAt time.Time `json:"created_at" db:"created_at"`
|
|
|
|
|
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
|
|
|
|
|
ExpiresAt *time.Time `json:"expires_at,omitempty" db:"expires_at"`
|
|
|
|
|
IsRevoked bool `json:"is_revoked" db:"is_revoked"`
|
|
|
|
|
}
|