Goondex/internal/model/movie.go
Stu Leak 16fb407a3c v0.1.0-dev4: Add web frontend with UI component library
- Implement full web interface with Go html/template server
- Add GX component library (buttons, dialogs, tables, forms, etc.)
- Create scene/performer/studio/movie detail and listing pages
- Add Adult Empire scraper for additional metadata sources
- Implement movie support with database schema
- Add import and sync services for data management
- Include comprehensive API and frontend documentation
- Add custom color scheme and responsive layout

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 10:47:30 -05:00

29 lines
1.1 KiB
Go

package model
import "time"
// Movie represents a full-length movie/DVD
type Movie struct {
ID int64 `json:"id"`
Title string `json:"title"`
Date string `json:"date,omitempty"` // Release date
StudioID *int64 `json:"studio_id,omitempty"`
Description string `json:"description,omitempty"`
Director string `json:"director,omitempty"`
Duration int `json:"duration,omitempty"` // Duration in minutes
ImagePath string `json:"image_path,omitempty"`
ImageURL string `json:"image_url,omitempty"`
BackImageURL string `json:"back_image_url,omitempty"` // Back cover
URL string `json:"url,omitempty"`
Source string `json:"source,omitempty"`
SourceID string `json:"source_id,omitempty"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
// Relationships
Scenes []Scene `json:"scenes,omitempty"`
Performers []Performer `json:"performers,omitempty"`
Tags []Tag `json:"tags,omitempty"`
Studio *Studio `json:"studio,omitempty"`
}