20 lines
874 B
Go
20 lines
874 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Template struct {
|
|
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
|
|
Name string `bson:"name" json:"name"` // Название шаблона
|
|
File string `bson:"file" json:"file"` // Имя файла-шаблона for Yandex Disk OR File id for Google Drive
|
|
StorageID string `bson:"storage_id" json:"storage_id"` // ID of GDisk or YaDisk
|
|
StorageType string `bson:"storage_type" json:"storage_type"`
|
|
GroupIDs []string `bson:"group_ids" json:"group_ids"`
|
|
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"`
|
|
}
|