diff --git a/Client/Biskilog Accounting.Client.csproj b/Client/Biskilog Accounting.Client.csproj index 4f36df1..f82683b 100644 --- a/Client/Biskilog Accounting.Client.csproj +++ b/Client/Biskilog Accounting.Client.csproj @@ -9,6 +9,7 @@ + diff --git a/Client/Pages/Auth/Login.razor b/Client/Pages/Auth/Login.razor index 9c7ec4a..498c8a3 100644 --- a/Client/Pages/Auth/Login.razor +++ b/Client/Pages/Auth/Login.razor @@ -116,11 +116,13 @@
-

We are more than just a company

+

Simplify Your Business Management with Biskilog's Suite of Tools

- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod - tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud - exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Stay on top of your business operations from anywhere with Biskilog - now a user-friendly web application + that not only provides a comprehensive operational summary of all records from the BISKILOG POS software + but also allows you to make sales and access new features. Monitor operations, make informed decisions and simplify + your business management with Biskilog's powerful and convenient web app. Say goodbye to manual record-keeping + and hello to streamlined efficiency with Biskilog.

diff --git a/Server/Biskilog Accounting.Server.csproj b/Server/Biskilog Accounting.Server.csproj index 4e7bb4c..f10e87f 100644 --- a/Server/Biskilog Accounting.Server.csproj +++ b/Server/Biskilog Accounting.Server.csproj @@ -4,17 +4,39 @@ net7.0 enable enable - Biskilog Accounting.Server + Biskilog_Accounting.Server $(AssemblyName.Replace(' ', '_')) - - - + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + diff --git a/Server/DevBiskacdbContext.cs b/Server/DevBiskacdbContext.cs new file mode 100644 index 0000000..f8ce30f --- /dev/null +++ b/Server/DevBiskacdbContext.cs @@ -0,0 +1,1345 @@ +using System; +using System.Collections.Generic; +using Biskilog_Accounting.Shared.POSModels; +using Microsoft.EntityFrameworkCore; + +namespace Biskilog_Accounting.Server.POSModels; + +public partial class DevBiskacdbContext : DbContext +{ + public DevBiskacdbContext() + { + } + + public DevBiskacdbContext(DbContextOptions options) + : base(options) + { + } + + public virtual DbSet Creditpurchases { get; set; } + + public virtual DbSet Customeraccounts { get; set; } + + public virtual DbSet Productaltunits { get; set; } + + public virtual DbSet Restocklevels { get; set; } + + public virtual DbSet Systemuserroles { get; set; } + + public virtual DbSet Tblbranches { get; set; } + + public virtual DbSet Tblbrands { get; set; } + + public virtual DbSet Tblcancelledtransactions { get; set; } + + public virtual DbSet Tblcarts { get; set; } + + public virtual DbSet Tblcategories { get; set; } + + public virtual DbSet Tblcompanydetails { get; set; } + + public virtual DbSet Tblcustomers { get; set; } + + public virtual DbSet Tblcustomerpurchases { get; set; } + + public virtual DbSet Tbldeliverydetails { get; set; } + + public virtual DbSet Tbldeliveryheads { get; set; } + + public virtual DbSet Tbldeliveryrecipients { get; set; } + + public virtual DbSet Tbldiscountlogs { get; set; } + + public virtual DbSet Tbldrivers { get; set; } + + public virtual DbSet Tblinventories { get; set; } + + public virtual DbSet Tblinventoryentries { get; set; } + + public virtual DbSet Tblinvoices { get; set; } + + public virtual DbSet Tblpricechanges { get; set; } + + public virtual DbSet Tblproducts { get; set; } + + public virtual DbSet Tbltrucks { get; set; } + + public virtual DbSet TbltruckDrivermappings { get; set; } + + public virtual DbSet Tbltruckassignments { get; set; } + + public virtual DbSet Tbltruckinventories { get; set; } + + public virtual DbSet Tblusers { get; set; } + + public virtual DbSet Tbstocks { get; set; } + + public virtual DbSet Unitofmeasures { get; set; } + + protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) +#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see http://go.microsoft.com/fwlink/?LinkId=723263. + => optionsBuilder.UseMySql("server=54.37.19.162;database=dev_biskacdb;user=biskilog;password=mefbuk-6niFsu-fytrew", Microsoft.EntityFrameworkCore.ServerVersion.Parse("10.3.38-mariadb")); + + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + modelBuilder + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.ReceiptId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("creditpurchases") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.ReceiptId) + .HasMaxLength(120) + .HasColumnName("receiptID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .HasDefaultValueSql("'0'") + .IsFixedLength() + .HasColumnName("branchID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.CustomerId) + .HasMaxLength(120) + .HasDefaultValueSql("'0'") + .HasColumnName("customerID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Date) + .ValueGeneratedOnAddOrUpdate() + .HasDefaultValueSql("current_timestamp()") + .HasColumnType("timestamp") + .HasColumnName("date"); + entity.Property(e => e.Paid) + .HasPrecision(19, 2) + .HasColumnName("paid"); + entity.Property(e => e.Status) + .HasMaxLength(10) + .HasDefaultValueSql("'0'") + .IsFixedLength() + .HasColumnName("status") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.TotalBill) + .HasPrecision(19, 2) + .HasColumnName("totalBill"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.BranchId, e.CountId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("customeraccounts") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .HasDefaultValueSql("''") + .IsFixedLength() + .HasColumnName("branchID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.CountId) + .HasMaxLength(120) + .HasDefaultValueSql("''") + .HasColumnName("countID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Balance) + .HasPrecision(19, 2) + .HasColumnName("balance"); + entity.Property(e => e.Comments) + .HasColumnType("text") + .HasColumnName("comments") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Credit) + .HasPrecision(19, 2) + .HasColumnName("credit"); + entity.Property(e => e.CustomerId) + .HasMaxLength(120) + .HasColumnName("customerID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Date) + .ValueGeneratedOnAddOrUpdate() + .HasDefaultValueSql("current_timestamp()") + .HasColumnType("timestamp") + .HasColumnName("date"); + entity.Property(e => e.Debit) + .HasPrecision(19, 2) + .HasColumnName("debit"); + entity.Property(e => e.TransactionId) + .HasMaxLength(120) + .HasColumnName("transactionID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.DistinctiveCode, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("productaltunit") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.DistinctiveCode) + .HasMaxLength(120) + .HasColumnName("distinctiveCode") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.BranchId) + .HasMaxLength(120) + .HasColumnName("branchID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Pcode) + .HasMaxLength(120) + .HasColumnName("pcode") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.PriceUnit) + .HasPrecision(19, 2) + .HasColumnName("price/unit"); + entity.Property(e => e.QuantityUnit) + .HasColumnType("int(11)") + .HasColumnName("quantity/unit"); + entity.Property(e => e.UnitBarcode) + .HasMaxLength(20) + .HasColumnName("unitBarcode") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.UnitCode) + .HasMaxLength(120) + .HasColumnName("unitCode") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.ProductId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("restocklevels") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.ProductId) + .HasMaxLength(150) + .HasColumnName("productID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.BranchId) + .HasMaxLength(20) + .HasColumnName("branchID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Unit) + .HasMaxLength(150) + .HasColumnName("unit") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.WarnLevel) + .HasColumnType("int(11)") + .HasColumnName("warnLevel"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.Id).HasName("PRIMARY"); + + entity + .ToTable("systemuserroles") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.Id) + .ValueGeneratedNever() + .HasColumnType("int(11)") + .HasColumnName("id"); + entity.Property(e => e.Assist) + .HasColumnType("tinyint(4)") + .HasColumnName("assist"); + entity.Property(e => e.Cashier) + .HasColumnType("tinyint(4)") + .HasColumnName("cashier"); + entity.Property(e => e.Manager) + .HasColumnType("tinyint(4)") + .HasColumnName("manager"); + entity.Property(e => e.Owner) + .HasColumnType("tinyint(4)") + .HasColumnName("owner"); + entity.Property(e => e.Roles) + .HasColumnName("roles") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.BranchId).HasName("PRIMARY"); + + entity + .ToTable("tblbranches") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.BranchId) + .HasMaxLength(12) + .HasColumnName("branchID"); + entity.Property(e => e.Address) + .HasMaxLength(50) + .HasColumnName("address") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.BranchName) + .HasMaxLength(50) + .HasColumnName("branchName") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.BranchTelephone) + .HasMaxLength(50) + .HasColumnName("branch_telephone") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.City) + .HasMaxLength(50) + .HasColumnName("city") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.StateOrProvince) + .HasMaxLength(50) + .HasColumnName("state_or_province") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.Id, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tblbrand") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.Id) + .HasMaxLength(50) + .HasColumnName("id"); + entity.Property(e => e.BranchId) + .HasMaxLength(12) + .HasColumnName("branchID"); + entity.Property(e => e.Brand) + .HasMaxLength(50) + .HasColumnName("brand") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.BranchId, e.CountId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tblcancelledtransactions") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.BranchId) + .HasMaxLength(50) + .HasColumnName("branchID"); + entity.Property(e => e.CountId) + .HasMaxLength(50) + .HasColumnName("countID"); + entity.Property(e => e.CancelledBy) + .HasMaxLength(50) + .HasColumnName("cancelledBy") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.DateCancelled) + .HasColumnType("timestamp") + .HasColumnName("dateCancelled"); + entity.Property(e => e.Transno) + .HasColumnName("transno") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.BranchId, e.CountId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tblcart") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .HasDefaultValueSql("''") + .IsFixedLength() + .HasColumnName("branchID"); + entity.Property(e => e.CountId) + .HasMaxLength(200) + .HasColumnName("countID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Cashier) + .HasMaxLength(50) + .HasColumnName("cashier"); + entity.Property(e => e.Costprice) + .HasPrecision(19, 2) + .HasColumnName("costprice"); + entity.Property(e => e.Date) + .HasColumnType("timestamp") + .HasColumnName("date"); + entity.Property(e => e.Id) + .HasMaxLength(50) + .HasColumnName("id"); + entity.Property(e => e.Price) + .HasPrecision(19, 2) + .HasColumnName("price"); + entity.Property(e => e.Quantity) + .HasColumnType("int(11)") + .HasColumnName("quantity"); + entity.Property(e => e.Status) + .HasMaxLength(50) + .HasColumnName("status") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Total) + .HasPrecision(19, 2) + .HasColumnName("total"); + entity.Property(e => e.Transno) + .HasColumnName("transno") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Unit) + .HasMaxLength(120) + .HasColumnName("unit") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.Id, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tblcategory") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.Id) + .HasMaxLength(50) + .HasColumnName("id"); + entity.Property(e => e.BranchId) + .HasMaxLength(12) + .HasColumnName("branchID"); + entity.Property(e => e.Category) + .HasMaxLength(50) + .HasColumnName("category") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.Tin).HasName("PRIMARY"); + + entity + .ToTable("tblcompanydetails") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.Tin) + .HasMaxLength(60) + .HasColumnName("tin"); + entity.Property(e => e.Address) + .HasMaxLength(50) + .HasColumnName("address") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.CompanyName) + .HasMaxLength(50) + .HasColumnName("company_name") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Email) + .HasMaxLength(50) + .HasColumnName("email") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.MainTelephone) + .HasMaxLength(50) + .HasColumnName("main_telephone"); + entity.Property(e => e.Vatno) + .HasMaxLength(60) + .HasColumnName("vatno"); + entity.Property(e => e.Website) + .HasMaxLength(50) + .HasColumnName("website") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.CustomerId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tblcustomers") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.CustomerId) + .HasMaxLength(30) + .HasColumnName("customerID"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .HasDefaultValueSql("''") + .IsFixedLength() + .HasColumnName("branchID"); + entity.Property(e => e.Address) + .HasMaxLength(50) + .HasColumnName("address") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.DateAdded) + .HasColumnType("timestamp") + .HasColumnName("dateAdded"); + entity.Property(e => e.DateExit) + .HasColumnType("timestamp") + .HasColumnName("dateExit"); + entity.Property(e => e.Email) + .HasMaxLength(50) + .HasColumnName("email"); + entity.Property(e => e.FinancialStatus) + .HasMaxLength(20) + .HasColumnName("financialStatus") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Firstname) + .HasMaxLength(50) + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.NameKey1) + .HasMaxLength(120) + .HasColumnName("name_key1") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.NameKey2) + .HasMaxLength(120) + .HasColumnName("name_key2") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Status) + .HasMaxLength(20) + .HasColumnName("status") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Surname) + .HasMaxLength(50) + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Telephone) + .HasMaxLength(50) + .HasColumnName("telephone") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Tin) + .HasMaxLength(50) + .HasColumnName("tin"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.BranchId, e.CountId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tblcustomerpurchases") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .HasDefaultValueSql("''") + .IsFixedLength() + .HasColumnName("branchID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.CountId) + .HasMaxLength(50) + .HasColumnName("countID"); + entity.Property(e => e.CustomerId) + .HasMaxLength(50) + .HasColumnName("customerID"); + entity.Property(e => e.TransactionId) + .HasMaxLength(50) + .HasColumnName("transactionID"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.CountId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tbldeliverydetails") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.CountId) + .HasMaxLength(100) + .HasColumnName("countID"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .IsFixedLength() + .HasColumnName("branchID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Cost) + .HasPrecision(19, 2) + .HasColumnName("cost"); + entity.Property(e => e.DeliveryId) + .HasMaxLength(60) + .HasColumnName("deliveryID"); + entity.Property(e => e.Pcode) + .HasMaxLength(60) + .HasColumnName("pcode"); + entity.Property(e => e.Quantity) + .HasColumnType("int(11)") + .HasColumnName("quantity"); + entity.Property(e => e.Unit) + .HasMaxLength(120) + .HasColumnName("unit") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.DeliveryId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tbldeliveryhead") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.DeliveryId) + .HasMaxLength(60) + .HasColumnName("deliveryID"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .IsFixedLength() + .HasColumnName("branchID"); + entity.Property(e => e.CustomerId) + .HasMaxLength(60) + .HasColumnName("customerID"); + entity.Property(e => e.DateCompleted) + .HasMaxLength(6) + .HasColumnName("dateCompleted"); + entity.Property(e => e.DateInitiated) + .HasMaxLength(6) + .HasColumnName("dateInitiated"); + entity.Property(e => e.Destination) + .HasMaxLength(60) + .HasColumnName("destination"); + entity.Property(e => e.GeneratedBy) + .HasMaxLength(50) + .HasColumnName("generatedBy") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Status) + .HasMaxLength(20) + .HasColumnName("status") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.TotalCost) + .HasPrecision(19, 2) + .HasColumnName("totalCost"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.DeliveryId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tbldeliveryrecipients") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.DeliveryId) + .HasMaxLength(60) + .HasColumnName("deliveryID"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .IsFixedLength() + .HasColumnName("branchID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Address) + .HasMaxLength(60) + .HasColumnName("address"); + entity.Property(e => e.CustomerId) + .HasMaxLength(60) + .HasColumnName("customerID"); + entity.Property(e => e.Email) + .HasMaxLength(60) + .HasColumnName("email"); + entity.Property(e => e.FromDate).HasColumnName("fromDate"); + entity.Property(e => e.Fullname) + .HasColumnName("fullname") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Telephone) + .HasMaxLength(15) + .HasColumnName("telephone") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.ToDate).HasColumnName("toDate"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.BranchId, e.CountId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tbldiscountlogs") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .IsFixedLength() + .HasColumnName("branchID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.CountId) + .HasMaxLength(150) + .HasDefaultValueSql("''") + .HasColumnName("countID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Cashier) + .HasMaxLength(50) + .HasColumnName("cashier") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Date) + .HasMaxLength(6) + .HasColumnName("date"); + entity.Property(e => e.Discount) + .HasPrecision(19, 2) + .HasColumnName("discount"); + entity.Property(e => e.ReceiptId) + .HasMaxLength(50) + .HasColumnName("receiptID"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.DriverId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tbldrivers") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.DriverId) + .HasMaxLength(50) + .HasColumnName("driverID"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .HasDefaultValueSql("''") + .IsFixedLength() + .HasColumnName("branchID"); + entity.Property(e => e.Address1) + .HasMaxLength(50) + .HasColumnName("address1") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Address2) + .HasMaxLength(50) + .HasColumnName("address2") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.City) + .HasMaxLength(50) + .HasColumnName("city") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.DateOfBirth).HasColumnName("dateOfBirth"); + entity.Property(e => e.Email) + .HasMaxLength(120) + .HasColumnName("email") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Firstname) + .HasMaxLength(50) + .HasColumnName("firstname") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Middlename) + .HasMaxLength(50) + .HasColumnName("middlename") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.State) + .HasMaxLength(50) + .HasColumnName("state") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Status) + .HasMaxLength(50) + .HasColumnName("status") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Surname) + .HasMaxLength(50) + .HasColumnName("surname") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Telephone) + .HasMaxLength(20) + .HasColumnName("telephone") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.BranchId, e.CountId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tblinventory") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .HasDefaultValueSql("''") + .IsFixedLength() + .HasColumnName("branchID"); + entity.Property(e => e.CountId) + .HasMaxLength(50) + .HasColumnName("countID"); + entity.Property(e => e.Pcode) + .HasMaxLength(50) + .HasColumnName("pcode"); + entity.Property(e => e.Quantity) + .HasColumnType("int(11)") + .HasColumnName("quantity"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.CountId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tblinventoryentries") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.CountId) + .HasMaxLength(120) + .HasColumnName("countID"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .IsFixedLength() + .HasColumnName("branchID"); + entity.Property(e => e.Date) + .HasMaxLength(6) + .HasColumnName("date"); + entity.Property(e => e.Pcode) + .HasMaxLength(50) + .HasColumnName("pcode"); + entity.Property(e => e.Quantity) + .HasColumnType("int(11)") + .HasColumnName("quantity"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.CountId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tblinvoice") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.CountId) + .HasMaxLength(50) + .HasColumnName("countID"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .HasDefaultValueSql("''") + .IsFixedLength() + .HasColumnName("branchID"); + entity.Property(e => e.DateGenerated).HasColumnName("dateGenerated"); + entity.Property(e => e.GeneratedBy) + .HasMaxLength(50) + .HasColumnName("generatedBy"); + entity.Property(e => e.InvoiceId) + .HasMaxLength(60) + .HasColumnName("invoiceID"); + entity.Property(e => e.Pcode) + .HasMaxLength(50) + .HasColumnName("pcode"); + entity.Property(e => e.Quantity) + .HasColumnType("int(11)") + .HasColumnName("quantity"); + entity.Property(e => e.Status) + .HasMaxLength(16) + .HasColumnName("status") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Totalprice) + .HasPrecision(19, 2) + .HasColumnName("totalprice"); + entity.Property(e => e.Unit) + .HasMaxLength(120) + .HasColumnName("unit") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Unitprice) + .HasPrecision(19, 2) + .HasColumnName("unitprice"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.CountId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tblpricechanges") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.CountId) + .HasMaxLength(70) + .HasColumnName("countID"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .IsFixedLength() + .HasColumnName("branchID"); + entity.Property(e => e.ChangeDate) + .HasMaxLength(6) + .HasColumnName("change_date"); + entity.Property(e => e.CurrentPrice) + .HasPrecision(19, 2) + .HasColumnName("current_price"); + entity.Property(e => e.Pcode) + .HasMaxLength(120) + .HasColumnName("pcode"); + entity.Property(e => e.PreviousPrice) + .HasPrecision(19, 2) + .HasColumnName("previous_price"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.CountId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tblproduct") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.CountId) + .HasMaxLength(50) + .HasColumnName("countID"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .IsFixedLength() + .HasColumnName("branchID"); + entity.Property(e => e.Barcode) + .HasMaxLength(50) + .HasColumnName("barcode") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.BaseUnit) + .HasMaxLength(120) + .HasColumnName("baseUnit") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Bid) + .HasMaxLength(50) + .HasColumnName("bid"); + entity.Property(e => e.Cid) + .HasMaxLength(50) + .HasColumnName("cid"); + entity.Property(e => e.Costprice) + .HasPrecision(19, 2) + .HasColumnName("costprice"); + entity.Property(e => e.Pcode) + .HasMaxLength(50) + .HasColumnName("pcode"); + entity.Property(e => e.Pdesc) + .HasColumnName("pdesc") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Price) + .HasPrecision(19, 2) + .HasColumnName("price"); + entity.Property(e => e.ProductName) + .HasColumnName("product_name") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Status) + .HasMaxLength(20) + .HasColumnName("status") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.TruckId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tbltrucks") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.TruckId) + .HasMaxLength(60) + .HasColumnName("truckID"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .IsFixedLength() + .HasColumnName("branchID"); + entity.Property(e => e.Brand) + .HasMaxLength(50) + .HasColumnName("brand") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Driver) + .HasMaxLength(50) + .HasColumnName("driver"); + entity.Property(e => e.LicensePlate) + .HasMaxLength(60) + .HasColumnName("licensePlate"); + entity.Property(e => e.Weight) + .HasPrecision(19, 2) + .HasColumnName("weight"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.CountId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tbltruck_drivermapping") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.CountId) + .HasMaxLength(60) + .HasColumnName("countID"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .IsFixedLength() + .HasColumnName("branchID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.DateEntry) + .HasMaxLength(6) + .HasColumnName("dateEntry"); + entity.Property(e => e.DriverId) + .HasMaxLength(50) + .HasColumnName("driverID"); + entity.Property(e => e.Operation) + .HasMaxLength(50) + .HasColumnName("operation") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.TruckId) + .HasMaxLength(50) + .HasColumnName("truckID"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.CountId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tbltruckassignments") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.CountId) + .HasMaxLength(100) + .HasColumnName("countID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .IsFixedLength() + .HasColumnName("branchID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Cost) + .HasPrecision(19, 2) + .HasColumnName("cost"); + entity.Property(e => e.DateAssigned) + .HasMaxLength(6) + .HasColumnName("dateAssigned"); + entity.Property(e => e.OrderId) + .HasMaxLength(50) + .HasColumnName("orderID"); + entity.Property(e => e.Status) + .HasMaxLength(50) + .HasColumnName("status") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.TruckId) + .HasMaxLength(50) + .HasColumnName("truckID"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.CountId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tbltruckinventory") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.CountId) + .HasMaxLength(50) + .HasColumnName("countID"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .IsFixedLength() + .HasColumnName("branchID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Pcode) + .HasMaxLength(50) + .HasColumnName("pcode"); + entity.Property(e => e.Quantity) + .HasColumnType("int(11)") + .HasColumnName("quantity"); + entity.Property(e => e.TruckId) + .HasMaxLength(50) + .HasColumnName("truckID"); + entity.Property(e => e.Unit) + .HasMaxLength(120) + .HasColumnName("unit") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.Username, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tblusers") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.Username) + .HasMaxLength(50) + .HasColumnName("username"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .HasDefaultValueSql("''") + .IsFixedLength() + .HasColumnName("branchID"); + entity.Property(e => e.AccessLevel) + .HasMaxLength(10) + .HasColumnName("access_level") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.City) + .HasMaxLength(50) + .HasColumnName("city") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Email) + .HasMaxLength(50) + .HasColumnName("email") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Firstname) + .HasMaxLength(50) + .HasColumnName("firstname") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.LastLogin) + .HasMaxLength(6) + .HasColumnName("last_login"); + entity.Property(e => e.Password) + .HasColumnName("password") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.StateOrProvince) + .HasMaxLength(50) + .HasColumnName("state_or_province") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.StreetAddress1) + .HasMaxLength(50) + .HasColumnName("street_address1") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.StreetAddress2) + .HasMaxLength(50) + .HasColumnName("street_address2") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Surname) + .HasMaxLength(50) + .HasColumnName("surname") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Telephone) + .HasMaxLength(15) + .HasColumnName("telephone") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.CountId, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("tbstock") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.CountId) + .HasMaxLength(50) + .HasColumnName("countID"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .IsFixedLength() + .HasColumnName("branchID"); + entity.Property(e => e.Pcode) + .HasMaxLength(50) + .HasColumnName("pcode"); + entity.Property(e => e.Qty) + .HasColumnType("int(11)") + .HasColumnName("qty"); + entity.Property(e => e.Refno) + .HasMaxLength(50) + .HasColumnName("refno"); + entity.Property(e => e.Sdate).HasColumnName("sdate"); + entity.Property(e => e.Stockinby) + .HasMaxLength(50) + .HasColumnName("stockinby") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.UnitCode, e.BranchId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("unitofmeasure") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.UnitCode) + .HasMaxLength(120) + .HasColumnName("unitCode"); + entity.Property(e => e.BranchId) + .HasMaxLength(10) + .HasDefaultValueSql("''") + .IsFixedLength() + .HasColumnName("branchID") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Status) + .HasMaxLength(50) + .HasColumnName("status") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Unitname) + .HasMaxLength(120) + .HasColumnName("unitname") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Unitshort) + .HasMaxLength(120) + .HasColumnName("unitshort") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + OnModelCreatingPartial(modelBuilder); + } + + partial void OnModelCreatingPartial(ModelBuilder modelBuilder); +} diff --git a/Server/DevBiskilogclientsContext.cs b/Server/DevBiskilogclientsContext.cs new file mode 100644 index 0000000..87824c9 --- /dev/null +++ b/Server/DevBiskilogclientsContext.cs @@ -0,0 +1,267 @@ +using System; +using System.Collections.Generic; +using Biskilog_Accounting.Shared.ClientContractModels; +using Microsoft.EntityFrameworkCore; + +namespace Biskilog_Accounting.Server; + +public partial class DevBiskilogclientsContext : DbContext +{ + public DevBiskilogclientsContext() + { + } + + public DevBiskilogclientsContext(DbContextOptions options) + : base(options) + { + } + + public virtual DbSet Authtypes { get; set; } + + public virtual DbSet Clientbusinesses { get; set; } + + public virtual DbSet Clientinfos { get; set; } + + public virtual DbSet Contracts { get; set; } + + public virtual DbSet Databasemaps { get; set; } + + public virtual DbSet Siteaccesspermissions { get; set; } + + public virtual DbSet Userauths { get; set; } + + protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) +#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see http://go.microsoft.com/fwlink/?LinkId=723263. + => optionsBuilder.UseMySql("server=54.37.19.162;database=dev_biskilogclients;user=biskilog;password=mefbuk-6niFsu-fytrew", ServerVersion.Parse("10.3.38-mariadb")); + + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + modelBuilder + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.Id).HasName("PRIMARY"); + + entity + .ToTable("authtypes") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.Id) + .HasColumnType("int(11)") + .HasColumnName("id"); + entity.Property(e => e.Type) + .HasMaxLength(50) + .HasColumnName("type") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.BusinessId, e.ClientId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0 }); + + entity + .ToTable("clientbusiness") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.BusinessId) + .HasComment("there could be multiple branches of the same business") + .HasColumnType("int(11)") + .HasColumnName("businessId"); + entity.Property(e => e.ClientId) + .HasColumnType("int(11)") + .HasColumnName("clientID"); + entity.Property(e => e.BiskilogVersion) + .HasMaxLength(50) + .HasDefaultValueSql("''") + .HasColumnName("biskilog_version") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.BusinessName) + .HasMaxLength(50) + .HasDefaultValueSql("''") + .HasColumnName("business_name") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.DateJoined) + .HasDefaultValueSql("current_timestamp()") + .HasColumnType("datetime") + .HasColumnName("date_joined"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.ClientId).HasName("PRIMARY"); + + entity + .ToTable("clientinfo") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.ClientId) + .HasColumnType("int(11)") + .HasColumnName("clientID"); + entity.Property(e => e.Email) + .HasMaxLength(200) + .HasColumnName("email") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Fullname) + .HasMaxLength(200) + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.PhoneNumber) + .HasMaxLength(200) + .HasColumnName("phoneNumber") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.ContractId).HasName("PRIMARY"); + + entity + .ToTable("contracts") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.HasIndex(e => new { e.ClientId, e.BusinessId }, "clientId_businessId").IsUnique(); + + entity.Property(e => e.ContractId) + .HasColumnType("int(11)") + .HasColumnName("contractId"); + entity.Property(e => e.Bill) + .HasPrecision(18, 2) + .HasColumnName("bill"); + entity.Property(e => e.BusinessId) + .HasColumnType("int(11)") + .HasColumnName("businessId"); + entity.Property(e => e.ClientId) + .HasColumnType("int(11)") + .HasColumnName("clientId"); + entity.Property(e => e.Comments) + .HasColumnType("text") + .HasColumnName("comments") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.EndDate) + .HasColumnType("datetime") + .HasColumnName("end_date"); + entity.Property(e => e.StartDate) + .HasColumnType("datetime") + .HasColumnName("start_date"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.DbNo).HasName("PRIMARY"); + + entity + .ToTable("databasemap") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.HasIndex(e => e.ClientId, "businessId").IsUnique(); + + entity.Property(e => e.DbNo) + .HasColumnType("int(11)") + .HasColumnName("db_no"); + entity.Property(e => e.ClientId) + .HasColumnType("int(11)") + .HasColumnName("clientID"); + entity.Property(e => e.DbName) + .HasMaxLength(50) + .HasDefaultValueSql("''") + .HasColumnName("db_name") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => new { e.UserId, e.BusinessId, e.ClientId }) + .HasName("PRIMARY") + .HasAnnotation("MySql:IndexPrefixLength", new[] { 0, 0, 0 }); + + entity + .ToTable("siteaccesspermission") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.Property(e => e.UserId) + .HasColumnType("int(11)") + .HasColumnName("userID"); + entity.Property(e => e.BusinessId) + .HasComment("businessIds could also been seen as branchID") + .HasColumnType("int(11)") + .HasColumnName("businessId"); + entity.Property(e => e.ClientId) + .HasColumnType("int(11)") + .HasColumnName("clientId"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.UserId).HasName("PRIMARY"); + + entity + .ToTable("userauth") + .HasCharSet("utf8") + .UseCollation("utf8_general_ci"); + + entity.HasIndex(e => e.AuthType, "authType"); + + entity.HasIndex(e => new { e.ClientId, e.Username, e.Email }, "clientId_username_email").IsUnique(); + + entity.Property(e => e.UserId) + .HasColumnType("int(11)") + .HasColumnName("userId"); + entity.Property(e => e.AuthType) + .HasColumnType("int(11)") + .HasColumnName("authType"); + entity.Property(e => e.ClientId) + .HasColumnType("int(11)") + .HasColumnName("clientId"); + entity.Property(e => e.Email) + .HasMaxLength(200) + .HasColumnName("email") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Isactive) + .HasColumnType("bit(1)") + .HasColumnName("isactive"); + entity.Property(e => e.Isowner) + .HasColumnType("bit(1)") + .HasColumnName("isowner"); + entity.Property(e => e.LastLogin) + .HasColumnType("datetime") + .HasColumnName("last_login"); + entity.Property(e => e.Passsword) + .HasMaxLength(200) + .HasColumnName("passsword") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.PhoneNumber) + .HasMaxLength(50) + .HasColumnName("phoneNumber") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Username) + .HasMaxLength(30) + .HasColumnName("username") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + }); + + OnModelCreatingPartial(modelBuilder); + } + + partial void OnModelCreatingPartial(ModelBuilder modelBuilder); +} diff --git a/Shared/Biskilog Accounting.Shared.csproj b/Shared/Biskilog Accounting.Shared.csproj index 3c56617..34ee232 100644 --- a/Shared/Biskilog Accounting.Shared.csproj +++ b/Shared/Biskilog Accounting.Shared.csproj @@ -6,7 +6,16 @@ enable + + + + + + + + + diff --git a/Shared/ClientContractModels/Authtype.cs b/Shared/ClientContractModels/Authtype.cs new file mode 100644 index 0000000..f463a31 --- /dev/null +++ b/Shared/ClientContractModels/Authtype.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.ClientContractModels; + +public partial class Authtype +{ + public int Id { get; set; } + + public string? Type { get; set; } +} diff --git a/Shared/ClientContractModels/Clientbusiness.cs b/Shared/ClientContractModels/Clientbusiness.cs new file mode 100644 index 0000000..83a4577 --- /dev/null +++ b/Shared/ClientContractModels/Clientbusiness.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.ClientContractModels; + +public partial class Clientbusiness +{ + /// + /// there could be multiple branches of the same business + /// + public int BusinessId { get; set; } + + public int ClientId { get; set; } + + public string BusinessName { get; set; } = null!; + + public string BiskilogVersion { get; set; } = null!; + + public DateTime DateJoined { get; set; } +} diff --git a/Shared/ClientContractModels/Clientinfo.cs b/Shared/ClientContractModels/Clientinfo.cs new file mode 100644 index 0000000..5ab644a --- /dev/null +++ b/Shared/ClientContractModels/Clientinfo.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.ClientContractModels; + +public partial class Clientinfo +{ + public int ClientId { get; set; } + + public string? Fullname { get; set; } + + public string? PhoneNumber { get; set; } + + public string? Email { get; set; } +} diff --git a/Shared/ClientContractModels/Contract.cs b/Shared/ClientContractModels/Contract.cs new file mode 100644 index 0000000..1b95002 --- /dev/null +++ b/Shared/ClientContractModels/Contract.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.ClientContractModels; + +public partial class Contract +{ + public int ContractId { get; set; } + + public int ClientId { get; set; } + + public int? BusinessId { get; set; } + + public DateTime? StartDate { get; set; } + + public DateTime? EndDate { get; set; } + + public decimal? Bill { get; set; } + + public string Comments { get; set; } = null!; +} diff --git a/Shared/ClientContractModels/Databasemap.cs b/Shared/ClientContractModels/Databasemap.cs new file mode 100644 index 0000000..b4ad7a1 --- /dev/null +++ b/Shared/ClientContractModels/Databasemap.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.ClientContractModels; + +public partial class Databasemap +{ + public int DbNo { get; set; } + + public string DbName { get; set; } = null!; + + public int ClientId { get; set; } +} diff --git a/Shared/ClientContractModels/Siteaccesspermission.cs b/Shared/ClientContractModels/Siteaccesspermission.cs new file mode 100644 index 0000000..1b8b130 --- /dev/null +++ b/Shared/ClientContractModels/Siteaccesspermission.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.ClientContractModels; + +public partial class Siteaccesspermission +{ + public int UserId { get; set; } + + /// + /// businessIds could also been seen as branchID + /// + public int BusinessId { get; set; } + + public int ClientId { get; set; } +} diff --git a/Shared/ClientContractModels/Userauth.cs b/Shared/ClientContractModels/Userauth.cs new file mode 100644 index 0000000..d8b010a --- /dev/null +++ b/Shared/ClientContractModels/Userauth.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.ClientContractModels; + +public partial class Userauth +{ + public int UserId { get; set; } + + public int ClientId { get; set; } + + public string? Username { get; set; } + + public string? Email { get; set; } + + public string? Passsword { get; set; } + + public string? PhoneNumber { get; set; } + + public int AuthType { get; set; } + + public ulong Isactive { get; set; } + + public ulong? Isowner { get; set; } + + public DateTime? LastLogin { get; set; } +} diff --git a/Shared/POSModels/Creditpurchase.cs b/Shared/POSModels/Creditpurchase.cs new file mode 100644 index 0000000..e2d2e93 --- /dev/null +++ b/Shared/POSModels/Creditpurchase.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Creditpurchase +{ + public string ReceiptId { get; set; } = null!; + + public string BranchId { get; set; } = null!; + + public DateTime Date { get; set; } + + public decimal TotalBill { get; set; } + + public decimal Paid { get; set; } + + public string CustomerId { get; set; } = null!; + + public string Status { get; set; } = null!; +} diff --git a/Shared/POSModels/Customeraccount.cs b/Shared/POSModels/Customeraccount.cs new file mode 100644 index 0000000..b81fcc1 --- /dev/null +++ b/Shared/POSModels/Customeraccount.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Customeraccount +{ + public string CustomerId { get; set; } = null!; + + public string TransactionId { get; set; } = null!; + + public DateTime Date { get; set; } + + public decimal Debit { get; set; } + + public decimal Credit { get; set; } + + public decimal Balance { get; set; } + + public string Comments { get; set; } = null!; + + public string BranchId { get; set; } = null!; + + public string CountId { get; set; } = null!; +} diff --git a/Shared/POSModels/Productaltunit.cs b/Shared/POSModels/Productaltunit.cs new file mode 100644 index 0000000..93937fe --- /dev/null +++ b/Shared/POSModels/Productaltunit.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Productaltunit +{ + public string? Pcode { get; set; } + + public string? UnitCode { get; set; } + + public string? UnitBarcode { get; set; } + + public decimal? PriceUnit { get; set; } + + public int? QuantityUnit { get; set; } + + public string DistinctiveCode { get; set; } = null!; + + public string BranchId { get; set; } = null!; +} diff --git a/Shared/POSModels/Restocklevel.cs b/Shared/POSModels/Restocklevel.cs new file mode 100644 index 0000000..966e5b5 --- /dev/null +++ b/Shared/POSModels/Restocklevel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Restocklevel +{ + public string ProductId { get; set; } = null!; + + public string BranchId { get; set; } = null!; + + public int? WarnLevel { get; set; } + + public string? Unit { get; set; } +} diff --git a/Shared/POSModels/Systemuserrole.cs b/Shared/POSModels/Systemuserrole.cs new file mode 100644 index 0000000..08f478d --- /dev/null +++ b/Shared/POSModels/Systemuserrole.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Systemuserrole +{ + public string? Roles { get; set; } + + public sbyte? Owner { get; set; } + + public sbyte? Manager { get; set; } + + public sbyte? Assist { get; set; } + + public sbyte? Cashier { get; set; } + + public int Id { get; set; } +} diff --git a/Shared/POSModels/Tblbranch.cs b/Shared/POSModels/Tblbranch.cs new file mode 100644 index 0000000..e4926d5 --- /dev/null +++ b/Shared/POSModels/Tblbranch.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tblbranch +{ + public string? BranchName { get; set; } + + public string BranchId { get; set; } = null!; + + public string? Address { get; set; } + + public string? City { get; set; } + + public string? StateOrProvince { get; set; } + + public string? BranchTelephone { get; set; } +} diff --git a/Shared/POSModels/Tblbrand.cs b/Shared/POSModels/Tblbrand.cs new file mode 100644 index 0000000..97279b4 --- /dev/null +++ b/Shared/POSModels/Tblbrand.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tblbrand +{ + public string Id { get; set; } = null!; + + public string BranchId { get; set; } = null!; + + public string? Brand { get; set; } +} diff --git a/Shared/POSModels/Tblcancelledtransaction.cs b/Shared/POSModels/Tblcancelledtransaction.cs new file mode 100644 index 0000000..241e3b9 --- /dev/null +++ b/Shared/POSModels/Tblcancelledtransaction.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tblcancelledtransaction +{ + public string? Transno { get; set; } + + public DateTime? DateCancelled { get; set; } + + public string? CancelledBy { get; set; } + + public string BranchId { get; set; } = null!; + + public string CountId { get; set; } = null!; +} diff --git a/Shared/POSModels/Tblcart.cs b/Shared/POSModels/Tblcart.cs new file mode 100644 index 0000000..8990d2a --- /dev/null +++ b/Shared/POSModels/Tblcart.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tblcart +{ + public string? Transno { get; set; } + + public string? Id { get; set; } + + public int? Quantity { get; set; } + + public DateTime? Date { get; set; } + + public decimal? Price { get; set; } + + public string? Cashier { get; set; } + + public string? Status { get; set; } + + public decimal? Total { get; set; } + + public string? Unit { get; set; } + + public decimal? Costprice { get; set; } + + public string BranchId { get; set; } = null!; + + public string CountId { get; set; } = null!; +} diff --git a/Shared/POSModels/Tblcategory.cs b/Shared/POSModels/Tblcategory.cs new file mode 100644 index 0000000..83955ba --- /dev/null +++ b/Shared/POSModels/Tblcategory.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tblcategory +{ + public string Id { get; set; } = null!; + + public string BranchId { get; set; } = null!; + + public string? Category { get; set; } +} diff --git a/Shared/POSModels/Tblcompanydetail.cs b/Shared/POSModels/Tblcompanydetail.cs new file mode 100644 index 0000000..800f47e --- /dev/null +++ b/Shared/POSModels/Tblcompanydetail.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tblcompanydetail +{ + public string? CompanyName { get; set; } + + public string? Address { get; set; } + + public string? Website { get; set; } + + public string? Email { get; set; } + + public string Tin { get; set; } = null!; + + public string? MainTelephone { get; set; } + + public string? Vatno { get; set; } +} diff --git a/Shared/POSModels/Tblcustomer.cs b/Shared/POSModels/Tblcustomer.cs new file mode 100644 index 0000000..e04f8b4 --- /dev/null +++ b/Shared/POSModels/Tblcustomer.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tblcustomer +{ + public string CustomerId { get; set; } = null!; + + public string BranchId { get; set; } = null!; + + public string? Firstname { get; set; } + + public string? Surname { get; set; } + + public string? Address { get; set; } + + public string? Telephone { get; set; } + + public DateTime? DateAdded { get; set; } + + public string? Status { get; set; } + + public string? Tin { get; set; } + + public DateTime? DateExit { get; set; } + + public string? Email { get; set; } + + public string? FinancialStatus { get; set; } + + public string? NameKey1 { get; set; } + + public string? NameKey2 { get; set; } +} diff --git a/Shared/POSModels/Tblcustomerpurchase.cs b/Shared/POSModels/Tblcustomerpurchase.cs new file mode 100644 index 0000000..735b0d9 --- /dev/null +++ b/Shared/POSModels/Tblcustomerpurchase.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tblcustomerpurchase +{ + public string? CustomerId { get; set; } + + public string? TransactionId { get; set; } + + public string BranchId { get; set; } = null!; + + public string CountId { get; set; } = null!; +} diff --git a/Shared/POSModels/Tbldeliverydetail.cs b/Shared/POSModels/Tbldeliverydetail.cs new file mode 100644 index 0000000..ac19f7f --- /dev/null +++ b/Shared/POSModels/Tbldeliverydetail.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tbldeliverydetail +{ + public string? DeliveryId { get; set; } + + public string? Pcode { get; set; } + + public int? Quantity { get; set; } + + public string? Unit { get; set; } + + public decimal? Cost { get; set; } + + public string CountId { get; set; } = null!; + + public string BranchId { get; set; } = null!; +} diff --git a/Shared/POSModels/Tbldeliveryhead.cs b/Shared/POSModels/Tbldeliveryhead.cs new file mode 100644 index 0000000..831b6fb --- /dev/null +++ b/Shared/POSModels/Tbldeliveryhead.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tbldeliveryhead +{ + public string DeliveryId { get; set; } = null!; + + public string BranchId { get; set; } = null!; + + public string? GeneratedBy { get; set; } + + public DateTime? DateInitiated { get; set; } + + public DateTime? DateCompleted { get; set; } + + public string? Destination { get; set; } + + public string? CustomerId { get; set; } + + public decimal? TotalCost { get; set; } + + public string? Status { get; set; } +} diff --git a/Shared/POSModels/Tbldeliveryrecipient.cs b/Shared/POSModels/Tbldeliveryrecipient.cs new file mode 100644 index 0000000..6ce3696 --- /dev/null +++ b/Shared/POSModels/Tbldeliveryrecipient.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tbldeliveryrecipient +{ + public string DeliveryId { get; set; } = null!; + + public string BranchId { get; set; } = null!; + + public string? Fullname { get; set; } + + public string? Address { get; set; } + + public string? Telephone { get; set; } + + public string? Email { get; set; } + + public string? CustomerId { get; set; } + + public DateOnly? FromDate { get; set; } + + public DateOnly? ToDate { get; set; } +} diff --git a/Shared/POSModels/Tbldiscountlog.cs b/Shared/POSModels/Tbldiscountlog.cs new file mode 100644 index 0000000..94436da --- /dev/null +++ b/Shared/POSModels/Tbldiscountlog.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tbldiscountlog +{ + public string? ReceiptId { get; set; } + + public string? Cashier { get; set; } + + public DateTime? Date { get; set; } + + public decimal? Discount { get; set; } + + public string BranchId { get; set; } = null!; + + public string CountId { get; set; } = null!; +} diff --git a/Shared/POSModels/Tbldriver.cs b/Shared/POSModels/Tbldriver.cs new file mode 100644 index 0000000..f6ca157 --- /dev/null +++ b/Shared/POSModels/Tbldriver.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tbldriver +{ + public string DriverId { get; set; } = null!; + + public string BranchId { get; set; } = null!; + + public string? Firstname { get; set; } + + public string? Surname { get; set; } + + public string? Middlename { get; set; } + + public DateOnly? DateOfBirth { get; set; } + + public string? Address1 { get; set; } + + public string? Address2 { get; set; } + + public string? Telephone { get; set; } + + public string? Email { get; set; } + + public string? City { get; set; } + + public string? State { get; set; } + + public string? Status { get; set; } +} diff --git a/Shared/POSModels/Tblinventory.cs b/Shared/POSModels/Tblinventory.cs new file mode 100644 index 0000000..1d20c51 --- /dev/null +++ b/Shared/POSModels/Tblinventory.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tblinventory +{ + public string? Pcode { get; set; } + + public int? Quantity { get; set; } + + public string BranchId { get; set; } = null!; + + public string CountId { get; set; } = null!; +} diff --git a/Shared/POSModels/Tblinventoryentry.cs b/Shared/POSModels/Tblinventoryentry.cs new file mode 100644 index 0000000..d249fb2 --- /dev/null +++ b/Shared/POSModels/Tblinventoryentry.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tblinventoryentry +{ + public string? Pcode { get; set; } + + public int? Quantity { get; set; } + + public DateTime? Date { get; set; } + + public string BranchId { get; set; } = null!; + + public string CountId { get; set; } = null!; +} diff --git a/Shared/POSModels/Tblinvoice.cs b/Shared/POSModels/Tblinvoice.cs new file mode 100644 index 0000000..6a00b52 --- /dev/null +++ b/Shared/POSModels/Tblinvoice.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tblinvoice +{ + public string? InvoiceId { get; set; } + + public string? Pcode { get; set; } + + public int? Quantity { get; set; } + + public decimal? Unitprice { get; set; } + + public string? Unit { get; set; } + + public decimal? Totalprice { get; set; } + + public DateOnly? DateGenerated { get; set; } + + public string? Status { get; set; } + + public string? GeneratedBy { get; set; } + + public string BranchId { get; set; } = null!; + + public string CountId { get; set; } = null!; +} diff --git a/Shared/POSModels/Tblpricechange.cs b/Shared/POSModels/Tblpricechange.cs new file mode 100644 index 0000000..7a7439f --- /dev/null +++ b/Shared/POSModels/Tblpricechange.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tblpricechange +{ + public string? Pcode { get; set; } + + public decimal? PreviousPrice { get; set; } + + public decimal? CurrentPrice { get; set; } + + public DateTime? ChangeDate { get; set; } + + public string BranchId { get; set; } = null!; + + public string CountId { get; set; } = null!; +} diff --git a/Shared/POSModels/Tblproduct.cs b/Shared/POSModels/Tblproduct.cs new file mode 100644 index 0000000..5ede36e --- /dev/null +++ b/Shared/POSModels/Tblproduct.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tblproduct +{ + public string? Pcode { get; set; } + + public string? Barcode { get; set; } + + public string? Pdesc { get; set; } + + public string? Bid { get; set; } + + public string? Cid { get; set; } + + public decimal? Price { get; set; } + + public decimal? Costprice { get; set; } + + public string? BaseUnit { get; set; } + + public string? ProductName { get; set; } + + public string? Status { get; set; } + + public string BranchId { get; set; } = null!; + + public string CountId { get; set; } = null!; +} diff --git a/Shared/POSModels/Tbltruck.cs b/Shared/POSModels/Tbltruck.cs new file mode 100644 index 0000000..5951ff1 --- /dev/null +++ b/Shared/POSModels/Tbltruck.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tbltruck +{ + public string TruckId { get; set; } = null!; + + public string BranchId { get; set; } = null!; + + public string? LicensePlate { get; set; } + + public string? Brand { get; set; } + + public string? Driver { get; set; } + + public decimal? Weight { get; set; } +} diff --git a/Shared/POSModels/TbltruckDrivermapping.cs b/Shared/POSModels/TbltruckDrivermapping.cs new file mode 100644 index 0000000..d2034ab --- /dev/null +++ b/Shared/POSModels/TbltruckDrivermapping.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class TbltruckDrivermapping +{ + public string? TruckId { get; set; } + + public string? DriverId { get; set; } + + public DateTime? DateEntry { get; set; } + + public string? Operation { get; set; } + + public string CountId { get; set; } = null!; + + public string BranchId { get; set; } = null!; +} diff --git a/Shared/POSModels/Tbltruckassignment.cs b/Shared/POSModels/Tbltruckassignment.cs new file mode 100644 index 0000000..f3090e8 --- /dev/null +++ b/Shared/POSModels/Tbltruckassignment.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tbltruckassignment +{ + public string? OrderId { get; set; } + + public decimal? Cost { get; set; } + + public string? TruckId { get; set; } + + public string? Status { get; set; } + + public DateTime? DateAssigned { get; set; } + + public string CountId { get; set; } = null!; + + public string BranchId { get; set; } = null!; +} diff --git a/Shared/POSModels/Tbltruckinventory.cs b/Shared/POSModels/Tbltruckinventory.cs new file mode 100644 index 0000000..13d4805 --- /dev/null +++ b/Shared/POSModels/Tbltruckinventory.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tbltruckinventory +{ + public string? TruckId { get; set; } + + public string? Pcode { get; set; } + + public int? Quantity { get; set; } + + public string? Unit { get; set; } + + public string CountId { get; set; } = null!; + + public string BranchId { get; set; } = null!; +} diff --git a/Shared/POSModels/Tbluser.cs b/Shared/POSModels/Tbluser.cs new file mode 100644 index 0000000..bc03592 --- /dev/null +++ b/Shared/POSModels/Tbluser.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tbluser +{ + public string Username { get; set; } = null!; + + public string BranchId { get; set; } = null!; + + public string? Password { get; set; } + + public string? Firstname { get; set; } + + public string? Surname { get; set; } + + public string? StreetAddress1 { get; set; } + + public string? StreetAddress2 { get; set; } + + public string? City { get; set; } + + public string? StateOrProvince { get; set; } + + public string? Telephone { get; set; } + + public string? Email { get; set; } + + public string? AccessLevel { get; set; } + + public DateTime? LastLogin { get; set; } +} diff --git a/Shared/POSModels/Tbstock.cs b/Shared/POSModels/Tbstock.cs new file mode 100644 index 0000000..82684db --- /dev/null +++ b/Shared/POSModels/Tbstock.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Tbstock +{ + public string? Refno { get; set; } + + public string? Pcode { get; set; } + + public int? Qty { get; set; } + + public DateOnly? Sdate { get; set; } + + public string? Stockinby { get; set; } + + public string BranchId { get; set; } = null!; + + public string CountId { get; set; } = null!; +} diff --git a/Shared/POSModels/Unitofmeasure.cs b/Shared/POSModels/Unitofmeasure.cs new file mode 100644 index 0000000..68ed24a --- /dev/null +++ b/Shared/POSModels/Unitofmeasure.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace Biskilog_Accounting.Shared.POSModels; + +public partial class Unitofmeasure +{ + public string UnitCode { get; set; } = null!; + + public string BranchId { get; set; } = null!; + + public string? Unitname { get; set; } + + public string? Unitshort { get; set; } + + public string? Status { get; set; } +}