Initial commit
Initial commit til Git. V2 er deployed
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
|
||||
#nullable disable
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Pos.Dispatcher.Database.Models;
|
||||
|
||||
[Table("employee")]
|
||||
[MySqlCharSet("utf8mb4")]
|
||||
[MySqlCollation("utf8mb4_general_ci")]
|
||||
public partial class Employee
|
||||
{
|
||||
[Key]
|
||||
[Column(TypeName = "int(11)")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(50)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Column(TypeName = "tinyint(4)")]
|
||||
public sbyte IsArchived { get; set; }
|
||||
|
||||
[Column(TypeName = "tinyint(4)")]
|
||||
public sbyte? IsModified { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
|
||||
#nullable disable
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Pos.Dispatcher.Database.Models;
|
||||
|
||||
[Table("payment")]
|
||||
public partial class Payment
|
||||
{
|
||||
[Key]
|
||||
[Column(TypeName = "int(11)")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Column(TypeName = "int(11)")]
|
||||
public int SaleId { get; set; }
|
||||
|
||||
[Precision(20, 6)]
|
||||
public decimal Amount { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column(TypeName = "tinytext")]
|
||||
public string Type { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
|
||||
#nullable disable
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Pos.Dispatcher.Database.Models;
|
||||
|
||||
[Table("product")]
|
||||
[Index("ProductGroupId", Name = "FK_Product_Categories")]
|
||||
[MySqlCharSet("utf8mb4")]
|
||||
[MySqlCollation("utf8mb4_general_ci")]
|
||||
public partial class Product
|
||||
{
|
||||
[Key]
|
||||
[Column(TypeName = "int(11)")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column(TypeName = "tinytext")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Precision(10, 2)]
|
||||
public decimal Price { get; set; }
|
||||
|
||||
[Column(TypeName = "mediumtext")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[Column(TypeName = "int(11)")]
|
||||
public int ProductGroupId { get; set; }
|
||||
|
||||
[Column(TypeName = "tinyint(4)")]
|
||||
public sbyte IsArchived { get; set; }
|
||||
|
||||
[Column(TypeName = "int(11)")]
|
||||
public int Index { get; set; }
|
||||
|
||||
[Column(TypeName = "tinyint(4)")]
|
||||
public sbyte? IsModified { get; set; }
|
||||
|
||||
[ForeignKey("Id")]
|
||||
[InverseProperty("Product")]
|
||||
public virtual Productgroup IdNavigation { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
|
||||
#nullable disable
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Pos.Dispatcher.Database.Models;
|
||||
|
||||
[Table("productgroup")]
|
||||
[MySqlCharSet("utf8mb4")]
|
||||
[MySqlCollation("utf8mb4_general_ci")]
|
||||
public partial class Productgroup
|
||||
{
|
||||
[Key]
|
||||
[Column(TypeName = "int(11)")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column(TypeName = "tinytext")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Column(TypeName = "tinyint(4)")]
|
||||
public sbyte IsArchived { get; set; }
|
||||
|
||||
[Column(TypeName = "int(11)")]
|
||||
public int Index { get; set; }
|
||||
|
||||
[Column(TypeName = "tinyint(4)")]
|
||||
public sbyte? IsModified { get; set; }
|
||||
|
||||
[InverseProperty("IdNavigation")]
|
||||
public virtual Product Product { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
|
||||
#nullable disable
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Pos.Dispatcher.Database.Models;
|
||||
|
||||
[Table("sale")]
|
||||
public partial class Sale
|
||||
{
|
||||
[Key]
|
||||
[Column(TypeName = "int(11)")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime Time { get; set; }
|
||||
|
||||
[Column(TypeName = "int(11)")]
|
||||
public int EmployeeId { get; set; }
|
||||
|
||||
[Column(TypeName = "tinyint(4)")]
|
||||
public sbyte? IsModified { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
|
||||
#nullable disable
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Pos.Dispatcher.Database.Models;
|
||||
|
||||
[Table("sale_line")]
|
||||
public partial class SaleLine
|
||||
{
|
||||
[Key]
|
||||
[Column(TypeName = "int(11)")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Column(TypeName = "int(11)")]
|
||||
public int SaleId { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column(TypeName = "tinytext")]
|
||||
public string Product { get; set; }
|
||||
|
||||
[Column(TypeName = "smallint(6)")]
|
||||
public short Pieces { get; set; }
|
||||
|
||||
[Precision(20, 6)]
|
||||
public decimal Price { get; set; }
|
||||
|
||||
[Precision(20, 6)]
|
||||
public decimal Total { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user