package models import ( "time" ) // ContentItem represents a piece of content in the database // This matches the structure used by the CLI client and JavaScript client type ContentItem struct { ID string `json:"id" db:"id"` SiteID string `json:"site_id" db:"site_id"` Value string `json:"value" db:"value"` Type string `json:"type" db:"type"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` } // ContentResponse represents the API response structure for multiple items type ContentResponse struct { Content []ContentItem `json:"content"` Error string `json:"error,omitempty"` } // CreateContentRequest represents the request structure for creating content type CreateContentRequest struct { ID string `json:"id" validate:"required"` Value string `json:"value" validate:"required"` Type string `json:"type" validate:"required,oneof=text markdown link"` } // UpdateContentRequest represents the request structure for updating content type UpdateContentRequest struct { Value string `json:"value" validate:"required"` }