mirror of
https://github.com/ChronosX88/yans.git
synced 2024-11-08 14:50:59 +00:00
19 lines
382 B
Go
19 lines
382 B
Go
package models
|
|
|
|
import (
|
|
"database/sql"
|
|
"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:"-"`
|
|
ArticleNumber int `db:"-"`
|
|
}
|