feat: extends database schema with sync and creation timestamps
This commit is contained in:
parent
13ba132159
commit
5eab19c70e
3 changed files with 9 additions and 4 deletions
|
|
@ -1,10 +1,14 @@
|
|||
package database
|
||||
|
||||
import "time"
|
||||
|
||||
type FeedType string
|
||||
|
||||
type Feed struct {
|
||||
Name string
|
||||
Url string
|
||||
Name string
|
||||
Url string
|
||||
AddedAt *time.Time
|
||||
LastSyncedAt *time.Time
|
||||
}
|
||||
|
||||
func (f Feed) Insert() (int64, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue