20 lines
746 B
Plaintext
20 lines
746 B
Plaintext
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// CaptainAssistantInbox represents an AI assistant assigned to an inbox.
|
|
// Reference: P2B M10 spec
|
|
type CaptainAssistantInbox struct {
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
AssistantID uint `gorm:"not null;index" json:"assistant_id"`
|
|
InboxID uint `gorm:"not null;index" json:"inbox_id"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime" json:"created_at"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime" json:"updated_at"`
|
|
|
|
Assistant CaptainAssistant `gorm:"foreignKey:AssistantID" json:"assistant,omitempty"`
|
|
Inbox Inbox `gorm:"foreignKey:InboxID" json:"inbox,omitempty"`
|
|
}
|
|
|
|
func (CaptainAssistantInbox) TableName() string { return "captain_assistant_inboxes" } |