models

package
v0.0.0-...-8519efd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kanji

type Kanji struct {
	ID           uint64         `db:"id"`
	Kanji        string         `db:"kanji"`
	Primary      string         `db:"kanji_meaning"`
	Level        uint32         `db:"kanji_level"`
	Alternatives sql.NullString `db:"kanji_alternative"`
	Onyomi       sql.NullString `db:"kanji_onyomi"`
	Kunyomi      sql.NullString `db:"kanji_kunyomi"`
}

type KanjiAlternative

type KanjiAlternative struct {
	ID          uint64 `db:"id"`
	KanjiID     uint64 `db:"kanji_id"`
	Alternative string `db:"kanji_alternative"`
}

type KanjiProgress

type KanjiProgress struct {
	ID         uint64       `db:"id"`
	KanjiID    uint64       `db:"kanji_id"`
	UserID     uint64       `db:"user_id"`
	SRSLevel   uint32       `db:"srs_level"`
	UnlockDate sql.NullTime `db:"unlock_date"`
	NextDate   sql.NullTime `db:"next_date"`
	BurnDate   sql.NullTime `db:"burn_date"`
	KanjiModel Kanji        `db:"-"`
}

type Kunyomi

type Kunyomi struct {
	ID      uint64 `db:"id"`
	KanjiID uint64 `db:"kanji_id"`
	Kunyomi string `db:"kanji_kunyomi"`
}

type Onyomi

type Onyomi struct {
	ID      uint64 `db:"id"`
	KanjiID uint64 `db:"kanji_id"`
	Onyomi  string `db:"kanji_onyomi"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL