// 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 TableNameCollection = "collection"

// Collection mapped from table <collection>
type Collection struct {
	ID          int64     `gorm:"column:id;type:bigint;primaryKey" json:"id"`
	UserID      int64     `gorm:"column:user_id;type:bigint;not null;index:user_id_idx,priority:1" json:"user_id"`
	Title       string    `gorm:"column:title;type:varchar(255);not null" json:"title"`
	Description string    `gorm:"column:description;type:text;not null" json:"description"`
	IsDeleted   bool      `gorm:"column:is_deleted;type:tinyint(1);not null;index:user_id_idx,priority:2" 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 Collection's table name
func (*Collection) TableName() string {
	return TableNameCollection
}
