model2

package
v0.0.0-...-5b4c5eb Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventLogEmailEventClick     string = "click"
	EventLogEmailEventDelivered string = "delivered"
	EventLogEmailEventOpen      string = "open"
	EventLogEmailEventDeferred  string = "deferred"
	EventLogEmailEventDropped   string = "dropped"
	EventLogEmailEventBounce    string = "bounce"
	EventLogEmailEventBlock     string = "block"
)

Enum values for EventLogEmailEvent

View Source
const (
	EventLogEmailEmailTypeNewLessonNotifier string = "new_lesson_notifier"
	EventLogEmailEmailTypeFollowReminder    string = "follow_reminder"
	EventLogEmailEmailTypeRegistration      string = "registration"
)

Enum values for EventLogEmailEmailType

View Source
const (
	LessonStatusFinished  string = "finished"
	LessonStatusReserved  string = "reserved"
	LessonStatusAvailable string = "available"
	LessonStatusCancelled string = "cancelled"
)

Enum values for LessonStatus

View Source
const (
	LessonStatusLogStatusFinished  string = "finished"
	LessonStatusLogStatusReserved  string = "reserved"
	LessonStatusLogStatusAvailable string = "available"
	LessonStatusLogStatusCancelled string = "cancelled"
)

Enum values for LessonStatusLogStatus

View Source
const (
	StatDailyNotificationEventEventClick     string = "click"
	StatDailyNotificationEventEventDelivered string = "delivered"
	StatDailyNotificationEventEventOpen      string = "open"
	StatDailyNotificationEventEventDeferred  string = "deferred"
	StatDailyNotificationEventEventDropped   string = "dropped"
	StatDailyNotificationEventEventBounce    string = "bounce"
	StatDailyNotificationEventEventBlock     string = "block"
)

Enum values for StatDailyNotificationEventEvent

View Source
const (
	StatNewLessonNotifierEventClick     string = "click"
	StatNewLessonNotifierEventDelivered string = "delivered"
	StatNewLessonNotifierEventOpen      string = "open"
	StatNewLessonNotifierEventDeferred  string = "deferred"
	StatNewLessonNotifierEventDropped   string = "dropped"
	StatNewLessonNotifierEventBounce    string = "bounce"
	StatNewLessonNotifierEventBlock     string = "block"
)

Enum values for StatNewLessonNotifierEvent

View Source
const (
	TeacherGenderFemale string = "female"
	TeacherGenderMale   string = "male"
	TeacherGenderOther  string = "other"
)

Enum values for TeacherGender

View Source
const (
	EmailTypeNewLessonNotifier = "new_lesson_notifier"
	EmailTypeFollowReminder    = "follow_reminder"
	EmailTypeRegistration      = "registration"
)
View Source
const (
	GAMeasurementEventCategoryEmail            = "email"
	GAMeasurementEventCategoryUser             = "user"
	GAMeasurementEventCategoryFollowingTeacher = "followingTeacher"
)
View Source
const (
	DBDateFormat     = "2006-01-02"
	DBDatetimeFormat = "2006-01-02 15:04:05"
)
View Source
const (
	StatDailyUserNotificationEventEventOpen string = "open"
)

Enum values for StatDailyUserNotificationEventEvent

View Source
const UserAPITokenExpiration = time.Hour * 24 * 30

Variables

View Source
var ErrSyncFail = errors.New("model2: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var EventLogEmailColumns = struct {
	ID         string
	Datetime   string
	Event      string
	EmailType  string
	UserID     string
	UserAgent  string
	TeacherIds string
	URL        string
}{
	ID:         "id",
	Datetime:   "datetime",
	Event:      "event",
	EmailType:  "email_type",
	UserID:     "user_id",
	UserAgent:  "user_agent",
	TeacherIds: "teacher_ids",
	URL:        "url",
}
View Source
var EventLogEmailRels = struct {
}{}

EventLogEmailRels is where relationship names are stored.

View Source
var EventLogEmailTableColumns = struct {
	ID         string
	Datetime   string
	Event      string
	EmailType  string
	UserID     string
	UserAgent  string
	TeacherIds string
	URL        string
}{
	ID:         "event_log_email.id",
	Datetime:   "event_log_email.datetime",
	Event:      "event_log_email.event",
	EmailType:  "event_log_email.email_type",
	UserID:     "event_log_email.user_id",
	UserAgent:  "event_log_email.user_agent",
	TeacherIds: "event_log_email.teacher_ids",
	URL:        "event_log_email.url",
}
View Source
var EventLogEmailWhere = struct {
	ID         whereHelperuint
	Datetime   whereHelpertime_Time
	Event      whereHelperstring
	EmailType  whereHelperstring
	UserID     whereHelperuint
	UserAgent  whereHelperstring
	TeacherIds whereHelperstring
	URL        whereHelperstring
}{
	ID:         whereHelperuint{/* contains filtered or unexported fields */},
	Datetime:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	Event:      whereHelperstring{/* contains filtered or unexported fields */},
	EmailType:  whereHelperstring{/* contains filtered or unexported fields */},
	UserID:     whereHelperuint{/* contains filtered or unexported fields */},
	UserAgent:  whereHelperstring{/* contains filtered or unexported fields */},
	TeacherIds: whereHelperstring{/* contains filtered or unexported fields */},
	URL:        whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var FlashMessageColumns = struct {
	ID        string
	Value     string
	ExpiredAt string
}{
	ID:        "id",
	Value:     "value",
	ExpiredAt: "expired_at",
}
View Source
var FlashMessageRels = struct {
}{}

FlashMessageRels is where relationship names are stored.

View Source
var FlashMessageTableColumns = struct {
	ID        string
	Value     string
	ExpiredAt string
}{
	ID:        "flash_message.id",
	Value:     "flash_message.value",
	ExpiredAt: "flash_message.expired_at",
}
View Source
var FlashMessageWhere = struct {
	ID        whereHelperstring
	Value     whereHelpertypes_JSON
	ExpiredAt whereHelpertime_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	Value:     whereHelpertypes_JSON{/* contains filtered or unexported fields */},
	ExpiredAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var FollowingTeacherColumns = struct {
	UserID    string
	TeacherID string
	CreatedAt string
	UpdatedAt string
}{
	UserID:    "user_id",
	TeacherID: "teacher_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var FollowingTeacherRels = struct {
}{}

FollowingTeacherRels is where relationship names are stored.

View Source
var FollowingTeacherTableColumns = struct {
	UserID    string
	TeacherID string
	CreatedAt string
	UpdatedAt string
}{
	UserID:    "following_teacher.user_id",
	TeacherID: "following_teacher.teacher_id",
	CreatedAt: "following_teacher.created_at",
	UpdatedAt: "following_teacher.updated_at",
}
View Source
var FollowingTeacherWhere = struct {
	UserID    whereHelperuint
	TeacherID whereHelperuint
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	UserID:    whereHelperuint{/* contains filtered or unexported fields */},
	TeacherID: whereHelperuint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var LessonColumns = struct {
	ID        string
	TeacherID string
	Datetime  string
	Status    string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	TeacherID: "teacher_id",
	Datetime:  "datetime",
	Status:    "status",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var LessonRels = struct {
}{}

LessonRels is where relationship names are stored.

View Source
var LessonStatusLogColumns = struct {
	ID        string
	LessonID  string
	Status    string
	CreatedAt string
}{
	ID:        "id",
	LessonID:  "lesson_id",
	Status:    "status",
	CreatedAt: "created_at",
}
View Source
var LessonStatusLogRels = struct {
}{}

LessonStatusLogRels is where relationship names are stored.

View Source
var LessonStatusLogTableColumns = struct {
	ID        string
	LessonID  string
	Status    string
	CreatedAt string
}{
	ID:        "lesson_status_log.id",
	LessonID:  "lesson_status_log.lesson_id",
	Status:    "lesson_status_log.status",
	CreatedAt: "lesson_status_log.created_at",
}
View Source
var LessonStatusLogWhere = struct {
	ID        whereHelperuint64
	LessonID  whereHelperuint64
	Status    whereHelperstring
	CreatedAt whereHelpertime_Time
}{
	ID:        whereHelperuint64{/* contains filtered or unexported fields */},
	LessonID:  whereHelperuint64{/* contains filtered or unexported fields */},
	Status:    whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var LessonStatuses = goenum.EnumerateStruct(&LessonStatus{
	Finished:  1,
	Reserved:  2,
	Available: 3,
	Cancelled: 4,
})
View Source
var LessonTableColumns = struct {
	ID        string
	TeacherID string
	Datetime  string
	Status    string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "lesson.id",
	TeacherID: "lesson.teacher_id",
	Datetime:  "lesson.datetime",
	Status:    "lesson.status",
	CreatedAt: "lesson.created_at",
	UpdatedAt: "lesson.updated_at",
}
View Source
var LessonWhere = struct {
	ID        whereHelperuint64
	TeacherID whereHelperuint
	Datetime  whereHelpertime_Time
	Status    whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	ID:        whereHelperuint64{/* contains filtered or unexported fields */},
	TeacherID: whereHelperuint{/* contains filtered or unexported fields */},
	Datetime:  whereHelpertime_Time{/* contains filtered or unexported fields */},
	Status:    whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var MCountryColumns = struct {
	ID        string
	Name      string
	NameJa    string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Name:      "name",
	NameJa:    "name_ja",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var MCountryRels = struct {
}{}

MCountryRels is where relationship names are stored.

View Source
var MCountryTableColumns = struct {
	ID        string
	Name      string
	NameJa    string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "m_country.id",
	Name:      "m_country.name",
	NameJa:    "m_country.name_ja",
	CreatedAt: "m_country.created_at",
	UpdatedAt: "m_country.updated_at",
}
View Source
var MCountryWhere = struct {
	ID        whereHelperuint16
	Name      whereHelperstring
	NameJa    whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	ID:        whereHelperuint16{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	NameJa:    whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var MPlanColumns = struct {
	ID                   string
	Name                 string
	InternalName         string
	StripeTestProductID  string
	Price                string
	NotificationInterval string
	ShowAd               string
	MaxFollowingTeacher  string
	CreatedAt            string
	UpdatedAt            string
}{
	ID:                   "id",
	Name:                 "name",
	InternalName:         "internal_name",
	StripeTestProductID:  "stripe_test_product_id",
	Price:                "price",
	NotificationInterval: "notification_interval",
	ShowAd:               "show_ad",
	MaxFollowingTeacher:  "max_following_teacher",
	CreatedAt:            "created_at",
	UpdatedAt:            "updated_at",
}
View Source
var MPlanRels = struct {
}{}

MPlanRels is where relationship names are stored.

View Source
var MPlanTableColumns = struct {
	ID                   string
	Name                 string
	InternalName         string
	StripeTestProductID  string
	Price                string
	NotificationInterval string
	ShowAd               string
	MaxFollowingTeacher  string
	CreatedAt            string
	UpdatedAt            string
}{
	ID:                   "m_plan.id",
	Name:                 "m_plan.name",
	InternalName:         "m_plan.internal_name",
	StripeTestProductID:  "m_plan.stripe_test_product_id",
	Price:                "m_plan.price",
	NotificationInterval: "m_plan.notification_interval",
	ShowAd:               "m_plan.show_ad",
	MaxFollowingTeacher:  "m_plan.max_following_teacher",
	CreatedAt:            "m_plan.created_at",
	UpdatedAt:            "m_plan.updated_at",
}
View Source
var MPlanWhere = struct {
	ID                   whereHelperuint8
	Name                 whereHelperstring
	InternalName         whereHelperstring
	StripeTestProductID  whereHelpernull_String
	Price                whereHelperint32
	NotificationInterval whereHelperuint8
	ShowAd               whereHelperuint8
	MaxFollowingTeacher  whereHelperuint8
	CreatedAt            whereHelpertime_Time
	UpdatedAt            whereHelpertime_Time
}{
	ID:                   whereHelperuint8{/* contains filtered or unexported fields */},
	Name:                 whereHelperstring{/* contains filtered or unexported fields */},
	InternalName:         whereHelperstring{/* contains filtered or unexported fields */},
	StripeTestProductID:  whereHelpernull_String{/* contains filtered or unexported fields */},
	Price:                whereHelperint32{/* contains filtered or unexported fields */},
	NotificationInterval: whereHelperuint8{/* contains filtered or unexported fields */},
	ShowAd:               whereHelperuint8{/* contains filtered or unexported fields */},
	MaxFollowingTeacher:  whereHelperuint8{/* contains filtered or unexported fields */},
	CreatedAt:            whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:            whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var NotificationTimeSpanColumns = struct {
	UserID    string
	Number    string
	FromTime  string
	ToTime    string
	CreatedAt string
}{
	UserID:    "user_id",
	Number:    "number",
	FromTime:  "from_time",
	ToTime:    "to_time",
	CreatedAt: "created_at",
}
View Source
var NotificationTimeSpanRels = struct {
}{}

NotificationTimeSpanRels is where relationship names are stored.

View Source
var NotificationTimeSpanTableColumns = struct {
	UserID    string
	Number    string
	FromTime  string
	ToTime    string
	CreatedAt string
}{
	UserID:    "notification_time_span.user_id",
	Number:    "notification_time_span.number",
	FromTime:  "notification_time_span.from_time",
	ToTime:    "notification_time_span.to_time",
	CreatedAt: "notification_time_span.created_at",
}
View Source
var NotificationTimeSpanWhere = struct {
	UserID    whereHelperuint
	Number    whereHelperuint8
	FromTime  whereHelperstring
	ToTime    whereHelperstring
	CreatedAt whereHelpertime_Time
}{
	UserID:    whereHelperuint{/* contains filtered or unexported fields */},
	Number:    whereHelperuint8{/* contains filtered or unexported fields */},
	FromTime:  whereHelperstring{/* contains filtered or unexported fields */},
	ToTime:    whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var StatDailyNotificationEventColumns = struct {
	Date    string
	Event   string
	Count   string
	UuCount string
}{
	Date:    "date",
	Event:   "event",
	Count:   "count",
	UuCount: "uu_count",
}
View Source
var StatDailyNotificationEventRels = struct {
}{}

StatDailyNotificationEventRels is where relationship names are stored.

View Source
var StatDailyNotificationEventTableColumns = struct {
	Date    string
	Event   string
	Count   string
	UuCount string
}{
	Date:    "stat_daily_notification_event.date",
	Event:   "stat_daily_notification_event.event",
	Count:   "stat_daily_notification_event.count",
	UuCount: "stat_daily_notification_event.uu_count",
}
View Source
var StatDailyNotificationEventWhere = struct {
	Date    whereHelpertime_Time
	Event   whereHelperstring
	Count   whereHelperuint
	UuCount whereHelperuint
}{
	Date:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	Event:   whereHelperstring{/* contains filtered or unexported fields */},
	Count:   whereHelperuint{/* contains filtered or unexported fields */},
	UuCount: whereHelperuint{/* contains filtered or unexported fields */},
}
View Source
var StatDailyUserNotificationEventColumns = struct {
	Date   string
	UserID string
	Event  string
	Count  string
}{
	Date:   "date",
	UserID: "user_id",
	Event:  "event",
	Count:  "count",
}
View Source
var StatDailyUserNotificationEventRels = struct {
}{}

StatDailyUserNotificationEventRels is where relationship names are stored.

View Source
var StatDailyUserNotificationEventTableColumns = struct {
	Date   string
	UserID string
	Event  string
	Count  string
}{
	Date:   "stat_daily_user_notification_event.date",
	UserID: "stat_daily_user_notification_event.user_id",
	Event:  "stat_daily_user_notification_event.event",
	Count:  "stat_daily_user_notification_event.count",
}
View Source
var StatDailyUserNotificationEventWhere = struct {
	Date   whereHelpertime_Time
	UserID whereHelperuint
	Event  whereHelperstring
	Count  whereHelperuint
}{
	Date:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	UserID: whereHelperuint{/* contains filtered or unexported fields */},
	Event:  whereHelperstring{/* contains filtered or unexported fields */},
	Count:  whereHelperuint{/* contains filtered or unexported fields */},
}
View Source
var StatNewLessonNotifierColumns = struct {
	Date    string
	Event   string
	Count   string
	UuCount string
}{
	Date:    "date",
	Event:   "event",
	Count:   "count",
	UuCount: "uu_count",
}
View Source
var StatNewLessonNotifierRels = struct {
}{}

StatNewLessonNotifierRels is where relationship names are stored.

View Source
var StatNewLessonNotifierTableColumns = struct {
	Date    string
	Event   string
	Count   string
	UuCount string
}{
	Date:    "stat_new_lesson_notifier.date",
	Event:   "stat_new_lesson_notifier.event",
	Count:   "stat_new_lesson_notifier.count",
	UuCount: "stat_new_lesson_notifier.uu_count",
}
View Source
var StatNewLessonNotifierWhere = struct {
	Date    whereHelpertime_Time
	Event   whereHelperstring
	Count   whereHelperuint
	UuCount whereHelperuint
}{
	Date:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	Event:   whereHelperstring{/* contains filtered or unexported fields */},
	Count:   whereHelperuint{/* contains filtered or unexported fields */},
	UuCount: whereHelperuint{/* contains filtered or unexported fields */},
}
View Source
var StatNotifierColumns = struct {
	Datetime             string
	Interval             string
	Elapsed              string
	UserCount            string
	FollowedTeacherCount string
}{
	Datetime:             "datetime",
	Interval:             "interval",
	Elapsed:              "elapsed",
	UserCount:            "user_count",
	FollowedTeacherCount: "followed_teacher_count",
}
View Source
var StatNotifierRels = struct {
}{}

StatNotifierRels is where relationship names are stored.

View Source
var StatNotifierTableColumns = struct {
	Datetime             string
	Interval             string
	Elapsed              string
	UserCount            string
	FollowedTeacherCount string
}{
	Datetime:             "stat_notifier.datetime",
	Interval:             "stat_notifier.interval",
	Elapsed:              "stat_notifier.elapsed",
	UserCount:            "stat_notifier.user_count",
	FollowedTeacherCount: "stat_notifier.followed_teacher_count",
}
View Source
var StatNotifierWhere = struct {
	Datetime             whereHelpertime_Time
	Interval             whereHelperuint8
	Elapsed              whereHelperuint
	UserCount            whereHelperuint
	FollowedTeacherCount whereHelperuint
}{
	Datetime:             whereHelpertime_Time{/* contains filtered or unexported fields */},
	Interval:             whereHelperuint8{/* contains filtered or unexported fields */},
	Elapsed:              whereHelperuint{/* contains filtered or unexported fields */},
	UserCount:            whereHelperuint{/* contains filtered or unexported fields */},
	FollowedTeacherCount: whereHelperuint{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	EventLogEmail                  string
	FlashMessage                   string
	FollowingTeacher               string
	Lesson                         string
	LessonStatusLog                string
	MCountry                       string
	MPlan                          string
	NotificationTimeSpan           string
	StatDailyNotificationEvent     string
	StatDailyUserNotificationEvent string
	StatNewLessonNotifier          string
	StatNotifier                   string
	Teacher                        string
	User                           string
	UserAPIToken                   string
	UserGoogle                     string
}{
	EventLogEmail:                  "event_log_email",
	FlashMessage:                   "flash_message",
	FollowingTeacher:               "following_teacher",
	Lesson:                         "lesson",
	LessonStatusLog:                "lesson_status_log",
	MCountry:                       "m_country",
	MPlan:                          "m_plan",
	NotificationTimeSpan:           "notification_time_span",
	StatDailyNotificationEvent:     "stat_daily_notification_event",
	StatDailyUserNotificationEvent: "stat_daily_user_notification_event",
	StatNewLessonNotifier:          "stat_new_lesson_notifier",
	StatNotifier:                   "stat_notifier",
	Teacher:                        "teacher",
	User:                           "user",
	UserAPIToken:                   "user_api_token",
	UserGoogle:                     "user_google",
}
View Source
var TeacherColumns = struct {
	ID                string
	Name              string
	CountryID         string
	Gender            string
	Birthday          string
	YearsOfExperience string
	FavoriteCount     string
	ReviewCount       string
	Rating            string
	LastLessonAt      string
	FetchErrorCount   string
	CreatedAt         string
	UpdatedAt         string
}{
	ID:                "id",
	Name:              "name",
	CountryID:         "country_id",
	Gender:            "gender",
	Birthday:          "birthday",
	YearsOfExperience: "years_of_experience",
	FavoriteCount:     "favorite_count",
	ReviewCount:       "review_count",
	Rating:            "rating",
	LastLessonAt:      "last_lesson_at",
	FetchErrorCount:   "fetch_error_count",
	CreatedAt:         "created_at",
	UpdatedAt:         "updated_at",
}
View Source
var TeacherRels = struct {
}{}

TeacherRels is where relationship names are stored.

View Source
var TeacherTableColumns = struct {
	ID                string
	Name              string
	CountryID         string
	Gender            string
	Birthday          string
	YearsOfExperience string
	FavoriteCount     string
	ReviewCount       string
	Rating            string
	LastLessonAt      string
	FetchErrorCount   string
	CreatedAt         string
	UpdatedAt         string
}{
	ID:                "teacher.id",
	Name:              "teacher.name",
	CountryID:         "teacher.country_id",
	Gender:            "teacher.gender",
	Birthday:          "teacher.birthday",
	YearsOfExperience: "teacher.years_of_experience",
	FavoriteCount:     "teacher.favorite_count",
	ReviewCount:       "teacher.review_count",
	Rating:            "teacher.rating",
	LastLessonAt:      "teacher.last_lesson_at",
	FetchErrorCount:   "teacher.fetch_error_count",
	CreatedAt:         "teacher.created_at",
	UpdatedAt:         "teacher.updated_at",
}
View Source
var TeacherWhere = struct {
	ID                whereHelperuint
	Name              whereHelperstring
	CountryID         whereHelperint16
	Gender            whereHelperstring
	Birthday          whereHelpertime_Time
	YearsOfExperience whereHelperint8
	FavoriteCount     whereHelperuint
	ReviewCount       whereHelperuint
	Rating            whereHelpertypes_NullDecimal
	LastLessonAt      whereHelpertime_Time
	FetchErrorCount   whereHelperuint8
	CreatedAt         whereHelpertime_Time
	UpdatedAt         whereHelpertime_Time
}{
	ID:                whereHelperuint{/* contains filtered or unexported fields */},
	Name:              whereHelperstring{/* contains filtered or unexported fields */},
	CountryID:         whereHelperint16{/* contains filtered or unexported fields */},
	Gender:            whereHelperstring{/* contains filtered or unexported fields */},
	Birthday:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	YearsOfExperience: whereHelperint8{/* contains filtered or unexported fields */},
	FavoriteCount:     whereHelperuint{/* contains filtered or unexported fields */},
	ReviewCount:       whereHelperuint{/* contains filtered or unexported fields */},
	Rating:            whereHelpertypes_NullDecimal{/* contains filtered or unexported fields */},
	LastLessonAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	FetchErrorCount:   whereHelperuint8{/* contains filtered or unexported fields */},
	CreatedAt:         whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:         whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var UserAPITokenColumns = struct {
	Token     string
	UserID    string
	CreatedAt string
	UpdatedAt string
}{
	Token:     "token",
	UserID:    "user_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var UserAPITokenRels = struct {
}{}

UserAPITokenRels is where relationship names are stored.

View Source
var UserAPITokenTableColumns = struct {
	Token     string
	UserID    string
	CreatedAt string
	UpdatedAt string
}{
	Token:     "user_api_token.token",
	UserID:    "user_api_token.user_id",
	CreatedAt: "user_api_token.created_at",
	UpdatedAt: "user_api_token.updated_at",
}
View Source
var UserAPITokenWhere = struct {
	Token     whereHelperstring
	UserID    whereHelperuint
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	Token:     whereHelperstring{/* contains filtered or unexported fields */},
	UserID:    whereHelperuint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var UserColumns = struct {
	ID                 string
	Name               string
	Email              string
	EmailVerified      string
	PlanID             string
	FollowedTeacherAt  string
	OpenNotificationAt string
	CreatedAt          string
	UpdatedAt          string
}{
	ID:                 "id",
	Name:               "name",
	Email:              "email",
	EmailVerified:      "email_verified",
	PlanID:             "plan_id",
	FollowedTeacherAt:  "followed_teacher_at",
	OpenNotificationAt: "open_notification_at",
	CreatedAt:          "created_at",
	UpdatedAt:          "updated_at",
}
View Source
var UserGoogleColumns = struct {
	GoogleID  string
	UserID    string
	CreatedAt string
	UpdatedAt string
}{
	GoogleID:  "google_id",
	UserID:    "user_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var UserGoogleRels = struct {
}{}

UserGoogleRels is where relationship names are stored.

View Source
var UserGoogleTableColumns = struct {
	GoogleID  string
	UserID    string
	CreatedAt string
	UpdatedAt string
}{
	GoogleID:  "user_google.google_id",
	UserID:    "user_google.user_id",
	CreatedAt: "user_google.created_at",
	UpdatedAt: "user_google.updated_at",
}
View Source
var UserGoogleWhere = struct {
	GoogleID  whereHelperstring
	UserID    whereHelperuint
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	GoogleID:  whereHelperstring{/* contains filtered or unexported fields */},
	UserID:    whereHelperuint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var UserRels = struct {
}{}

UserRels is where relationship names are stored.

View Source
var UserTableColumns = struct {
	ID                 string
	Name               string
	Email              string
	EmailVerified      string
	PlanID             string
	FollowedTeacherAt  string
	OpenNotificationAt string
	CreatedAt          string
	UpdatedAt          string
}{
	ID:                 "user.id",
	Name:               "user.name",
	Email:              "user.email",
	EmailVerified:      "user.email_verified",
	PlanID:             "user.plan_id",
	FollowedTeacherAt:  "user.followed_teacher_at",
	OpenNotificationAt: "user.open_notification_at",
	CreatedAt:          "user.created_at",
	UpdatedAt:          "user.updated_at",
}
View Source
var UserWhere = struct {
	ID                 whereHelperuint
	Name               whereHelperstring
	Email              whereHelperstring
	EmailVerified      whereHelperuint8
	PlanID             whereHelperuint8
	FollowedTeacherAt  whereHelpernull_Time
	OpenNotificationAt whereHelpernull_Time
	CreatedAt          whereHelpertime_Time
	UpdatedAt          whereHelpertime_Time
}{
	ID:                 whereHelperuint{/* contains filtered or unexported fields */},
	Name:               whereHelperstring{/* contains filtered or unexported fields */},
	Email:              whereHelperstring{/* contains filtered or unexported fields */},
	EmailVerified:      whereHelperuint8{/* contains filtered or unexported fields */},
	PlanID:             whereHelperuint8{/* contains filtered or unexported fields */},
	FollowedTeacherAt:  whereHelpernull_Time{/* contains filtered or unexported fields */},
	OpenNotificationAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	CreatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:          whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ViewNames = struct {
}{}

Functions

func AddEventLogEmailHook

func AddEventLogEmailHook(hookPoint boil.HookPoint, eventLogEmailHook EventLogEmailHook)

AddEventLogEmailHook registers your hook function for all future operations.

func AddFlashMessageHook

func AddFlashMessageHook(hookPoint boil.HookPoint, flashMessageHook FlashMessageHook)

AddFlashMessageHook registers your hook function for all future operations.

func AddFollowingTeacherHook

func AddFollowingTeacherHook(hookPoint boil.HookPoint, followingTeacherHook FollowingTeacherHook)

AddFollowingTeacherHook registers your hook function for all future operations.

func AddLessonHook

func AddLessonHook(hookPoint boil.HookPoint, lessonHook LessonHook)

AddLessonHook registers your hook function for all future operations.

func AddLessonStatusLogHook

func AddLessonStatusLogHook(hookPoint boil.HookPoint, lessonStatusLogHook LessonStatusLogHook)

AddLessonStatusLogHook registers your hook function for all future operations.

func AddMCountryHook

func AddMCountryHook(hookPoint boil.HookPoint, mCountryHook MCountryHook)

AddMCountryHook registers your hook function for all future operations.

func AddMPlanHook

func AddMPlanHook(hookPoint boil.HookPoint, mPlanHook MPlanHook)

AddMPlanHook registers your hook function for all future operations.

func AddNotificationTimeSpanHook

func AddNotificationTimeSpanHook(hookPoint boil.HookPoint, notificationTimeSpanHook NotificationTimeSpanHook)

AddNotificationTimeSpanHook registers your hook function for all future operations.

func AddStatDailyNotificationEventHook

func AddStatDailyNotificationEventHook(hookPoint boil.HookPoint, statDailyNotificationEventHook StatDailyNotificationEventHook)

AddStatDailyNotificationEventHook registers your hook function for all future operations.

func AddStatDailyUserNotificationEventHook

func AddStatDailyUserNotificationEventHook(hookPoint boil.HookPoint, statDailyUserNotificationEventHook StatDailyUserNotificationEventHook)

AddStatDailyUserNotificationEventHook registers your hook function for all future operations.

func AddStatNewLessonNotifierHook

func AddStatNewLessonNotifierHook(hookPoint boil.HookPoint, statNewLessonNotifierHook StatNewLessonNotifierHook)

AddStatNewLessonNotifierHook registers your hook function for all future operations.

func AddStatNotifierHook

func AddStatNotifierHook(hookPoint boil.HookPoint, statNotifierHook StatNotifierHook)

AddStatNotifierHook registers your hook function for all future operations.

func AddTeacherHook

func AddTeacherHook(hookPoint boil.HookPoint, teacherHook TeacherHook)

AddTeacherHook registers your hook function for all future operations.

func AddUserAPITokenHook

func AddUserAPITokenHook(hookPoint boil.HookPoint, userAPITokenHook UserAPITokenHook)

AddUserAPITokenHook registers your hook function for all future operations.

func AddUserGoogleHook

func AddUserGoogleHook(hookPoint boil.HookPoint, userGoogleHook UserGoogleHook)

AddUserGoogleHook registers your hook function for all future operations.

func AddUserHook

func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)

AddUserHook registers your hook function for all future operations.

func AllEventLogEmailEmailType

func AllEventLogEmailEmailType() []string

func AllEventLogEmailEvent

func AllEventLogEmailEvent() []string

func AllLessonStatus

func AllLessonStatus() []string

func AllLessonStatusLogStatus

func AllLessonStatusLogStatus() []string

func AllStatDailyNotificationEventEvent

func AllStatDailyNotificationEventEvent() []string

func AllStatDailyUserNotificationEventEvent

func AllStatDailyUserNotificationEventEvent() []string

func AllStatNewLessonNotifierEvent

func AllStatNewLessonNotifierEvent() []string

func AllTeacherGender

func AllTeacherGender() []string

func EventLogEmailExists

func EventLogEmailExists(ctx context.Context, exec boil.ContextExecutor, iD uint) (bool, error)

EventLogEmailExists checks if the EventLogEmail row exists.

func EventLogEmails

func EventLogEmails(mods ...qm.QueryMod) eventLogEmailQuery

EventLogEmails retrieves all the records using an executor.

func FlashMessageExists

func FlashMessageExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

FlashMessageExists checks if the FlashMessage row exists.

func FlashMessages

func FlashMessages(mods ...qm.QueryMod) flashMessageQuery

FlashMessages retrieves all the records using an executor.

func FollowingTeacherExists

func FollowingTeacherExists(ctx context.Context, exec boil.ContextExecutor, userID uint, teacherID uint) (bool, error)

FollowingTeacherExists checks if the FollowingTeacher row exists.

func FollowingTeachers

func FollowingTeachers(mods ...qm.QueryMod) followingTeacherQuery

FollowingTeachers retrieves all the records using an executor.

func LessonExists

func LessonExists(ctx context.Context, exec boil.ContextExecutor, iD uint64) (bool, error)

LessonExists checks if the Lesson row exists.

func LessonStatusLogExists

func LessonStatusLogExists(ctx context.Context, exec boil.ContextExecutor, iD uint64) (bool, error)

LessonStatusLogExists checks if the LessonStatusLog row exists.

func LessonStatusLogs

func LessonStatusLogs(mods ...qm.QueryMod) lessonStatusLogQuery

LessonStatusLogs retrieves all the records using an executor.

func Lessons

func Lessons(mods ...qm.QueryMod) lessonQuery

Lessons retrieves all the records using an executor.

func MCountries

func MCountries(mods ...qm.QueryMod) mCountryQuery

MCountries retrieves all the records using an executor.

func MCountryExists

func MCountryExists(ctx context.Context, exec boil.ContextExecutor, iD uint16) (bool, error)

MCountryExists checks if the MCountry row exists.

func MPlanExists

func MPlanExists(ctx context.Context, exec boil.ContextExecutor, iD uint8) (bool, error)

MPlanExists checks if the MPlan row exists.

func MPlans

func MPlans(mods ...qm.QueryMod) mPlanQuery

MPlans retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func NotificationTimeSpanExists

func NotificationTimeSpanExists(ctx context.Context, exec boil.ContextExecutor, userID uint, number uint8) (bool, error)

NotificationTimeSpanExists checks if the NotificationTimeSpan row exists.

func NotificationTimeSpanTimeFormat

func NotificationTimeSpanTimeFormat(hour, minute int) string

func NotificationTimeSpanTimeParse

func NotificationTimeSpanTimeParse(value string) (time.Time, error)

func NotificationTimeSpans

func NotificationTimeSpans(mods ...qm.QueryMod) notificationTimeSpanQuery

NotificationTimeSpans retrieves all the records using an executor.

func StatDailyNotificationEventExists

func StatDailyNotificationEventExists(ctx context.Context, exec boil.ContextExecutor, date time.Time, event string) (bool, error)

StatDailyNotificationEventExists checks if the StatDailyNotificationEvent row exists.

func StatDailyNotificationEvents

func StatDailyNotificationEvents(mods ...qm.QueryMod) statDailyNotificationEventQuery

StatDailyNotificationEvents retrieves all the records using an executor.

func StatDailyUserNotificationEventExists

func StatDailyUserNotificationEventExists(ctx context.Context, exec boil.ContextExecutor, date time.Time, userID uint, event string) (bool, error)

StatDailyUserNotificationEventExists checks if the StatDailyUserNotificationEvent row exists.

func StatDailyUserNotificationEvents

func StatDailyUserNotificationEvents(mods ...qm.QueryMod) statDailyUserNotificationEventQuery

StatDailyUserNotificationEvents retrieves all the records using an executor.

func StatNewLessonNotifierExists

func StatNewLessonNotifierExists(ctx context.Context, exec boil.ContextExecutor, date time.Time, event string) (bool, error)

StatNewLessonNotifierExists checks if the StatNewLessonNotifier row exists.

func StatNewLessonNotifiers

func StatNewLessonNotifiers(mods ...qm.QueryMod) statNewLessonNotifierQuery

StatNewLessonNotifiers retrieves all the records using an executor.

func StatNotifierExists

func StatNotifierExists(ctx context.Context, exec boil.ContextExecutor, datetime time.Time, interval uint8) (bool, error)

StatNotifierExists checks if the StatNotifier row exists.

func StatNotifiers

func StatNotifiers(mods ...qm.QueryMod) statNotifierQuery

StatNotifiers retrieves all the records using an executor.

func TeacherExists

func TeacherExists(ctx context.Context, exec boil.ContextExecutor, iD uint) (bool, error)

TeacherExists checks if the Teacher row exists.

func Teachers

func Teachers(mods ...qm.QueryMod) teacherQuery

Teachers retrieves all the records using an executor.

func UserAPITokenExists

func UserAPITokenExists(ctx context.Context, exec boil.ContextExecutor, token string) (bool, error)

UserAPITokenExists checks if the UserAPIToken row exists.

func UserAPITokens

func UserAPITokens(mods ...qm.QueryMod) userAPITokenQuery

UserAPITokens retrieves all the records using an executor.

func UserExists

func UserExists(ctx context.Context, exec boil.ContextExecutor, iD uint) (bool, error)

UserExists checks if the User row exists.

func UserGoogleExists

func UserGoogleExists(ctx context.Context, exec boil.ContextExecutor, googleID string) (bool, error)

UserGoogleExists checks if the UserGoogle row exists.

func UserGoogles

func UserGoogles(mods ...qm.QueryMod) userGoogleQuery

UserGoogles retrieves all the records using an executor.

func Users

func Users(mods ...qm.QueryMod) userQuery

Users retrieves all the records using an executor.

Types

type EventLogEmail

type EventLogEmail struct {
	ID         uint      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Datetime   time.Time `boil:"datetime" json:"datetime" toml:"datetime" yaml:"datetime"`
	Event      string    `boil:"event" json:"event" toml:"event" yaml:"event"`
	EmailType  string    `boil:"email_type" json:"email_type" toml:"email_type" yaml:"email_type"`
	UserID     uint      `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	UserAgent  string    `boil:"user_agent" json:"user_agent" toml:"user_agent" yaml:"user_agent"`
	TeacherIds string    `boil:"teacher_ids" json:"teacher_ids" toml:"teacher_ids" yaml:"teacher_ids"`
	URL        string    `boil:"url" json:"url" toml:"url" yaml:"url"`

	R *eventLogEmailR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L eventLogEmailL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

EventLogEmail is an object representing the database table.

func FindEventLogEmail

func FindEventLogEmail(ctx context.Context, exec boil.ContextExecutor, iD uint, selectCols ...string) (*EventLogEmail, error)

FindEventLogEmail retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*EventLogEmail) Delete

func (o *EventLogEmail) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single EventLogEmail record with an executor. Delete will match against the primary key column to find the record to delete.

func (*EventLogEmail) Exists

func (o *EventLogEmail) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the EventLogEmail row exists.

func (*EventLogEmail) Insert

func (o *EventLogEmail) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*EventLogEmail) Reload

func (o *EventLogEmail) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*EventLogEmail) Update

func (o *EventLogEmail) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the EventLogEmail. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*EventLogEmail) Upsert

func (o *EventLogEmail) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type EventLogEmailHook

type EventLogEmailHook func(context.Context, boil.ContextExecutor, *EventLogEmail) error

EventLogEmailHook is the signature for custom EventLogEmail hook methods

type EventLogEmailSlice

type EventLogEmailSlice []*EventLogEmail

EventLogEmailSlice is an alias for a slice of pointers to EventLogEmail. This should almost always be used instead of []EventLogEmail.

func (EventLogEmailSlice) DeleteAll

func (o EventLogEmailSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*EventLogEmailSlice) ReloadAll

func (o *EventLogEmailSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (EventLogEmailSlice) UpdateAll

func (o EventLogEmailSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type FlashMessage

type FlashMessage struct {
	ID        string     `boil:"id" json:"id" toml:"id" yaml:"id"`
	Value     types.JSON `boil:"value" json:"value" toml:"value" yaml:"value"`
	ExpiredAt time.Time  `boil:"expired_at" json:"expired_at" toml:"expired_at" yaml:"expired_at"`

	R *flashMessageR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L flashMessageL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

FlashMessage is an object representing the database table.

func FindFlashMessage

func FindFlashMessage(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*FlashMessage, error)

FindFlashMessage retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*FlashMessage) Delete

func (o *FlashMessage) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single FlashMessage record with an executor. Delete will match against the primary key column to find the record to delete.

func (*FlashMessage) Exists

func (o *FlashMessage) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the FlashMessage row exists.

func (*FlashMessage) Insert

func (o *FlashMessage) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*FlashMessage) Reload

func (o *FlashMessage) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*FlashMessage) Update

func (o *FlashMessage) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the FlashMessage. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*FlashMessage) Upsert

func (o *FlashMessage) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type FlashMessageHook

type FlashMessageHook func(context.Context, boil.ContextExecutor, *FlashMessage) error

FlashMessageHook is the signature for custom FlashMessage hook methods

type FlashMessageSlice

type FlashMessageSlice []*FlashMessage

FlashMessageSlice is an alias for a slice of pointers to FlashMessage. This should almost always be used instead of []FlashMessage.

func (FlashMessageSlice) DeleteAll

func (o FlashMessageSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*FlashMessageSlice) ReloadAll

func (o *FlashMessageSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (FlashMessageSlice) UpdateAll

func (o FlashMessageSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type FollowingTeacher

type FollowingTeacher struct {
	UserID    uint      `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	TeacherID uint      `boil:"teacher_id" json:"teacher_id" toml:"teacher_id" yaml:"teacher_id"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *followingTeacherR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L followingTeacherL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

FollowingTeacher is an object representing the database table.

func FindFollowingTeacher

func FindFollowingTeacher(ctx context.Context, exec boil.ContextExecutor, userID uint, teacherID uint, selectCols ...string) (*FollowingTeacher, error)

FindFollowingTeacher retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*FollowingTeacher) Delete

Delete deletes a single FollowingTeacher record with an executor. Delete will match against the primary key column to find the record to delete.

func (*FollowingTeacher) Exists

func (o *FollowingTeacher) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the FollowingTeacher row exists.

func (*FollowingTeacher) ID

func (o *FollowingTeacher) ID() string

func (*FollowingTeacher) Insert

func (o *FollowingTeacher) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*FollowingTeacher) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*FollowingTeacher) Update

func (o *FollowingTeacher) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the FollowingTeacher. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*FollowingTeacher) Upsert

func (o *FollowingTeacher) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type FollowingTeacherHook

type FollowingTeacherHook func(context.Context, boil.ContextExecutor, *FollowingTeacher) error

FollowingTeacherHook is the signature for custom FollowingTeacher hook methods

type FollowingTeacherSlice

type FollowingTeacherSlice []*FollowingTeacher

FollowingTeacherSlice is an alias for a slice of pointers to FollowingTeacher. This should almost always be used instead of []FollowingTeacher.

func (FollowingTeacherSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*FollowingTeacherSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (FollowingTeacherSlice) UpdateAll

func (o FollowingTeacherSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type GAMeasurementEvent

type GAMeasurementEvent struct {
	UserAgentOverride string
	ClientID          string
	DocumentHostName  string
	DocumentPath      string
	DocumentTitle     string
	DocumentReferrer  string
	IPOverride        string
}

type Lesson

type Lesson struct {
	ID        uint64    `boil:"id" json:"id" toml:"id" yaml:"id"`
	TeacherID uint      `boil:"teacher_id" json:"teacher_id" toml:"teacher_id" yaml:"teacher_id"`
	Datetime  time.Time `boil:"datetime" json:"datetime" toml:"datetime" yaml:"datetime"`
	Status    string    `boil:"status" json:"status" toml:"status" yaml:"status"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *lessonR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L lessonL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Lesson is an object representing the database table.

func FindLesson

func FindLesson(ctx context.Context, exec boil.ContextExecutor, iD uint64, selectCols ...string) (*Lesson, error)

FindLesson retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Lesson) Delete

func (o *Lesson) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Lesson record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Lesson) Exists

func (o *Lesson) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Lesson row exists.

func (*Lesson) Insert

func (o *Lesson) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Lesson) Reload

func (o *Lesson) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Lesson) String

func (l *Lesson) String() string

func (*Lesson) Update

func (o *Lesson) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Lesson. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Lesson) Upsert

func (o *Lesson) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type LessonDatetime

type LessonDatetime time.Time

func ParseLessonDatetime

func ParseLessonDatetime(s string) (LessonDatetime, error)

func (LessonDatetime) String

func (ld LessonDatetime) String() string

type LessonHook

type LessonHook func(context.Context, boil.ContextExecutor, *Lesson) error

LessonHook is the signature for custom Lesson hook methods

type LessonSlice

type LessonSlice []*Lesson

LessonSlice is an alias for a slice of pointers to Lesson. This should almost always be used instead of []Lesson.

func (LessonSlice) DeleteAll

func (o LessonSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*LessonSlice) ReloadAll

func (o *LessonSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (LessonSlice) UpdateAll

func (o LessonSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type LessonStatus

type LessonStatus struct {
	Finished  int `goenum:"終了"`
	Reserved  int `goenum:"予約済"`
	Available int `goenum:"予約可"`
	Cancelled int `goenum:"休講"`
}

type LessonStatusLog

type LessonStatusLog struct {
	ID        uint64    `boil:"id" json:"id" toml:"id" yaml:"id"`
	LessonID  uint64    `boil:"lesson_id" json:"lesson_id" toml:"lesson_id" yaml:"lesson_id"`
	Status    string    `boil:"status" json:"status" toml:"status" yaml:"status"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *lessonStatusLogR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L lessonStatusLogL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

LessonStatusLog is an object representing the database table.

func FindLessonStatusLog

func FindLessonStatusLog(ctx context.Context, exec boil.ContextExecutor, iD uint64, selectCols ...string) (*LessonStatusLog, error)

FindLessonStatusLog retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*LessonStatusLog) Delete

func (o *LessonStatusLog) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single LessonStatusLog record with an executor. Delete will match against the primary key column to find the record to delete.

func (*LessonStatusLog) Exists

func (o *LessonStatusLog) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the LessonStatusLog row exists.

func (*LessonStatusLog) Insert

func (o *LessonStatusLog) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*LessonStatusLog) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*LessonStatusLog) Update

func (o *LessonStatusLog) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the LessonStatusLog. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*LessonStatusLog) Upsert

func (o *LessonStatusLog) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type LessonStatusLogHook

type LessonStatusLogHook func(context.Context, boil.ContextExecutor, *LessonStatusLog) error

LessonStatusLogHook is the signature for custom LessonStatusLog hook methods

type LessonStatusLogSlice

type LessonStatusLogSlice []*LessonStatusLog

LessonStatusLogSlice is an alias for a slice of pointers to LessonStatusLog. This should almost always be used instead of []LessonStatusLog.

func (LessonStatusLogSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*LessonStatusLogSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (LessonStatusLogSlice) UpdateAll

func (o LessonStatusLogSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type MCountry

type MCountry struct {
	ID        uint16    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	NameJa    string    `boil:"name_ja" json:"name_ja" toml:"name_ja" yaml:"name_ja"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *mCountryR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L mCountryL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MCountry is an object representing the database table.

func FindMCountry

func FindMCountry(ctx context.Context, exec boil.ContextExecutor, iD uint16, selectCols ...string) (*MCountry, error)

FindMCountry retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*MCountry) Delete

func (o *MCountry) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single MCountry record with an executor. Delete will match against the primary key column to find the record to delete.

func (*MCountry) Exists

func (o *MCountry) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the MCountry row exists.

func (*MCountry) Insert

func (o *MCountry) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*MCountry) Reload

func (o *MCountry) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*MCountry) Update

func (o *MCountry) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the MCountry. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*MCountry) Upsert

func (o *MCountry) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type MCountryHook

type MCountryHook func(context.Context, boil.ContextExecutor, *MCountry) error

MCountryHook is the signature for custom MCountry hook methods

type MCountryList

type MCountryList struct {
	// contains filtered or unexported fields
}

func NewMCountryList

func NewMCountryList(values []*MCountry) *MCountryList

func (*MCountryList) GetByNameJA

func (mc *MCountryList) GetByNameJA(name string) (*MCountry, bool)

type MCountrySlice

type MCountrySlice []*MCountry

MCountrySlice is an alias for a slice of pointers to MCountry. This should almost always be used instead of []MCountry.

func (MCountrySlice) DeleteAll

func (o MCountrySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*MCountrySlice) ReloadAll

func (o *MCountrySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (MCountrySlice) UpdateAll

func (o MCountrySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type MPlan

type MPlan struct {
	ID                   uint8       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name                 string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	InternalName         string      `boil:"internal_name" json:"internal_name" toml:"internal_name" yaml:"internal_name"`
	StripeTestProductID  null.String `` /* 139-byte string literal not displayed */
	Price                int32       `boil:"price" json:"price" toml:"price" yaml:"price"`
	NotificationInterval uint8       `boil:"notification_interval" json:"notification_interval" toml:"notification_interval" yaml:"notification_interval"`
	ShowAd               uint8       `boil:"show_ad" json:"show_ad" toml:"show_ad" yaml:"show_ad"`
	MaxFollowingTeacher  uint8       `boil:"max_following_teacher" json:"max_following_teacher" toml:"max_following_teacher" yaml:"max_following_teacher"`
	CreatedAt            time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt            time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *mPlanR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L mPlanL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MPlan is an object representing the database table.

func FindMPlan

func FindMPlan(ctx context.Context, exec boil.ContextExecutor, iD uint8, selectCols ...string) (*MPlan, error)

FindMPlan retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*MPlan) Delete

func (o *MPlan) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single MPlan record with an executor. Delete will match against the primary key column to find the record to delete.

func (*MPlan) Exists

func (o *MPlan) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the MPlan row exists.

func (*MPlan) Insert

func (o *MPlan) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*MPlan) Reload

func (o *MPlan) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*MPlan) Update

func (o *MPlan) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the MPlan. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*MPlan) Upsert

func (o *MPlan) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type MPlanHook

type MPlanHook func(context.Context, boil.ContextExecutor, *MPlan) error

MPlanHook is the signature for custom MPlan hook methods

type MPlanSlice

type MPlanSlice []*MPlan

MPlanSlice is an alias for a slice of pointers to MPlan. This should almost always be used instead of []MPlan.

func (MPlanSlice) DeleteAll

func (o MPlanSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*MPlanSlice) ReloadAll

func (o *MPlanSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (MPlanSlice) UpdateAll

func (o MPlanSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type NotificationTimeSpan

type NotificationTimeSpan struct {
	UserID    uint      `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Number    uint8     `boil:"number" json:"number" toml:"number" yaml:"number"`
	FromTime  string    `boil:"from_time" json:"from_time" toml:"from_time" yaml:"from_time"`
	ToTime    string    `boil:"to_time" json:"to_time" toml:"to_time" yaml:"to_time"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *notificationTimeSpanR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L notificationTimeSpanL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

NotificationTimeSpan is an object representing the database table.

func FindNotificationTimeSpan

func FindNotificationTimeSpan(ctx context.Context, exec boil.ContextExecutor, userID uint, number uint8, selectCols ...string) (*NotificationTimeSpan, error)

FindNotificationTimeSpan retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*NotificationTimeSpan) Delete

Delete deletes a single NotificationTimeSpan record with an executor. Delete will match against the primary key column to find the record to delete.

func (*NotificationTimeSpan) Exists

Exists checks if the NotificationTimeSpan row exists.

func (*NotificationTimeSpan) Insert

func (o *NotificationTimeSpan) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*NotificationTimeSpan) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*NotificationTimeSpan) Update

func (o *NotificationTimeSpan) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the NotificationTimeSpan. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*NotificationTimeSpan) Upsert

func (o *NotificationTimeSpan) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*NotificationTimeSpan) Within

func (s *NotificationTimeSpan) Within(t time.Time) bool

type NotificationTimeSpanHook

type NotificationTimeSpanHook func(context.Context, boil.ContextExecutor, *NotificationTimeSpan) error

NotificationTimeSpanHook is the signature for custom NotificationTimeSpan hook methods

type NotificationTimeSpanList

type NotificationTimeSpanList []*NotificationTimeSpan

func (NotificationTimeSpanList) Within

func (l NotificationTimeSpanList) Within(t time.Time) bool

type NotificationTimeSpanSlice

type NotificationTimeSpanSlice []*NotificationTimeSpan

NotificationTimeSpanSlice is an alias for a slice of pointers to NotificationTimeSpan. This should almost always be used instead of []NotificationTimeSpan.

func (NotificationTimeSpanSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*NotificationTimeSpanSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (NotificationTimeSpanSlice) UpdateAll

func (o NotificationTimeSpanSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type StatDailyNotificationEvent

type StatDailyNotificationEvent struct {
	Date    time.Time `boil:"date" json:"date" toml:"date" yaml:"date"`
	Event   string    `boil:"event" json:"event" toml:"event" yaml:"event"`
	Count   uint      `boil:"count" json:"count" toml:"count" yaml:"count"`
	UuCount uint      `boil:"uu_count" json:"uu_count" toml:"uu_count" yaml:"uu_count"`

	R *statDailyNotificationEventR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L statDailyNotificationEventL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

StatDailyNotificationEvent is an object representing the database table.

func FindStatDailyNotificationEvent

func FindStatDailyNotificationEvent(ctx context.Context, exec boil.ContextExecutor, date time.Time, event string, selectCols ...string) (*StatDailyNotificationEvent, error)

FindStatDailyNotificationEvent retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*StatDailyNotificationEvent) Delete

Delete deletes a single StatDailyNotificationEvent record with an executor. Delete will match against the primary key column to find the record to delete.

func (*StatDailyNotificationEvent) Exists

Exists checks if the StatDailyNotificationEvent row exists.

func (*StatDailyNotificationEvent) Insert

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*StatDailyNotificationEvent) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*StatDailyNotificationEvent) Update

Update uses an executor to update the StatDailyNotificationEvent. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*StatDailyNotificationEvent) Upsert

func (o *StatDailyNotificationEvent) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type StatDailyNotificationEventHook

type StatDailyNotificationEventHook func(context.Context, boil.ContextExecutor, *StatDailyNotificationEvent) error

StatDailyNotificationEventHook is the signature for custom StatDailyNotificationEvent hook methods

type StatDailyNotificationEventSlice

type StatDailyNotificationEventSlice []*StatDailyNotificationEvent

StatDailyNotificationEventSlice is an alias for a slice of pointers to StatDailyNotificationEvent. This should almost always be used instead of []StatDailyNotificationEvent.

func (StatDailyNotificationEventSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*StatDailyNotificationEventSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (StatDailyNotificationEventSlice) UpdateAll

UpdateAll updates all rows with the specified column values, using an executor.

type StatDailyUserNotificationEvent

type StatDailyUserNotificationEvent struct {
	Date   time.Time `boil:"date" json:"date" toml:"date" yaml:"date"`
	UserID uint      `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Event  string    `boil:"event" json:"event" toml:"event" yaml:"event"`
	Count  uint      `boil:"count" json:"count" toml:"count" yaml:"count"`

	R *statDailyUserNotificationEventR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L statDailyUserNotificationEventL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

StatDailyUserNotificationEvent is an object representing the database table.

func FindStatDailyUserNotificationEvent

func FindStatDailyUserNotificationEvent(ctx context.Context, exec boil.ContextExecutor, date time.Time, userID uint, event string, selectCols ...string) (*StatDailyUserNotificationEvent, error)

FindStatDailyUserNotificationEvent retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*StatDailyUserNotificationEvent) Delete

Delete deletes a single StatDailyUserNotificationEvent record with an executor. Delete will match against the primary key column to find the record to delete.

func (*StatDailyUserNotificationEvent) Exists

Exists checks if the StatDailyUserNotificationEvent row exists.

func (*StatDailyUserNotificationEvent) Insert

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*StatDailyUserNotificationEvent) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*StatDailyUserNotificationEvent) Update

Update uses an executor to update the StatDailyUserNotificationEvent. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*StatDailyUserNotificationEvent) Upsert

func (o *StatDailyUserNotificationEvent) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type StatDailyUserNotificationEventHook

type StatDailyUserNotificationEventHook func(context.Context, boil.ContextExecutor, *StatDailyUserNotificationEvent) error

StatDailyUserNotificationEventHook is the signature for custom StatDailyUserNotificationEvent hook methods

type StatDailyUserNotificationEventSlice

type StatDailyUserNotificationEventSlice []*StatDailyUserNotificationEvent

StatDailyUserNotificationEventSlice is an alias for a slice of pointers to StatDailyUserNotificationEvent. This should almost always be used instead of []StatDailyUserNotificationEvent.

func (StatDailyUserNotificationEventSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*StatDailyUserNotificationEventSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (StatDailyUserNotificationEventSlice) UpdateAll

UpdateAll updates all rows with the specified column values, using an executor.

type StatNewLessonNotifier

type StatNewLessonNotifier struct {
	Date    time.Time `boil:"date" json:"date" toml:"date" yaml:"date"`
	Event   string    `boil:"event" json:"event" toml:"event" yaml:"event"`
	Count   uint      `boil:"count" json:"count" toml:"count" yaml:"count"`
	UuCount uint      `boil:"uu_count" json:"uu_count" toml:"uu_count" yaml:"uu_count"`

	R *statNewLessonNotifierR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L statNewLessonNotifierL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

StatNewLessonNotifier is an object representing the database table.

func FindStatNewLessonNotifier

func FindStatNewLessonNotifier(ctx context.Context, exec boil.ContextExecutor, date time.Time, event string, selectCols ...string) (*StatNewLessonNotifier, error)

FindStatNewLessonNotifier retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*StatNewLessonNotifier) Delete

Delete deletes a single StatNewLessonNotifier record with an executor. Delete will match against the primary key column to find the record to delete.

func (*StatNewLessonNotifier) Exists

Exists checks if the StatNewLessonNotifier row exists.

func (*StatNewLessonNotifier) Insert

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*StatNewLessonNotifier) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*StatNewLessonNotifier) Update

func (o *StatNewLessonNotifier) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the StatNewLessonNotifier. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*StatNewLessonNotifier) Upsert

func (o *StatNewLessonNotifier) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type StatNewLessonNotifierHook

type StatNewLessonNotifierHook func(context.Context, boil.ContextExecutor, *StatNewLessonNotifier) error

StatNewLessonNotifierHook is the signature for custom StatNewLessonNotifier hook methods

type StatNewLessonNotifierSlice

type StatNewLessonNotifierSlice []*StatNewLessonNotifier

StatNewLessonNotifierSlice is an alias for a slice of pointers to StatNewLessonNotifier. This should almost always be used instead of []StatNewLessonNotifier.

func (StatNewLessonNotifierSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*StatNewLessonNotifierSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (StatNewLessonNotifierSlice) UpdateAll

func (o StatNewLessonNotifierSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type StatNotifier

type StatNotifier struct {
	Datetime             time.Time `boil:"datetime" json:"datetime" toml:"datetime" yaml:"datetime"`
	Interval             uint8     `boil:"interval" json:"interval" toml:"interval" yaml:"interval"`
	Elapsed              uint      `boil:"elapsed" json:"elapsed" toml:"elapsed" yaml:"elapsed"`
	UserCount            uint      `boil:"user_count" json:"user_count" toml:"user_count" yaml:"user_count"`
	FollowedTeacherCount uint      `boil:"followed_teacher_count" json:"followed_teacher_count" toml:"followed_teacher_count" yaml:"followed_teacher_count"`

	R *statNotifierR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L statNotifierL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

StatNotifier is an object representing the database table.

func FindStatNotifier

func FindStatNotifier(ctx context.Context, exec boil.ContextExecutor, datetime time.Time, interval uint8, selectCols ...string) (*StatNotifier, error)

FindStatNotifier retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*StatNotifier) Delete

func (o *StatNotifier) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single StatNotifier record with an executor. Delete will match against the primary key column to find the record to delete.

func (*StatNotifier) Exists

func (o *StatNotifier) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the StatNotifier row exists.

func (*StatNotifier) Insert

func (o *StatNotifier) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*StatNotifier) Reload

func (o *StatNotifier) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*StatNotifier) Update

func (o *StatNotifier) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the StatNotifier. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*StatNotifier) Upsert

func (o *StatNotifier) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type StatNotifierHook

type StatNotifierHook func(context.Context, boil.ContextExecutor, *StatNotifier) error

StatNotifierHook is the signature for custom StatNotifier hook methods

type StatNotifierSlice

type StatNotifierSlice []*StatNotifier

StatNotifierSlice is an alias for a slice of pointers to StatNotifier. This should almost always be used instead of []StatNotifier.

func (StatNotifierSlice) DeleteAll

func (o StatNotifierSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*StatNotifierSlice) ReloadAll

func (o *StatNotifierSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (StatNotifierSlice) UpdateAll

func (o StatNotifierSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Teacher

type Teacher struct {
	ID                uint              `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name              string            `boil:"name" json:"name" toml:"name" yaml:"name"`
	CountryID         int16             `boil:"country_id" json:"country_id" toml:"country_id" yaml:"country_id"`
	Gender            string            `boil:"gender" json:"gender" toml:"gender" yaml:"gender"`
	Birthday          time.Time         `boil:"birthday" json:"birthday" toml:"birthday" yaml:"birthday"`
	YearsOfExperience int8              `boil:"years_of_experience" json:"years_of_experience" toml:"years_of_experience" yaml:"years_of_experience"`
	FavoriteCount     uint              `boil:"favorite_count" json:"favorite_count" toml:"favorite_count" yaml:"favorite_count"`
	ReviewCount       uint              `boil:"review_count" json:"review_count" toml:"review_count" yaml:"review_count"`
	Rating            types.NullDecimal `boil:"rating" json:"rating,omitempty" toml:"rating" yaml:"rating,omitempty"`
	LastLessonAt      time.Time         `boil:"last_lesson_at" json:"last_lesson_at" toml:"last_lesson_at" yaml:"last_lesson_at"`
	FetchErrorCount   uint8             `boil:"fetch_error_count" json:"fetch_error_count" toml:"fetch_error_count" yaml:"fetch_error_count"`
	CreatedAt         time.Time         `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt         time.Time         `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *teacherR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L teacherL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Teacher is an object representing the database table.

func FindTeacher

func FindTeacher(ctx context.Context, exec boil.ContextExecutor, iD uint, selectCols ...string) (*Teacher, error)

FindTeacher retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func NewTeacher

func NewTeacher(id uint) *Teacher

func NewTeacherFromIDOrURL

func NewTeacherFromIDOrURL(idOrURL string) (*Teacher, error)

func NewTeacherFromModel

func NewTeacherFromModel(t *model.Teacher) *Teacher

func (*Teacher) Delete

func (o *Teacher) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Teacher record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Teacher) Exists

func (o *Teacher) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Teacher row exists.

func (*Teacher) Insert

func (o *Teacher) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Teacher) IsJapanese

func (o *Teacher) IsJapanese() bool

func (*Teacher) Reload

func (o *Teacher) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Teacher) URL

func (o *Teacher) URL() string

func (*Teacher) Update

func (o *Teacher) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Teacher. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Teacher) Upsert

func (o *Teacher) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type TeacherHook

type TeacherHook func(context.Context, boil.ContextExecutor, *Teacher) error

TeacherHook is the signature for custom Teacher hook methods

type TeacherLessons

type TeacherLessons struct {
	Teacher *Teacher
	Lessons []*Lesson
}

func NewTeacherLessons

func NewTeacherLessons(t *Teacher, l []*Lesson) *TeacherLessons

type TeacherSlice

type TeacherSlice []*Teacher

TeacherSlice is an alias for a slice of pointers to Teacher. This should almost always be used instead of []Teacher.

func (TeacherSlice) DeleteAll

func (o TeacherSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*TeacherSlice) ReloadAll

func (o *TeacherSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (TeacherSlice) UpdateAll

func (o TeacherSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type User

type User struct {
	ID                 uint      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name               string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Email              string    `boil:"email" json:"email" toml:"email" yaml:"email"`
	EmailVerified      uint8     `boil:"email_verified" json:"email_verified" toml:"email_verified" yaml:"email_verified"`
	PlanID             uint8     `boil:"plan_id" json:"plan_id" toml:"plan_id" yaml:"plan_id"`
	FollowedTeacherAt  null.Time `` /* 127-byte string literal not displayed */
	OpenNotificationAt null.Time `` /* 131-byte string literal not displayed */
	CreatedAt          time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt          time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *userR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

User is an object representing the database table.

func FindUser

func FindUser(ctx context.Context, exec boil.ContextExecutor, iD uint, selectCols ...string) (*User, error)

FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func NewUserFromModel

func NewUserFromModel(u *model.User) *User

func (*User) Delete

func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.

func (*User) Exists

func (o *User) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the User row exists.

func (*User) Insert

func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*User) IsFollowedTeacher

func (o *User) IsFollowedTeacher() bool

func (*User) Reload

func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*User) Update

func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*User) Upsert

func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type UserAPIToken

type UserAPIToken struct {
	Token     string    `boil:"token" json:"token" toml:"token" yaml:"token"`
	UserID    uint      `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *userAPITokenR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userAPITokenL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

UserAPIToken is an object representing the database table.

func FindUserAPIToken

func FindUserAPIToken(ctx context.Context, exec boil.ContextExecutor, token string, selectCols ...string) (*UserAPIToken, error)

FindUserAPIToken retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*UserAPIToken) Delete

func (o *UserAPIToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single UserAPIToken record with an executor. Delete will match against the primary key column to find the record to delete.

func (*UserAPIToken) Exists

func (o *UserAPIToken) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the UserAPIToken row exists.

func (*UserAPIToken) Insert

func (o *UserAPIToken) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*UserAPIToken) Reload

func (o *UserAPIToken) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*UserAPIToken) Update

func (o *UserAPIToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the UserAPIToken. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*UserAPIToken) Upsert

func (o *UserAPIToken) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type UserAPITokenHook

type UserAPITokenHook func(context.Context, boil.ContextExecutor, *UserAPIToken) error

UserAPITokenHook is the signature for custom UserAPIToken hook methods

type UserAPITokenSlice

type UserAPITokenSlice []*UserAPIToken

UserAPITokenSlice is an alias for a slice of pointers to UserAPIToken. This should almost always be used instead of []UserAPIToken.

func (UserAPITokenSlice) DeleteAll

func (o UserAPITokenSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*UserAPITokenSlice) ReloadAll

func (o *UserAPITokenSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (UserAPITokenSlice) UpdateAll

func (o UserAPITokenSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type UserGoogle

type UserGoogle struct {
	GoogleID  string    `boil:"google_id" json:"google_id" toml:"google_id" yaml:"google_id"`
	UserID    uint      `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *userGoogleR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userGoogleL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

UserGoogle is an object representing the database table.

func FindUserGoogle

func FindUserGoogle(ctx context.Context, exec boil.ContextExecutor, googleID string, selectCols ...string) (*UserGoogle, error)

FindUserGoogle retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*UserGoogle) Delete

func (o *UserGoogle) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single UserGoogle record with an executor. Delete will match against the primary key column to find the record to delete.

func (*UserGoogle) Exists

func (o *UserGoogle) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the UserGoogle row exists.

func (*UserGoogle) Insert

func (o *UserGoogle) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*UserGoogle) Reload

func (o *UserGoogle) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*UserGoogle) Update

func (o *UserGoogle) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the UserGoogle. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*UserGoogle) Upsert

func (o *UserGoogle) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type UserGoogleHook

type UserGoogleHook func(context.Context, boil.ContextExecutor, *UserGoogle) error

UserGoogleHook is the signature for custom UserGoogle hook methods

type UserGoogleSlice

type UserGoogleSlice []*UserGoogle

UserGoogleSlice is an alias for a slice of pointers to UserGoogle. This should almost always be used instead of []UserGoogle.

func (UserGoogleSlice) DeleteAll

func (o UserGoogleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*UserGoogleSlice) ReloadAll

func (o *UserGoogleSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (UserGoogleSlice) UpdateAll

func (o UserGoogleSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type UserHook

type UserHook func(context.Context, boil.ContextExecutor, *User) error

UserHook is the signature for custom User hook methods

type UserSlice

type UserSlice []*User

UserSlice is an alias for a slice of pointers to User. This should almost always be used instead of []User.

func (UserSlice) DeleteAll

func (o UserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*UserSlice) ReloadAll

func (o *UserSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (UserSlice) UpdateAll

func (o UserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

Jump to

Keyboard shortcuts

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