Start work for proper database file storage
This commit is contained in:
@@ -25,11 +25,17 @@ namespace MistoxWebsite.Server.Entities {
|
||||
public string Name { get; set; } = "";
|
||||
public string Description { get; set; } = "";
|
||||
public int CurShowingIMG = 0;
|
||||
public string[] Images { get; set; } = new string[0];
|
||||
public FormFile[] Images { get; set; } = [];
|
||||
public int Cost { get; set; }
|
||||
public string URL { get; set; } = "";
|
||||
}
|
||||
|
||||
public class ProductImage {
|
||||
public int ImageID { get; set; } // PK
|
||||
public int ProductID { get; set; }
|
||||
public byte[] Image { get; set; } = [];
|
||||
}
|
||||
|
||||
public class Cart {
|
||||
public int ID { get; set; }
|
||||
public int AccountID { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user