using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace SkyArtShop.Models;

public class ProductView
{
	[BsonId]
	[BsonRepresentation(BsonType.ObjectId)]
	public string? Id { get; set; }

	public string ProductId { get; set; } = string.Empty;

	public string SessionId { get; set; } = string.Empty;

	public string IpAddress { get; set; } = string.Empty;

	public DateTime ViewedAt { get; set; } = DateTime.UtcNow;
}
