2022-07-28 15:00:43 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Template struct {
|
2022-09-15 18:12:18 +00:00
|
|
|
ID string `bson:"_id,omitempty" json:"id"`
|
|
|
|
UserID string `bson:"user_id" json:"user_id"`
|
|
|
|
LeadId string `bson:"lead_id" json:"lead_id"` // AMO lead
|
2022-11-19 13:24:30 +00:00
|
|
|
Name string `bson:"name" json:"name"` // Название шаблона
|
2022-11-12 10:24:48 +00:00
|
|
|
File string `bson:"file" json:"file"` // Имя файла-шаблона for Yandex Disk OR File id for Google Drive
|
2022-09-15 18:12:18 +00:00
|
|
|
StorageID string `bson:"storage_id" json:"storage_id"` // ID of GDisk or YaDisk
|
|
|
|
StorageType string `bson:"storage_type" json:"storage_type"`
|
2022-11-12 10:24:48 +00:00
|
|
|
GroupIDs []string `bson:"group_ids" json:"group_ids"`
|
2022-09-15 18:12:18 +00:00
|
|
|
IsDeleted bool `bson:"is_deleted" json:"is_deleted"`
|
|
|
|
CreatedAt time.Time `bson:"created_at" json:"created_at"`
|
|
|
|
UpdatedAt time.Time `bson:"updated_at" json:"updated_at"`
|
2022-07-28 15:00:43 +00:00
|
|
|
}
|