aboutsummaryrefslogtreecommitdiff
path: root/modules/grils/gril.go
blob: edf25a95fbf53cfbded4c2de92ff689bf97c8043 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package grils

import (
	"database/sql"
	"github.com/lib/pq"
	"time"
)

type DataSource int

const (
	DataSourceACD DataSource = iota
	DataSourceAniDB
)

type Gril struct {
	ID         int
	KanjiName  string
	RomajiName string
	OtherNames []string
	Age        sql.NullInt64
	Birthday   pq.NullTime
	Tags       []string
	ForeignIDs map[DataSource]int
	UpdatedAt  time.Time
	Lists      []int
}