15 lines
478 B
Go
15 lines
478 B
Go
package tysc
|
|
|
|
import (
|
|
"gopkg.in/mgo.v2/bson"
|
|
)
|
|
|
|
// Position defines the data model for TYSC positions with id, name, description and sport.
|
|
type Position struct {
|
|
ID bson.ObjectId `json:"_id" bson:"_id,omitempty"`
|
|
Name string `json:"name" bson:"name"`
|
|
Description string `json:"description" bson:"description"`
|
|
Sport bson.ObjectId `json:"sport" bson:"sport,omitempty"`
|
|
Model string `json:"model" bson:"model,omitempty"`
|
|
}
|