// 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 models

import (
	"time"
)

const TableNameTemplate = "template"

// Template mapped from table <template>
type Template struct {
	ID         int64     `gorm:"column:id;type:bigint;primaryKey" json:"id"`
	Title      string    `gorm:"column:title;type:varchar(255);not null;index:title_idx,priority:1" json:"title"`
	Content    string    `gorm:"column:content;type:text;not null" json:"content"`
	IsDeleted  bool      `gorm:"column:is_deleted;type:tinyint(1);not null" json:"is_deleted"`
	CreateTime time.Time `gorm:"column:create_time;type:timestamp;not null;index:create_time_idx,priority:1;default:CURRENT_TIMESTAMP" json:"create_time"`
	UpdateTime time.Time `gorm:"column:update_time;type:timestamp;not null;index:update_time_idx,priority:1;default:CURRENT_TIMESTAMP" json:"update_time"`
}

// TableName Template's table name
func (*Template) TableName() string {
	return TableNameTemplate
}
