19 lines
473 B
Go
19 lines
473 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type SenlinAgentNote struct {
|
|
ID uint `gorm:"primaryKey"`
|
|
ProjectID uint `gorm:"index;not null"`
|
|
CreatedBy uint `gorm:"index;not null"`
|
|
SourceInboxItemID *uint `gorm:"index"`
|
|
Title string `gorm:"not null"`
|
|
Markdown string `gorm:"type:text"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
func (SenlinAgentNote) TableName() string {
|
|
return "senlin_agent_notes"
|
|
}
|