package storage

// Story is the core record for an ingested news item.
type Story struct {
	ID           int64
	GUID         string
	Headline     string
	Lede         string
	Content      string // full article text for reader mode (feed content:encoded or scraped body); "" when unavailable
	ImageURL     string
	ArticleURL   string
	URLCanonical string
	HeadlineNorm string
	Source       string
	Platforms    string // JSON array e.g. '["nintendo-switch","multi"]'
	Channel      string
	Classified   bool
	Paywalled    bool // source article is gated; ArticleURL may be an archive snapshot
	SeenAt       int64
	PublishedAt  int64 // from RSS pubDate/Atom published; 0 if missing. Future dates are clamped to SeenAt at ingest.
	Posted       bool  // true if this story has been posted to Matrix (joined from post_log)
}
