package entity import ( "time" ) // This links a source to a discord webhook. // It is owned by a user so they can remove the link type AlertDiscordEntity struct { ID int64 CreatedAt time.Time UpdatedAt time.Time DeletedAt time.Time UserID int64 SourceID int64 DiscordWebHookId int64 } type ArticleEntity struct { ID int64 CreatedAt time.Time UpdatedAt time.Time DeletedAt time.Time SourceID int64 Tags string Title string Url string PubDate time.Time IsVideo bool Thumbnail string Description string AuthorName string AuthorImageUrl string } type DiscordQueueEntity struct { ID int64 CreatedAt time.Time UpdatedAt time.Time DeletedAt time.Time ArticleId int64 SourceId int64 } type DiscordWebHookEntity struct { ID int64 CreatedAt time.Time UpdatedAt time.Time DeletedAt time.Time UserID int64 Url string Server string Channel string Enabled bool } type IconEntity struct { ID int64 CreatedAt time.Time UpdatedAt time.Time DeletedAt time.Time FileName string Site string } type SettingEntity struct { ID int64 CreatedAt time.Time UpdatedAt time.Time DeletedAt time.Time Key string Value string Options string } type SourceEntity struct { ID int64 CreatedAt time.Time UpdatedAt time.Time DeletedAt time.Time // Who will collect from it. Used // domain.SourceCollector... Source string // Human Readable value to state what is getting collected DisplayName string // Tells the parser where to look for data Url string // Static tags for this defined record Tags string // If the record is disabled, then it will be skipped on processing Enabled bool } //type SubscriptionEntity struct { // ID int64 // CreatedAt time.Time // UpdatedAt time.Time // DeletedAt time.Time // UserID int64 // SourceID int64 // //SourceType string // //SourceName string // DiscordID int64 // //DiscordName string //} // This defines what sources a user wants to follow. // These will show up for the user as a front page type UserSourceSubscriptionEntity struct { ID int64 CreatedAt time.Time UpdatedAt time.Time DeletedAt time.Time UserID int64 SourceID int64 } type UserEntity struct { ID int64 CreatedAt time.Time UpdatedAt time.Time DeletedAt time.Time Username string Hash string Scopes string SessionToken string } type RefreshTokenEntity struct { ID int64 CreatedAt time.Time UpdatedAt time.Time DeletedAt time.Time Username string Token string }