33 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Go
		
	
	
	
// 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 (
 | 
						|
	"gorm.io/gorm"
 | 
						|
)
 | 
						|
 | 
						|
const TableNameKnowledge = "knowledge"
 | 
						|
 | 
						|
// Knowledge knowledge tabke
 | 
						|
type Knowledge struct {
 | 
						|
	ID          int64          `gorm:"column:id;primaryKey;comment:id" json:"id"`                                                       // id
 | 
						|
	Name        string         `gorm:"column:name;not null;comment:knowledge's name" json:"name"`                                       // knowledge's name
 | 
						|
	AppID       int64          `gorm:"column:app_id;not null;comment:app id" json:"app_id"`                                             // app id
 | 
						|
	CreatorID   int64          `gorm:"column:creator_id;not null;comment:creator id" json:"creator_id"`                                 // creator id
 | 
						|
	SpaceID     int64          `gorm:"column:space_id;not null;comment:space id" json:"space_id"`                                       // space id
 | 
						|
	CreatedAt   int64          `gorm:"column:created_at;not null;comment:Create Time in Milliseconds" json:"created_at"`                // Create Time in Milliseconds
 | 
						|
	UpdatedAt   int64          `gorm:"column:updated_at;not null;comment:Update Time in Milliseconds" json:"updated_at"`                // Update Time in Milliseconds
 | 
						|
	DeletedAt   gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time" json:"deleted_at"`                                         // Delete Time
 | 
						|
	Status      int32          `gorm:"column:status;not null;default:1;comment:0 initialization, 1 effective, 2 invalid" json:"status"` // 0 initialization, 1 effective, 2 invalid
 | 
						|
	Description string         `gorm:"column:description;comment:description" json:"description"`                                       // description
 | 
						|
	IconURI     string         `gorm:"column:icon_uri;comment:icon uri" json:"icon_uri"`                                                // icon uri
 | 
						|
	FormatType  int32          `gorm:"column:format_type;not null;comment:0: Text 1: Table 2: Images" json:"format_type"`               // 0: Text 1: Table 2: Images
 | 
						|
}
 | 
						|
 | 
						|
// TableName Knowledge's table name
 | 
						|
func (*Knowledge) TableName() string {
 | 
						|
	return TableNameKnowledge
 | 
						|
}
 |