added AI auto-generated keywords to customer profile
This commit is contained in:
@@ -32,6 +32,16 @@ const (
|
||||
CustomerRoleAnalyst CustomerRole = "analyst"
|
||||
)
|
||||
|
||||
// KeywordsStatus represents the status of keyword processing
|
||||
type KeywordsStatus string
|
||||
|
||||
const (
|
||||
KeywordsStatusPending KeywordsStatus = "pending"
|
||||
KeywordsStatusInProgress KeywordsStatus = "in_progress"
|
||||
KeywordsStatusReady KeywordsStatus = "ready"
|
||||
KeywordsStatusFailed KeywordsStatus = "failed"
|
||||
)
|
||||
|
||||
// Customer represents a customer in the tender management system
|
||||
// A customer can have an associated company for login purposes
|
||||
type Customer struct {
|
||||
@@ -44,8 +54,10 @@ type Customer struct {
|
||||
Type CustomerType `bson:"type"`
|
||||
Role CustomerRole `bson:"role"`
|
||||
Phone *string `bson:"phone"`
|
||||
Companies []string `bson:"companies"`
|
||||
DeviceToken []string `bson:"device_token"`
|
||||
Companies []string `bson:"companies"`
|
||||
Keywords []string `bson:"keywords,omitempty"`
|
||||
KeywordsStatus KeywordsStatus `bson:"keywords_status,omitempty"`
|
||||
DeviceToken []string `bson:"device_token"`
|
||||
LastLoginAt *int64 `bson:"last_login_at"`
|
||||
UpdatedAt int64 `bson:"updated_at"`
|
||||
CreatedAt int64 `bson:"created_at"`
|
||||
|
||||
Reference in New Issue
Block a user