package models import "time" const ( RootBundleName = "_root" ) // NameProvenance encodes where the name came from, whether it was set by the user or autogenerated in some way type NameProvenance int const ( UserNameProvenance NameProvenance = iota TitleNameProvenance NameProvenance = iota DateNameProvenance NameProvenance = iota ) type PageRole int const ( NormalPageRole PageRole = iota IndexPageRole ) type Bundle struct { ID int64 SiteID int64 Name string CreatedAt time.Time UpdatedAt time.Time } type Page struct { ID int64 SiteID int64 BundleID int64 Name string NameProvenance NameProvenance Title string Role PageRole Body string State PostState PageTypeID int64 Props []byte PublishDate time.Time CreatedAt time.Time UpdatedAt time.Time } type BundleInfo struct { BundleID int64 PageCount int IndexPageID int64 }