package models

import (
	"time"

	"go.mongodb.org/mongo-driver/v2/bson"
)

type CommandHistory struct {
	ID                 bson.ObjectID `bson:"_id,omitempty" json:"id"`
	DeviceImei         int64         `bson:"device_imei" json:"device_imei"`
	Command            string        `bson:"command" json:"command"`
	Device             int64         `bson:"device" json:"device"`
	Timestamp          int64         `bson:"timestamp" json:"timestamp"`
	DeviceName         string        `bson:"name" json:"device_name"`
	DeliveredMessage   string        `bson:"delivered_msg" json:"delivered_msg"`
	LoginName          string        `bson:"login_name" json:"login_name"`
	DeviceResponse     string        `bson:"device_response" json:"device_response"`
	DivisionID         string        `bson:"division_id" json:"division_id"`
	DeviceResponseTime int64         `bson:"device_response_time" json:"device_response_time"`
	IsActive           bool          `bson:"is_active" json:"is_active"`
	PID                string        `bson:"pid" json:"pid"`
	OriginalCommand    string        `bson:"original_command" json:"original_command"`
	ParentID           string        `bson:"parent_id" json:"parent_id"`
	TTLTimestamp       time.Time     `bson:"ttl_timestamp" json:"ttl_timestamp"`
	IsResend           bool          `bson:"is_resend" json:"is_resend"`
	ResentAt           int64         `bson:"resent_at" json:"resent_at"`
}
