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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sentence

type Sentence struct {
	ID           uint64                `db:"id"`
	WordID       uint64                `db:"word_id"`
	Origin       string                `db:"origin"`
	Translations []SentenceTranslation `db:"-"`
}

type SentenceTranslation

type SentenceTranslation struct {
	ID          uint64 `db:"id"`
	SentenceID  uint64 `db:"sentence_id"`
	Language    uint32 `db:"language"`
	Translation string `db:"translation"`
}

type Word

type Word struct {
	ID           uint64         `db:"id"`
	Word         string         `db:"word"`
	Primary      string         `db:"primary"`
	Level        uint32         `db:"level"`
	Composition  []models.Kanji `db:"-"`
	Alternatives []string       `db:"-"`
	Readings     []string       `db:"-"`
	Types        []string       `db:"-"`
	Sentences    []Sentence     `db:"-"`
}

type WordAlternative

type WordAlternative struct {
	ID          uint64 `db:"id"`
	WordID      uint64 `db:"word_id"`
	Alternative string `db:"alternative"`
}

type WordProgress

type WordProgress struct {
	ID         uint64    `db:"id"`
	WordID     uint64    `db:"word_id"`
	UserID     uint64    `db:"user_id"`
	SRSLevel   uint32    `db:"srs_level"`
	UnlockDate time.Time `db:"unlock_date"`
	NextDate   time.Time `db:"next_date"`
	BurnDate   time.Time `db:"burn_date"`
}

type WordReading

type WordReading struct {
	ID      uint64 `db:"id"`
	WordID  uint64 `db:"word_id"`
	Reading string `db:"reading"`
}

type WordType

type WordType struct {
	ID     uint64 `db:"id"`
	WordID uint64 `db:"word_id"`
	Type   string `db:"type"`
}

Jump to

Keyboard shortcuts

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