mirror of
https://github.com/ChronosX88/yans.git
synced 2024-11-09 23:21:01 +00:00
21 lines
458 B
Go
21 lines
458 B
Go
package models
|
|
|
|
import (
|
|
"database/sql"
|
|
"github.com/jhillyerd/enmime"
|
|
"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:"-"`
|
|
}
|