2017-02-10 18:52:07 +01:00
|
|
|
package storage
|
|
|
|
|
2017-02-10 22:00:26 +01:00
|
|
|
import (
|
|
|
|
"time"
|
2017-02-10 18:52:07 +01:00
|
|
|
|
2017-02-10 22:00:26 +01:00
|
|
|
"gopkg.in/mgo.v2/bson"
|
|
|
|
)
|
2017-02-10 18:52:07 +01:00
|
|
|
|
2017-02-10 22:00:26 +01:00
|
|
|
type Term struct {
|
|
|
|
ID bson.ObjectId `bson:"_id,omitempty"`
|
|
|
|
Slug string `bson:"slug"`
|
|
|
|
Language string `bson:"lang"`
|
|
|
|
Name string `bson:"name"`
|
|
|
|
CurrentRevisionID string `bson:"revision_id,omitempty"`
|
2017-02-11 23:13:16 +01:00
|
|
|
Redirect string `bson:"redirect,omitempty"`
|
2017-02-10 18:52:07 +01:00
|
|
|
}
|
|
|
|
|
2017-02-10 22:00:26 +01:00
|
|
|
type Revision struct {
|
|
|
|
ID bson.ObjectId `bson:"_id,omitempty"`
|
|
|
|
TermID string `bson:"term_id"`
|
|
|
|
AuthorIP string `bson:"author_ip"`
|
|
|
|
PublishDate time.Time `bson:"date"`
|
2017-02-13 22:21:57 +01:00
|
|
|
Summary string `bson:"summary,omitempty"`
|
2017-02-10 22:00:26 +01:00
|
|
|
Text string `bson:"text"`
|
2017-02-11 23:13:16 +01:00
|
|
|
HTML string `bson:"html,omitempty"`
|
2017-02-10 18:52:07 +01:00
|
|
|
}
|
2017-02-13 22:21:57 +01:00
|
|
|
|
|
|
|
type Talk struct {
|
|
|
|
ID bson.ObjectId `bson:"_id,omitempty"`
|
|
|
|
TermID string `bson:"term_id"`
|
|
|
|
Text string `bson:"text"`
|
|
|
|
HTML string `bson:"html,omitempty"`
|
|
|
|
}
|