24 lines
891 B
C#
24 lines
891 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using AyCode.Interfaces.Entities;
|
|
using AyCode.Interfaces.TimeStampInfo;
|
|
using TIAM.Core;
|
|
|
|
namespace TIAM.Entities.Products;
|
|
|
|
[Table("Products")]
|
|
public class TiamProduct : Product
|
|
{
|
|
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
|
|
|
public Guid OwnerId { get; set; }
|
|
|
|
public TiamProduct(Guid ownerId, ProductType type, Guid userMediaId, string name, string description, float price, string jsonDetails) : this(Guid.NewGuid(), ownerId, type, userMediaId, name, description, price, jsonDetails) { }
|
|
public TiamProduct(Guid id, Guid ownerId, ProductType type, Guid userMediaId, string name, string description, float price, string jsonDetails) : base(id, type, userMediaId, name, description, price, jsonDetails)
|
|
{
|
|
OwnerId = ownerId;
|
|
}
|
|
|
|
|
|
|
|
} |