// Copyright (c) Microsoft. All rights reserved.
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace StructuredDataPlugin;
///
/// Represents a product entity in the database.
///
public sealed class Product
{
///
/// The unique identifier for the product.
///
[Description("The unique identifier for the product.")]
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public Guid? Id { get; set; }
///
/// The description of the product.
///
[Description("The name of the product.")]
public string? Name { get; set; }
///
/// The price of the product.
///
[Description("The price of the product in USD.")]
public decimal? Price { get; set; }
///
/// The date the product was created.
///
[Description("The date the product was created")]
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
public DateTime? DateCreated { get; set; }
}