yans/internal/models/article.go

21 lines
458 B
Go
Raw Normal View History

2022-02-03 16:44:08 +00:00
package models
import (
"database/sql"
"github.com/jhillyerd/enmime"
2022-02-03 16:44:08 +00:00
"net/textproto"
"time"
)
type Article struct {
ID int `db:"id"`
CreatedAt time.Time `db:"created_at"`
HeaderRaw string `db:"header"`
Body string `db:"body"`
Thread sql.NullString `db:"thread"`
Header textproto.MIMEHeader `db:"-"`
Envelope *enmime.Envelope `db:"-"`
ArticleNumber int `db:"-"`
2022-02-03 16:44:08 +00:00
}