aboutsummaryrefslogtreecommitdiff
path: root/modules/grils/gril.go
blob: 9fd3be513f0594fc9742b98c6561df623958997e (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
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
}