mirror of
https://github.com/ChronosX88/yans.git
synced 2024-11-22 11:42:19 +00:00
17 lines
362 B
Go
17 lines
362 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"`
|
||
|
Header textproto.MIMEHeader `db:"-"`
|
||
|
Body string `db:"body"`
|
||
|
Thread sql.NullString `db:"thread"`
|
||
|
}
|