// 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 TableNameTopic = "topics"

// Topic mapped from table <topics>
type Topic struct {
	ID        int64      `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Flag      string     `gorm:"column:flag;not null" json:"flag"`
	Platform  string     `gorm:"column:platform;not null" json:"platform"`
	Owner     int64      `gorm:"column:owner;not null" json:"owner"`
	Name      string     `gorm:"column:name;not null" json:"name"`
	Type      string     `gorm:"column:type;not null" json:"type"`
	Tags      string     `gorm:"column:tags" json:"tags"`
	State     TopicState `gorm:"column:state;not null" json:"state"`
	TouchedAt time.Time  `gorm:"column:touched_at" json:"touched_at"`
	CreatedAt time.Time  `gorm:"column:created_at;not null" json:"created_at"`
	UpdatedAt time.Time  `gorm:"column:updated_at;not null" json:"updated_at"`
}

// TableName Topic's table name
func (*Topic) TableName() string {
	return TableNameTopic
}
