mirror of
https://github.com/nkanaev/yarr.git
synced 2025-09-13 09:55:36 +00:00
basic feed fetcher
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package storage
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
type ItemStatus int
|
||||
|
||||
@@ -18,8 +21,8 @@ type Item struct {
|
||||
Description string
|
||||
Content string
|
||||
Author string
|
||||
Date int64
|
||||
DateUpdated int64
|
||||
Date *time.Time
|
||||
DateUpdated *time.Time
|
||||
Status ItemStatus
|
||||
Image string
|
||||
}
|
||||
|
@@ -35,8 +35,8 @@ create table if not exists items (
|
||||
description text,
|
||||
content text,
|
||||
author text,
|
||||
date integer,
|
||||
date_updated integer,
|
||||
date datetime,
|
||||
date_updated datetime,
|
||||
status integer,
|
||||
image text
|
||||
);
|
||||
|
Reference in New Issue
Block a user