// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.

package model

import (
	"time"
)

const TableNameTodo = "todos"

// Todo mapped from table <todos>
type Todo struct {
	ID             int64     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	UID            string    `gorm:"column:uid;not null" json:"uid"`
	Topic          string    `gorm:"column:topic;not null" json:"topic"`
	KeyResultID    int64     `gorm:"column:key_result_id;not null" json:"key_result_id"`
	ParentID       int64     `gorm:"column:parent_id;not null" json:"parent_id"`
	Sequence       int32     `gorm:"column:sequence;not null" json:"sequence"`
	Content        string    `gorm:"column:content;not null" json:"content"`
	Category       string    `gorm:"column:category;not null" json:"category"`
	Remark         string    `gorm:"column:remark;not null" json:"remark"`
	Priority       int32     `gorm:"column:priority;not null" json:"priority"`
	IsRemindAtTime int32     `gorm:"column:is_remind_at_time;not null" json:"is_remind_at_time"`
	RemindAt       int64     `gorm:"column:remind_at;not null" json:"remind_at"`
	RepeatMethod   string    `gorm:"column:repeat_method;not null" json:"repeat_method"`
	RepeatRule     string    `gorm:"column:repeat_rule;not null" json:"repeat_rule"`
	RepeatEndAt    int64     `gorm:"column:repeat_end_at;not null" json:"repeat_end_at"`
	Complete       int32     `gorm:"column:complete;not null" json:"complete"`
	CreatedAt      time.Time `gorm:"column:created_at;not null" json:"created_at"`
	UpdatedAt      time.Time `gorm:"column:updated_at;not null" json:"updated_at"`
	SubTodos       []*Todo   `gorm:"foreignKey:parent_id" json:"sub_todos"`
}

// TableName Todo's table name
func (*Todo) TableName() string {
	return TableNameTodo
}
