mirror of
https://github.com/ChronosX88/yans.git
synced 2024-11-25 04:42:18 +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"`
|
||
|
}
|