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:"word_meaning"`
	Level                uint32           `db:"word_level"`
	Composition          []*m_kanji.Kanji `db:"-"`
	Alternatives         sql.NullString   `db:"word_alternative"`
	Readings             sql.NullString   `db:"word_reading"`
	Types                sql.NullString   `db:"word_type"`
	Sentences            sql.NullString   `db:"japanese_sentence"`
	SentenceTranslations sql.NullString   `db:"sentence_translation"`
	SentenceLanguage     sql.NullString   `db:"sentence_language"`
}

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 sql.NullTime `db:"unlock_date"`
	NextDate   sql.NullTime `db:"next_date"`
	BurnDate   sql.NullTime `db:"burn_date"`
	WordModel  Word         `db:"-"`
}

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