24 lines
447 B
Go
24 lines
447 B
Go
package models
|
|
|
|
import "reflect"
|
|
|
|
const HMNProjectID = 1
|
|
|
|
var ProjectType = reflect.TypeOf(Project{})
|
|
|
|
type Project struct {
|
|
ID int `db:"id"`
|
|
|
|
Slug *string `db:"slug"` // TODO: Migrate these to NOT NULL
|
|
Name *string `db:"name"`
|
|
Blurb *string `db:"blurb"`
|
|
Description *string `db:"description"`
|
|
|
|
Color1 string `db:"color_1"`
|
|
Color2 string `db:"color_2"`
|
|
}
|
|
|
|
func (p *Project) IsHMN() bool {
|
|
return p.ID == HMNProjectID
|
|
}
|