2017-11-02 21:41:52 -07:00
|
|
|
package model
|
2017-10-26 14:36:52 -07:00
|
|
|
|
2017-11-03 15:41:26 -07:00
|
|
|
import (
|
|
|
|
"time"
|
2018-11-24 11:58:08 -08:00
|
|
|
|
|
|
|
"github.com/mxpv/podsync/pkg/api"
|
2017-11-03 15:41:26 -07:00
|
|
|
)
|
2017-10-26 14:36:52 -07:00
|
|
|
|
2018-12-02 13:27:31 -08:00
|
|
|
//noinspection SpellCheckingInspection
|
2017-10-26 14:36:52 -07:00
|
|
|
type Pledge struct {
|
|
|
|
PledgeID int64 `sql:",pk"`
|
|
|
|
PatronID int64
|
2018-12-02 13:27:31 -08:00
|
|
|
CreatedAt time.Time `dynamodbav:",unixtime"`
|
|
|
|
DeclinedSince time.Time `dynamodbav:",unixtime"`
|
2017-10-26 14:36:52 -07:00
|
|
|
AmountCents int
|
|
|
|
TotalHistoricalAmountCents int
|
|
|
|
OutstandingPaymentAmountCents int
|
|
|
|
IsPaused bool
|
|
|
|
}
|
2017-11-03 15:41:26 -07:00
|
|
|
|
2018-12-02 13:27:31 -08:00
|
|
|
//noinspection SpellCheckingInspection
|
2017-11-03 15:41:26 -07:00
|
|
|
type Feed struct {
|
2018-12-02 13:27:31 -08:00
|
|
|
FeedID int64 `sql:",pk" dynamodbav:"-"`
|
|
|
|
HashID string // Short human readable feed id for users
|
|
|
|
UserID string // Patreon user id
|
|
|
|
ItemID string
|
|
|
|
LinkType api.LinkType // Either group, channel or user
|
|
|
|
Provider api.Provider // Youtube or Vimeo
|
|
|
|
PageSize int // The number of episodes to return
|
|
|
|
Format api.Format
|
|
|
|
Quality api.Quality
|
|
|
|
FeatureLevel int
|
|
|
|
CreatedAt time.Time `dynamodbav:",unixtime"`
|
|
|
|
LastAccess time.Time `dynamodbav:",unixtime"`
|
|
|
|
ExpirationTime time.Time `sql:"-" dynamodbav:",unixtime"`
|
2019-01-06 19:13:13 -08:00
|
|
|
CoverArt string `dynamodbav:",omitempty"`
|
|
|
|
Explicit bool
|
2017-11-03 15:41:26 -07:00
|
|
|
}
|