diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp.sln b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp.sln
new file mode 100644
index 0000000..98f932e
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp.sln
@@ -0,0 +1,16 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AvaloniaPostrgresApp", "AvaloniaPostrgresApp\AvaloniaPostrgresApp.csproj", "{2D67BF53-BE3F-4118-8095-57A478E04588}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {2D67BF53-BE3F-4118-8095-57A478E04588}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2D67BF53-BE3F-4118-8095-57A478E04588}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2D67BF53-BE3F-4118-8095-57A478E04588}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2D67BF53-BE3F-4118-8095-57A478E04588}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/App.axaml b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/App.axaml
new file mode 100644
index 0000000..4c787c3
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/App.axaml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/App.axaml.cs b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/App.axaml.cs
new file mode 100644
index 0000000..b6ee5c4
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/App.axaml.cs
@@ -0,0 +1,23 @@
+using Avalonia;
+using Avalonia.Controls.ApplicationLifetimes;
+using Avalonia.Markup.Xaml;
+
+namespace AvaloniaPostrgresApp;
+
+public partial class App : Application
+{
+ public override void Initialize()
+ {
+ AvaloniaXamlLoader.Load(this);
+ }
+
+ public override void OnFrameworkInitializationCompleted()
+ {
+ if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
+ {
+ desktop.MainWindow = new MainWindow();
+ }
+
+ base.OnFrameworkInitializationCompleted();
+ }
+}
\ No newline at end of file
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/AppDbContext.cs b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/AppDbContext.cs
new file mode 100644
index 0000000..a9761e3
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/AppDbContext.cs
@@ -0,0 +1,31 @@
+using AvaloniaPostrgresApp.Models;
+using Microsoft.EntityFrameworkCore;
+namespace AvaloniaPostrgresApp;
+
+public class AppDbContext : DbContext
+{
+ public DbSet Users { get; set; } = null!;
+
+ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
+ {
+
+ string connectionString = "Host=127.0.0.1;Port=5432;Database=postgres;Username=postgres;Password=mysecretpassword;Timeout=15;Command Timeout=15;Trust Server Certificate=true;SSL Mode=Prefer";
+ optionsBuilder.UseNpgsql(connectionString);
+ }
+
+
+ protected override void OnModelCreating(ModelBuilder modelBuilder)
+ {
+ base.OnModelCreating(modelBuilder);
+ modelBuilder.Entity().ToTable("UserInfo");
+
+ modelBuilder.Entity().Property(u => u.Id).HasColumnName("id");
+ modelBuilder.Entity().Property(u => u.Fio).HasColumnName("fio");
+ modelBuilder.Entity().Property(u => u.Login).HasColumnName("login");
+ modelBuilder.Entity().Property(u => u.Password).HasColumnName("password");
+ modelBuilder.Entity().Property(u => u.RoleId).HasColumnName("role_id");
+
+ modelBuilder.Entity().Ignore(u => u.Orders);
+ modelBuilder.Entity().Ignore(u => u.Role);
+ }
+}
\ No newline at end of file
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/AvaloniaPostrgresApp.csproj b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/AvaloniaPostrgresApp.csproj
new file mode 100644
index 0000000..c4f57af
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/AvaloniaPostrgresApp.csproj
@@ -0,0 +1,24 @@
+
+
+ WinExe
+ net10.0
+ enable
+ app.manifest
+
+
+
+
+
+
+
+
+ None
+ All
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
+
+
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/MainWindow.axaml b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/MainWindow.axaml
new file mode 100644
index 0000000..e12e618
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/MainWindow.axaml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/MainWindow.axaml.cs b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/MainWindow.axaml.cs
new file mode 100644
index 0000000..eb28455
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/MainWindow.axaml.cs
@@ -0,0 +1,70 @@
+using Avalonia.Controls;
+using Avalonia.Interactivity;
+using Avalonia.Media;
+using AvaloniaPostrgresApp.Models;
+using System.Linq;
+namespace AvaloniaPostrgresApp;
+using Microsoft.EntityFrameworkCore;
+using Npgsql;
+using System;
+
+public partial class MainWindow : Window
+{
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+
+
+ private async void SignInClick(object sender, RoutedEventArgs e)
+ {
+ string login = LoginInput.Text ?? string.Empty;
+ string password = PasswordInput.Text ?? string.Empty;
+
+ if (string.IsNullOrWhiteSpace(login) || string.IsNullOrWhiteSpace(password))
+ {
+ StatusText.Text = "Заполните в�е пол�!";
+ StatusText.Foreground = Brushes.Red;
+ return;
+ }
+
+ try
+ {
+
+ using (var db = new PostgresContext())
+ {
+ UserInfo? user = await db.UserInfos
+ .FirstOrDefaultAsync(u => u.Login == login && u.Password == password);
+
+ if (user != null)
+ {
+ StatusText.Text = $"У�пешно! Добро пожаловать, {user.Fio}.";
+ StatusText.Foreground = Brushes.Green;
+ }
+ else
+ {
+ StatusText.Text = "�еверный логин или пароль.";
+ StatusText.Foreground = Brushes.Red;
+ }
+ }
+ }
+ catch (NpgsqlException)
+ {
+ StatusText.Text = "Ошибка подключени�. Проверьте �троку в PostgresContext.cs или Docker.";
+ StatusText.Foreground = Brushes.Red;
+ }
+ catch (Exception ex)
+ {
+
+ StatusText.Text = ex.InnerException?.Message ?? ex.Message;
+ StatusText.Foreground = Brushes.Red;
+ }
+ }
+
+ private void GuestSignInClick(object sender, RoutedEventArgs e)
+ {
+ StatusText.Text = "Вы вошли в �и�тему как Го�ть.";
+ LoginInput.Text = string.Empty;
+ PasswordInput.Text = string.Empty;
+ }
+}
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Category.cs b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Category.cs
new file mode 100644
index 0000000..a965a81
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Category.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+
+namespace AvaloniaPostrgresApp.Models;
+
+public partial class Category
+{
+ public int Id { get; set; }
+
+ public string CategoryName { get; set; } = null!;
+
+ public string Unit { get; set; } = null!;
+
+ public virtual ICollection Tovars { get; set; } = new List();
+}
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Manufacturer.cs b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Manufacturer.cs
new file mode 100644
index 0000000..d7b36bd
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Manufacturer.cs
@@ -0,0 +1,13 @@
+using System;
+using System.Collections.Generic;
+
+namespace AvaloniaPostrgresApp.Models;
+
+public partial class Manufacturer
+{
+ public int Id { get; set; }
+
+ public string ManufacturerName { get; set; } = null!;
+
+ public virtual ICollection Tovars { get; set; } = new List();
+}
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Order.cs b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Order.cs
new file mode 100644
index 0000000..a52fc27
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Order.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+
+namespace AvaloniaPostrgresApp.Models;
+
+public partial class Order
+{
+ public int Id { get; set; }
+
+ public DateTime OrderDate { get; set; }
+
+ public DateTime? DeliveryDate { get; set; }
+
+ public int AddressPvzId { get; set; }
+
+ public int IdUser { get; set; }
+
+ public string? Code { get; set; }
+
+ public virtual Pvz AddressPvz { get; set; } = null!;
+
+ public virtual UserInfo IdUserNavigation { get; set; } = null!;
+
+ public virtual ICollection OrderDetails { get; set; } = new List();
+}
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/OrderDetail.cs b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/OrderDetail.cs
new file mode 100644
index 0000000..14cea81
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/OrderDetail.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+
+namespace AvaloniaPostrgresApp.Models;
+
+public partial class OrderDetail
+{
+ public int Id { get; set; }
+
+ public int IdOrder { get; set; }
+
+ public int ArtId { get; set; }
+
+ public int Amount { get; set; }
+
+ public virtual Tovar Art { get; set; } = null!;
+
+ public virtual Order IdOrderNavigation { get; set; } = null!;
+}
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/PostgresContext.cs b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/PostgresContext.cs
new file mode 100644
index 0000000..4481477
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/PostgresContext.cs
@@ -0,0 +1,265 @@
+using System;
+using System.Collections.Generic;
+using Microsoft.EntityFrameworkCore;
+
+namespace AvaloniaPostrgresApp.Models;
+
+public partial class PostgresContext : DbContext
+{
+ public PostgresContext()
+ {
+ }
+
+ public PostgresContext(DbContextOptions options)
+ : base(options)
+ {
+ }
+
+ public virtual DbSet Categories { get; set; }
+
+ public virtual DbSet Manufacturers { get; set; }
+
+ public virtual DbSet Orders { get; set; }
+
+ public virtual DbSet OrderDetails { get; set; }
+
+ public virtual DbSet Pvzs { get; set; }
+
+ public virtual DbSet Roles { get; set; }
+
+ public virtual DbSet Sections { get; set; }
+
+ public virtual DbSet Suppliers { get; set; }
+
+ public virtual DbSet Tovars { get; set; }
+
+ public virtual DbSet UserInfos { 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 https://go.microsoft.com/fwlink/?LinkId=723263.
+ => optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Database=postgres;Username=postgres;Password=mysecretpassword");
+
+ protected override void OnModelCreating(ModelBuilder modelBuilder)
+ {
+ modelBuilder.HasPostgresEnum("order_status", new[] { "Завершен", "�овый", "В пути" });
+
+ modelBuilder.Entity(entity =>
+ {
+ entity.HasKey(e => e.Id).HasName("category_pkey");
+
+ entity.ToTable("category");
+
+ entity.Property(e => e.Id)
+ .UseIdentityAlwaysColumn()
+ .HasColumnName("id");
+ entity.Property(e => e.CategoryName)
+ .HasMaxLength(250)
+ .HasColumnName("category_name");
+ entity.Property(e => e.Unit)
+ .HasMaxLength(10)
+ .HasColumnName("unit");
+ });
+
+ modelBuilder.Entity(entity =>
+ {
+ entity.HasKey(e => e.Id).HasName("manufacturer_pkey");
+
+ entity.ToTable("manufacturer");
+
+ entity.Property(e => e.Id)
+ .UseIdentityAlwaysColumn()
+ .HasColumnName("id");
+ entity.Property(e => e.ManufacturerName)
+ .HasMaxLength(250)
+ .HasColumnName("manufacturer_name");
+ });
+
+ modelBuilder.Entity(entity =>
+ {
+ entity.HasKey(e => e.Id).HasName("orders_pkey");
+
+ entity.ToTable("orders");
+
+ entity.Property(e => e.Id)
+ .UseIdentityAlwaysColumn()
+ .HasColumnName("id");
+ entity.Property(e => e.AddressPvzId).HasColumnName("address_pvz_id");
+ entity.Property(e => e.Code)
+ .HasMaxLength(10)
+ .HasColumnName("code");
+ entity.Property(e => e.DeliveryDate).HasColumnName("delivery_date");
+ entity.Property(e => e.IdUser).HasColumnName("id_user");
+ entity.Property(e => e.OrderDate)
+ .HasDefaultValueSql("now()")
+ .HasColumnName("order_date");
+
+ entity.HasOne(d => d.AddressPvz).WithMany(p => p.Orders)
+ .HasForeignKey(d => d.AddressPvzId)
+ .OnDelete(DeleteBehavior.ClientSetNull)
+ .HasConstraintName("orders_address_pvz_id_fkey");
+
+ entity.HasOne(d => d.IdUserNavigation).WithMany(p => p.Orders)
+ .HasForeignKey(d => d.IdUser)
+ .OnDelete(DeleteBehavior.ClientSetNull)
+ .HasConstraintName("orders_id_user_fkey");
+ });
+
+ modelBuilder.Entity(entity =>
+ {
+ entity.HasKey(e => e.Id).HasName("order_details_pkey");
+
+ entity.ToTable("order_details");
+
+ entity.Property(e => e.Id)
+ .UseIdentityAlwaysColumn()
+ .HasColumnName("id");
+ entity.Property(e => e.Amount).HasColumnName("amount");
+ entity.Property(e => e.ArtId).HasColumnName("art_id");
+ entity.Property(e => e.IdOrder).HasColumnName("id_order");
+
+ entity.HasOne(d => d.Art).WithMany(p => p.OrderDetails)
+ .HasForeignKey(d => d.ArtId)
+ .OnDelete(DeleteBehavior.ClientSetNull)
+ .HasConstraintName("order_details_art_id_fkey");
+
+ entity.HasOne(d => d.IdOrderNavigation).WithMany(p => p.OrderDetails)
+ .HasForeignKey(d => d.IdOrder)
+ .HasConstraintName("order_details_id_order_fkey");
+ });
+
+ modelBuilder.Entity(entity =>
+ {
+ entity.HasKey(e => e.Id).HasName("pvz_pkey");
+
+ entity.ToTable("pvz");
+
+ entity.Property(e => e.Id)
+ .UseIdentityAlwaysColumn()
+ .HasColumnName("id");
+ entity.Property(e => e.Address)
+ .HasMaxLength(255)
+ .HasColumnName("address");
+ });
+
+ modelBuilder.Entity(entity =>
+ {
+ entity.HasKey(e => e.Id).HasName("roles_pkey");
+
+ entity.ToTable("roles");
+
+ entity.Property(e => e.Id)
+ .UseIdentityAlwaysColumn()
+ .HasColumnName("id");
+ entity.Property(e => e.RoleName)
+ .HasMaxLength(100)
+ .HasColumnName("role_name");
+ });
+
+ modelBuilder.Entity(entity =>
+ {
+ entity.HasKey(e => e.Id).HasName("sections_pkey");
+
+ entity.ToTable("sections");
+
+ entity.Property(e => e.Id)
+ .UseIdentityAlwaysColumn()
+ .HasColumnName("id");
+ entity.Property(e => e.Name)
+ .HasMaxLength(100)
+ .HasColumnName("name");
+ });
+
+ modelBuilder.Entity(entity =>
+ {
+ entity.HasKey(e => e.Id).HasName("supplier_pkey");
+
+ entity.ToTable("supplier");
+
+ entity.Property(e => e.Id)
+ .UseIdentityAlwaysColumn()
+ .HasColumnName("id");
+ entity.Property(e => e.SupName)
+ .HasMaxLength(200)
+ .HasColumnName("sup_name");
+ });
+
+ modelBuilder.Entity(entity =>
+ {
+ entity.HasKey(e => e.Id).HasName("tovar_pkey");
+
+ entity.ToTable("tovar");
+
+ entity.Property(e => e.Id)
+ .UseIdentityAlwaysColumn()
+ .HasColumnName("id");
+ entity.Property(e => e.Amount).HasColumnName("amount");
+ entity.Property(e => e.Art)
+ .HasMaxLength(250)
+ .HasColumnName("art");
+ entity.Property(e => e.Cost)
+ .HasPrecision(10, 2)
+ .HasColumnName("cost");
+ entity.Property(e => e.Description).HasColumnName("description");
+ entity.Property(e => e.Discount)
+ .HasDefaultValue(0)
+ .HasColumnName("discount");
+ entity.Property(e => e.IdCategory).HasColumnName("id_category");
+ entity.Property(e => e.IdManufacturer).HasColumnName("id_manufacturer");
+ entity.Property(e => e.IdSection).HasColumnName("id_section");
+ entity.Property(e => e.IdSupplier).HasColumnName("id_supplier");
+ entity.Property(e => e.Photo).HasColumnName("photo");
+
+ entity.HasOne(d => d.IdCategoryNavigation).WithMany(p => p.Tovars)
+ .HasForeignKey(d => d.IdCategory)
+ .OnDelete(DeleteBehavior.ClientSetNull)
+ .HasConstraintName("tovar_id_category_fkey");
+
+ entity.HasOne(d => d.IdManufacturerNavigation).WithMany(p => p.Tovars)
+ .HasForeignKey(d => d.IdManufacturer)
+ .OnDelete(DeleteBehavior.ClientSetNull)
+ .HasConstraintName("tovar_id_manufacturer_fkey");
+
+ entity.HasOne(d => d.IdSectionNavigation).WithMany(p => p.Tovars)
+ .HasForeignKey(d => d.IdSection)
+ .OnDelete(DeleteBehavior.ClientSetNull)
+ .HasConstraintName("tovar_id_section_fkey");
+
+ entity.HasOne(d => d.IdSupplierNavigation).WithMany(p => p.Tovars)
+ .HasForeignKey(d => d.IdSupplier)
+ .OnDelete(DeleteBehavior.ClientSetNull)
+ .HasConstraintName("tovar_id_supplier_fkey");
+ });
+
+ modelBuilder.Entity(entity =>
+ {
+ entity.HasKey(e => e.Id).HasName("user_info_pkey");
+
+ entity.ToTable("user_info");
+
+ entity.HasIndex(e => e.Login, "user_info_login_key").IsUnique();
+
+ entity.Property(e => e.Id)
+ .UseIdentityAlwaysColumn()
+ .HasColumnName("id");
+ entity.Property(e => e.Fio)
+ .HasMaxLength(255)
+ .HasColumnName("fio");
+ entity.Property(e => e.Login)
+ .HasMaxLength(255)
+ .HasColumnName("login");
+ entity.Property(e => e.Password)
+ .HasMaxLength(255)
+ .HasColumnName("password");
+ entity.Property(e => e.RoleId).HasColumnName("role_id");
+
+ entity.HasOne(d => d.Role).WithMany(p => p.UserInfos)
+ .HasForeignKey(d => d.RoleId)
+ .OnDelete(DeleteBehavior.ClientSetNull)
+ .HasConstraintName("user_info_role_id_fkey");
+ });
+
+ OnModelCreatingPartial(modelBuilder);
+ }
+
+ partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
+}
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Pvz.cs b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Pvz.cs
new file mode 100644
index 0000000..47d535a
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Pvz.cs
@@ -0,0 +1,13 @@
+using System;
+using System.Collections.Generic;
+
+namespace AvaloniaPostrgresApp.Models;
+
+public partial class Pvz
+{
+ public int Id { get; set; }
+
+ public string Address { get; set; } = null!;
+
+ public virtual ICollection Orders { get; set; } = new List();
+}
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Role.cs b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Role.cs
new file mode 100644
index 0000000..791276e
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Role.cs
@@ -0,0 +1,13 @@
+using System;
+using System.Collections.Generic;
+
+namespace AvaloniaPostrgresApp.Models;
+
+public partial class Role
+{
+ public int Id { get; set; }
+
+ public string RoleName { get; set; } = null!;
+
+ public virtual ICollection UserInfos { get; set; } = new List();
+}
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Section.cs b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Section.cs
new file mode 100644
index 0000000..937b955
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Section.cs
@@ -0,0 +1,13 @@
+using System;
+using System.Collections.Generic;
+
+namespace AvaloniaPostrgresApp.Models;
+
+public partial class Section
+{
+ public int Id { get; set; }
+
+ public string Name { get; set; } = null!;
+
+ public virtual ICollection Tovars { get; set; } = new List();
+}
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Supplier.cs b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Supplier.cs
new file mode 100644
index 0000000..4ae4edb
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Supplier.cs
@@ -0,0 +1,13 @@
+using System;
+using System.Collections.Generic;
+
+namespace AvaloniaPostrgresApp.Models;
+
+public partial class Supplier
+{
+ public int Id { get; set; }
+
+ public string SupName { get; set; } = null!;
+
+ public virtual ICollection Tovars { get; set; } = new List();
+}
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Tovar.cs b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Tovar.cs
new file mode 100644
index 0000000..64cfa34
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/Tovar.cs
@@ -0,0 +1,39 @@
+using System;
+using System.Collections.Generic;
+
+namespace AvaloniaPostrgresApp.Models;
+
+public partial class Tovar
+{
+ public int Id { get; set; }
+
+ public string? Art { get; set; }
+
+ public int IdCategory { get; set; }
+
+ public int IdSection { get; set; }
+
+ public int IdManufacturer { get; set; }
+
+ public int IdSupplier { get; set; }
+
+ public decimal Cost { get; set; }
+
+ public int? Discount { get; set; }
+
+ public int Amount { get; set; }
+
+ public string? Description { get; set; }
+
+ public string? Photo { get; set; }
+
+ public virtual Category IdCategoryNavigation { get; set; } = null!;
+
+ public virtual Manufacturer IdManufacturerNavigation { get; set; } = null!;
+
+ public virtual Section IdSectionNavigation { get; set; } = null!;
+
+ public virtual Supplier IdSupplierNavigation { get; set; } = null!;
+
+ public virtual ICollection OrderDetails { get; set; } = new List();
+}
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/UserInfo.cs b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/UserInfo.cs
new file mode 100644
index 0000000..9d410e2
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Models/UserInfo.cs
@@ -0,0 +1,29 @@
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+using AvaloniaPostrgresApp.Models;
+
+namespace AvaloniaPostrgresApp
+{
+ [Table("user_info")]
+ public class UserInfo
+ {
+ [Key]
+ [Column("id")]
+ public int Id { get; set; }
+
+ [Column("fio")]
+ public string Fio { get; set; } = string.Empty;
+
+ [Column("login")]
+ public string Login { get; set; } = string.Empty;
+
+ [Column("password")]
+ public string Password { get; set; } = string.Empty;
+
+ [Column("role_id")]
+ public int RoleId { get; set; }
+ public virtual ICollection Orders { get; set; } = new List();
+ public virtual Role Role { get; set; } = null!;
+ }
+}
\ No newline at end of file
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Program.cs b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Program.cs
new file mode 100644
index 0000000..06d7b43
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/Program.cs
@@ -0,0 +1,24 @@
+using Avalonia;
+using System;
+
+namespace AvaloniaPostrgresApp;
+
+class Program
+{
+ // Initialization code. Don't use any Avalonia, third-party APIs or any
+ // SynchronizationContext-reliant code before AppMain is called: things aren't initialized
+ // yet and stuff might break.
+ [STAThread]
+ public static void Main(string[] args) => BuildAvaloniaApp()
+ .StartWithClassicDesktopLifetime(args);
+
+ // Avalonia configuration, don't remove; also used by visual designer.
+ public static AppBuilder BuildAvaloniaApp()
+ => AppBuilder.Configure()
+ .UsePlatformDetect()
+#if DEBUG
+ .WithDeveloperTools()
+#endif
+ .WithInterFont()
+ .LogToTrace();
+}
\ No newline at end of file
diff --git a/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/app.manifest b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/app.manifest
new file mode 100644
index 0000000..5a5441e
--- /dev/null
+++ b/works/Demo/AvaloniaPostrgresApp/AvaloniaPostrgresApp/app.manifest
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/works/Demo/TablesApp/Tables.sln b/works/Demo/TablesApp/Tables.sln
new file mode 100644
index 0000000..3047889
--- /dev/null
+++ b/works/Demo/TablesApp/Tables.sln
@@ -0,0 +1,16 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tables", "Tables\Tables.csproj", "{20243430-FD8F-43D7-A498-665205F85D9F}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {20243430-FD8F-43D7-A498-665205F85D9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {20243430-FD8F-43D7-A498-665205F85D9F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {20243430-FD8F-43D7-A498-665205F85D9F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {20243430-FD8F-43D7-A498-665205F85D9F}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/works/Demo/TablesApp/Tables/App.axaml b/works/Demo/TablesApp/Tables/App.axaml
new file mode 100644
index 0000000..27e5af8
--- /dev/null
+++ b/works/Demo/TablesApp/Tables/App.axaml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/works/Demo/TablesApp/Tables/App.axaml.cs b/works/Demo/TablesApp/Tables/App.axaml.cs
new file mode 100644
index 0000000..0c32b2e
--- /dev/null
+++ b/works/Demo/TablesApp/Tables/App.axaml.cs
@@ -0,0 +1,23 @@
+using Avalonia;
+using Avalonia.Controls.ApplicationLifetimes;
+using Avalonia.Markup.Xaml;
+
+namespace Tables;
+
+public partial class App : Application
+{
+ public override void Initialize()
+ {
+ AvaloniaXamlLoader.Load(this);
+ }
+
+ public override void OnFrameworkInitializationCompleted()
+ {
+ if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
+ {
+ desktop.MainWindow = new MainWindow();
+ }
+
+ base.OnFrameworkInitializationCompleted();
+ }
+}
\ No newline at end of file
diff --git a/works/Demo/TablesApp/Tables/MainWindow.axaml b/works/Demo/TablesApp/Tables/MainWindow.axaml
new file mode 100644
index 0000000..a6e9b5d
--- /dev/null
+++ b/works/Demo/TablesApp/Tables/MainWindow.axaml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+ Каталог продуктов
+ Зде�ь будет �пи�ок продуктов
+
+
+
+
diff --git a/works/Demo/TablesApp/Tables/MainWindow.axaml.cs b/works/Demo/TablesApp/Tables/MainWindow.axaml.cs
new file mode 100644
index 0000000..42acf8d
--- /dev/null
+++ b/works/Demo/TablesApp/Tables/MainWindow.axaml.cs
@@ -0,0 +1,11 @@
+using Avalonia.Controls;
+
+namespace Tables;
+
+public partial class MainWindow : Window
+{
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+}
\ No newline at end of file
diff --git a/works/Demo/TablesApp/Tables/Program.cs b/works/Demo/TablesApp/Tables/Program.cs
new file mode 100644
index 0000000..70bf8d4
--- /dev/null
+++ b/works/Demo/TablesApp/Tables/Program.cs
@@ -0,0 +1,24 @@
+using Avalonia;
+using System;
+
+namespace Tables;
+
+class Program
+{
+ // Initialization code. Don't use any Avalonia, third-party APIs or any
+ // SynchronizationContext-reliant code before AppMain is called: things aren't initialized
+ // yet and stuff might break.
+ [STAThread]
+ public static void Main(string[] args) => BuildAvaloniaApp()
+ .StartWithClassicDesktopLifetime(args);
+
+ // Avalonia configuration, don't remove; also used by visual designer.
+ public static AppBuilder BuildAvaloniaApp()
+ => AppBuilder.Configure()
+ .UsePlatformDetect()
+#if DEBUG
+ .WithDeveloperTools()
+#endif
+ .WithInterFont()
+ .LogToTrace();
+}
\ No newline at end of file
diff --git a/works/Demo/TablesApp/Tables/Tables.csproj b/works/Demo/TablesApp/Tables/Tables.csproj
new file mode 100644
index 0000000..c7f82d6
--- /dev/null
+++ b/works/Demo/TablesApp/Tables/Tables.csproj
@@ -0,0 +1,19 @@
+
+
+ WinExe
+ net10.0
+ enable
+ app.manifest
+
+
+
+
+
+
+
+
+ None
+ All
+
+
+
diff --git a/works/Demo/TablesApp/Tables/app.manifest b/works/Demo/TablesApp/Tables/app.manifest
new file mode 100644
index 0000000..897213b
--- /dev/null
+++ b/works/Demo/TablesApp/Tables/app.manifest
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/works/Demo/User/User_import.xlsx b/works/Demo/User/User_import.xlsx
deleted file mode 100644
index d01793c..0000000
Binary files a/works/Demo/User/User_import.xlsx and /dev/null differ
diff --git a/works/Demo/Orders/Order.xlsx b/works/Demo/Таблицы и в�е такое/Orders/Order.xlsx
similarity index 66%
rename from works/Demo/Orders/Order.xlsx
rename to works/Demo/Таблицы и в�е такое/Orders/Order.xlsx
index ee2765b..2d64d2a 100644
Binary files a/works/Demo/Orders/Order.xlsx and b/works/Demo/Таблицы и в�е такое/Orders/Order.xlsx differ
diff --git a/works/Demo/Orders/Order_details.xlsx b/works/Demo/Таблицы и в�е такое/Orders/Order_details.xlsx
similarity index 63%
rename from works/Demo/Orders/Order_details.xlsx
rename to works/Demo/Таблицы и в�е такое/Orders/Order_details.xlsx
index fe34f7c..1b5b6ea 100644
Binary files a/works/Demo/Orders/Order_details.xlsx and b/works/Demo/Таблицы и в�е такое/Orders/Order_details.xlsx differ
diff --git a/works/Demo/Таблицы и в�е такое/Orders/order_details.csv b/works/Demo/Таблицы и в�е такое/Orders/order_details.csv
new file mode 100644
index 0000000..2ff64d9
--- /dev/null
+++ b/works/Demo/Таблицы и в�е такое/Orders/order_details.csv
@@ -0,0 +1,21 @@
+id_order;art_id;amount
+1;1;2
+1;2;2
+2;3;1
+2;4;1
+3;5;10
+3;6;10
+4;7;5
+4;8;4
+5;1;2
+5;2;2
+6;3;1
+6;4;1
+7;5;10
+7;6;10
+8;7;5
+8;8;4
+9;9;5
+9;10;1
+10;11;5
+10;12;5
diff --git a/works/Demo/Таблицы и в�е такое/Orders/orders.csv b/works/Demo/Таблицы и в�е такое/Orders/orders.csv
new file mode 100644
index 0000000..a5175bb
--- /dev/null
+++ b/works/Demo/Таблицы и в�е такое/Orders/orders.csv
@@ -0,0 +1,11 @@
+order_date;delivery_date;address_pvz_id;id_user;code;status
+2025-02-27;2025-04-20;1;1;901;Çàâåðøåí
+2022-09-28;2025-04-21;11;2;902;Çàâåðøåí
+2025-03-21;2025-04-22;2;3;903;Çàâåðøåí
+2025-02-20;2025-04-23;11;4;904;Çàâåðøåí
+2025-03-17;2025-04-24;2;1;905;Çàâåðøåí
+2025-03-01;2025-04-25;15;2;906;Çàâåðøåí
+2025-03-01;2025-04-26;3;3;907;Çàâåðøåí
+2025-03-31;2025-04-27;19;4;908;Íîâûé
+2025-04-02;2025-04-28;5;1;909;Íîâûé
+2025-04-03;2025-04-29;19;1;910;Íîâûé
diff --git a/works/Demo/Таблицы и в�е такое/PVZ.csv b/works/Demo/Таблицы и в�е такое/PVZ.csv
new file mode 100644
index 0000000..b5cd578
--- /dev/null
+++ b/works/Demo/Таблицы и в�е такое/PVZ.csv
@@ -0,0 +1,37 @@
+address
+420151, ã. Ëåñíîé, óë. Âèøíåâàÿ, 32
+125061, ã. Ëåñíîé, óë. Ïîäãîðíàÿ, 8
+630370, ã. Ëåñíîé, óë. Øîññåéíàÿ, 24
+400562, ã. Ëåñíîé, óë. Çåëåíàÿ, 32
+614510, ã. Ëåñíîé, óë. Ìàÿêîâñêîãî, 47
+410542, ã. Ëåñíîé, óë. Ñâåòëàÿ, 46
+620839, ã. Ëåñíîé, óë. Öâåòî÷íàÿ, 8
+443890, ã. Ëåñíîé, óë. Êîììóíèñòè÷åñêàÿ, 1
+603379, ã. Ëåñíîé, óë. Ñïîðòèâíàÿ, 46
+603721, ã. Ëåñíîé, óë. Ãîãîëÿ, 41
+410172, ã. Ëåñíîé, óë. Ñåâåðíàÿ, 13
+614611, ã. Ëåñíîé, óë. Ìîëîäåæíàÿ, 50
+454311, ã.Ëåñíîé, óë. Íîâàÿ, 19
+660007, ã.Ëåñíîé, óë. Îêòÿáðüñêàÿ, 19
+603036, ã. Ëåñíîé, óë. Ñàäîâàÿ, 4
+394060, ã.Ëåñíîé, óë. Ôðóíçå, 43
+410661, ã. Ëåñíîé, óë. Øêîëüíàÿ, 50
+625590, ã. Ëåñíîé, óë. Êîììóíèñòè÷åñêàÿ, 20
+625683, ã. Ëåñíîé, óë. 8 Ìàðòà
+450983, ã.Ëåñíîé, óë. Êîìñîìîëüñêàÿ, 26
+394782, ã. Ëåñíîé, óë. ×åõîâà, 3
+603002, ã. Ëåñíîé, óë. Äçåðæèíñêîãî, 28
+450558, ã. Ëåñíîé, óë. Íàáåðåæíàÿ, 30
+344288, ã. Ëåñíîé, óë. ×åõîâà, 1
+614164, ã.Ëåñíîé, óë. Ñòåïíàÿ, 30
+394242, ã. Ëåñíîé, óë. Êîììóíèñòè÷åñêàÿ, 43
+660540, ã. Ëåñíîé, óë. Ñîëíå÷íàÿ, 25
+125837, ã. Ëåñíîé, óë. Øîññåéíàÿ, 40
+125703, ã. Ëåñíîé, óë. Ïàðòèçàíñêàÿ, 49
+625283, ã. Ëåñíîé, óë. Ïîáåäû, 46
+614753, ã. Ëåñíîé, óë. Ïîëåâàÿ, 35
+426030, ã. Ëåñíîé, óë. Ìàÿêîâñêîãî, 44
+450375, ã. Ëåñíîé óë. Êëóáíàÿ, 44
+625560, ã. Ëåñíîé, óë. Íåêðàñîâà, 12
+630201, ã. Ëåñíîé, óë. Êîìñîìîëüñêàÿ, 17
+190949, ã. Ëåñíîé, óë. Ìè÷óðèíà, 26
diff --git a/works/Demo/PVZ.xlsx b/works/Demo/Таблицы и в�е такое/PVZ.xlsx
similarity index 100%
rename from works/Demo/PVZ.xlsx
rename to works/Demo/Таблицы и в�е такое/PVZ.xlsx
diff --git a/works/Demo/Tovar/Category.xlsx b/works/Demo/Таблицы и в�е такое/Tovar/Category.xlsx
similarity index 68%
rename from works/Demo/Tovar/Category.xlsx
rename to works/Demo/Таблицы и в�е такое/Tovar/Category.xlsx
index a72c8c7..e438698 100644
Binary files a/works/Demo/Tovar/Category.xlsx and b/works/Demo/Таблицы и в�е такое/Tovar/Category.xlsx differ
diff --git a/works/Demo/Tovar/Manufacturer.xlsx b/works/Demo/Таблицы и в�е такое/Tovar/Manufacturer.xlsx
similarity index 69%
rename from works/Demo/Tovar/Manufacturer.xlsx
rename to works/Demo/Таблицы и в�е такое/Tovar/Manufacturer.xlsx
index 35799b7..ef4588c 100644
Binary files a/works/Demo/Tovar/Manufacturer.xlsx and b/works/Demo/Таблицы и в�е такое/Tovar/Manufacturer.xlsx differ
diff --git a/works/Demo/Tovar/Sections.xlsx b/works/Demo/Таблицы и в�е такое/Tovar/Sections.xlsx
similarity index 100%
rename from works/Demo/Tovar/Sections.xlsx
rename to works/Demo/Таблицы и в�е такое/Tovar/Sections.xlsx
diff --git a/works/Demo/Tovar/Supplier.xlsx b/works/Demo/Таблицы и в�е такое/Tovar/Supplier.xlsx
similarity index 70%
rename from works/Demo/Tovar/Supplier.xlsx
rename to works/Demo/Таблицы и в�е такое/Tovar/Supplier.xlsx
index 2060841..8f1406d 100644
Binary files a/works/Demo/Tovar/Supplier.xlsx and b/works/Demo/Таблицы и в�е такое/Tovar/Supplier.xlsx differ
diff --git a/works/Demo/Tovar/Tovar.xlsx b/works/Demo/Таблицы и в�е такое/Tovar/Tovar.xlsx
similarity index 51%
rename from works/Demo/Tovar/Tovar.xlsx
rename to works/Demo/Таблицы и в�е такое/Tovar/Tovar.xlsx
index b6fa979..7068b17 100644
Binary files a/works/Demo/Tovar/Tovar.xlsx and b/works/Demo/Таблицы и в�е такое/Tovar/Tovar.xlsx differ
diff --git a/works/Demo/Таблицы и в�е такое/Tovar/categories.csv b/works/Demo/Таблицы и в�е такое/Tovar/categories.csv
new file mode 100644
index 0000000..e0aeb6b
--- /dev/null
+++ b/works/Demo/Таблицы и в�е такое/Tovar/categories.csv
@@ -0,0 +1,8 @@
+category_name;unit
+Áîòèíêè;øò
+Òóôëè;øò
+Êðîññîâêè;øò
+Ïîëóáîòèíêè;øò
+Êåäû;øò
+Òàïî÷êè;øò
+Ñàïîãè;øò
diff --git a/works/Demo/Таблицы и в�е такое/Tovar/manufacturer.csv b/works/Demo/Таблицы и в�е такое/Tovar/manufacturer.csv
new file mode 100644
index 0000000..9d0c0d7
--- /dev/null
+++ b/works/Demo/Таблицы и в�е такое/Tovar/manufacturer.csv
@@ -0,0 +1,7 @@
+manufacturer_name
+Kari
+Marco Tozzi
+Poc
+Reiker
+Alessio Nesca
+CROSBY
diff --git a/works/Demo/Таблицы и в�е такое/Tovar/sections.csv b/works/Demo/Таблицы и в�е такое/Tovar/sections.csv
new file mode 100644
index 0000000..0ddb6b8
--- /dev/null
+++ b/works/Demo/Таблицы и в�е такое/Tovar/sections.csv
@@ -0,0 +1,3 @@
+name
+Æåíñêàÿ îáóâü
+Ìóæñêàÿ îáóâü
diff --git a/works/Demo/Таблицы и в�е такое/Tovar/supplier.csv b/works/Demo/Таблицы и в�е такое/Tovar/supplier.csv
new file mode 100644
index 0000000..e90fb71
--- /dev/null
+++ b/works/Demo/Таблицы и в�е такое/Tovar/supplier.csv
@@ -0,0 +1,3 @@
+sup_name
+Kari
+Îáóâü äëÿ âàñ
diff --git a/works/Demo/Таблицы и в�е такое/Tovar/tovar.csv b/works/Demo/Таблицы и в�е такое/Tovar/tovar.csv
new file mode 100644
index 0000000..c229f8c
--- /dev/null
+++ b/works/Demo/Таблицы и в�е такое/Tovar/tovar.csv
@@ -0,0 +1,31 @@
+art;id_category;id_section;id_manufacturer;id_supplier;cost;discount;amount;description;photo
+À112Ò4;1;1;1;1;4990;3;6;Æåíñêèå Áîòèíêè äåìèñåçîííûå kari;1.jpg
+F635R4;1;1;2;2;3244;2;13;Áîòèíêè Marco Tozzi æåíñêèå äåìèñåçîííûå, ðàçìåð 39, öâåò áåæåâûé;2.jpg
+H782T5;2;2;1;1;4499;4;5;Òóôëè kari ìóæñêèå êëàññèêà MYZ21AW-450A, ðàçìåð 43, öâåò: ÷åðíûé;3.jpg
+G783F5;1;2;3;1;5900;2;8;Ìóæñêèå áîòèíêè Ðîñ-Îáóâü êîæàíûå ñ íàòóðàëüíûì ìåõîì;4.jpg
+J384T6;1;2;4;2;3800;2;16;B3430/14 Ïîëóáîòèíêè ìóæñêèå Rieker;5.jpg
+D572U8;3;2;3;2;4100;3;6;129615-4 Êðîññîâêè ìóæñêèå;6.jpg
+F572H7;2;1;2;1;2700;2;14;Òóôëè Marco Tozzi æåíñêèå ëåòíèå, ðàçìåð 39, öâåò ÷åðíûé;7.jpg
+D329H3;4;1;5;2;1890;4;4;Ïîëóáîòèíêè Alessio Nesca æåíñêèå 3-30797-47, ðàçìåð 37, öâåò: áîðäîâûé;8.jpg
+B320R5;2;1;4;1;4300;2;6;Òóôëè Rieker æåíñêèå äåìèñåçîííûå, ðàçìåð 41, öâåò êîðè÷íåâûé;9.jpg
+G432E4;2;1;1;1;2800;3;15;Òóôëè kari æåíñêèå TR-YR-413017, ðàçìåð 37, öâåò: ÷åðíûé;10.jpg
+S213E3;4;2;6;2;2156;3;6;407700/01-01 Ïîëóáîòèíêè ìóæñêèå CROSBY;
+E482R4;4;1;1;1;1800;2;14;Ïîëóáîòèíêè kari æåíñêèå MYZ20S-149, ðàçìåð 41, öâåò: ÷åðíûé;
+S634B5;5;2;6;2;5500;3;0;Êåäû Caprice ìóæñêèå äåìèñåçîííûå, ðàçìåð 42, öâåò ÷åðíûé;
+K345R4;4;2;6;2;2100;2;3;407700/01-02 Ïîëóáîòèíêè ìóæñêèå CROSBY;
+O754F4;2;1;4;2;5400;4;18;Òóôëè æåíñêèå äåìèñåçîííûå Rieker àðòèêóë 55073-68/37;
+G531F4;1;1;1;1;6600;12;9;Áîòèíêè æåíñêèå çèìíèå ROMER àðò. 893167-01 ×åðíûé;
+J542F5;6;2;1;1;500;13;0;Òàïî÷êè ìóæñêèå Àðò.70701-55-67ñèí ð.41;
+B431R5;1;2;4;2;2700;2;5;Ìóæñêèå êîæàíûå áîòèíêè/ìóæñêèå áîòèíêè;
+P764G4;2;1;6;1;6800;15;15;Òóôëè æåíñêèå, ARGO, ðàçìåð 38;
+C436G5;1;1;5;1;10200;15;9;Áîòèíêè æåíñêèå, ARGO, ðàçìåð 40;
+F427R5;1;1;4;2;11800;15;11;Áîòèíêè íà ìîëíèè ñ äåêîðàòèâíîé ïðÿæêîé FRAU;
+N457T5;4;1;6;1;4600;3;13;Ïîëóáîòèíêè Áîòèíêè ÷åðíûå çèìíèå, ìåõ;
+D364R4;2;1;1;1;12400;16;5;Òóôëè Luiza Belly æåíñêèå Kate-lazo ÷åðíûå èç íàòóðàëüíîé çàìøè;
+S326R5;6;2;6;2;9900;17;15;"Ìóæñêèå êîæàíûå òàïî÷êè ""Ïðîôèëü Ñ.Äàëè"" ";
+L754R4;4;1;1;1;1700;2;7;Ïîëóáîòèíêè kari æåíñêèå WB2020SS-26, ðàçìåð 38, öâåò: ÷åðíûé;
+M542T5;3;2;4;2;2800;18;3;Êðîññîâêè ìóæñêèå TOFA;
+D268G5;2;1;4;2;4399;3;12;Òóôëè Rieker æåíñêèå äåìèñåçîííûå, ðàçìåð 36, öâåò êîðè÷íåâûé;
+T324F5;7;1;6;1;4699;2;5;Ñàïîãè çàìøà Öâåò: ñèíèé;
+K358H6;6;2;4;1;599;20;2;Òàïî÷êè ìóæñêèå ñèí ð.41;
+H535R5;1;1;4;2;2300;2;7;Æåíñêèå Áîòèíêè äåìèñåçîííûå;
diff --git a/works/Demo/User/Roles.xlsx b/works/Demo/Таблицы и в�е такое/User/Roles.xlsx
similarity index 70%
rename from works/Demo/User/Roles.xlsx
rename to works/Demo/Таблицы и в�е такое/User/Roles.xlsx
index ebd2917..a9ec9ac 100644
Binary files a/works/Demo/User/Roles.xlsx and b/works/Demo/Таблицы и в�е такое/User/Roles.xlsx differ
diff --git a/works/Demo/User/User_info.xlsx b/works/Demo/Таблицы и в�е такое/User/User_info.xlsx
similarity index 54%
rename from works/Demo/User/User_info.xlsx
rename to works/Demo/Таблицы и в�е такое/User/User_info.xlsx
index 0ce5a8f..a7287f6 100644
Binary files a/works/Demo/User/User_info.xlsx and b/works/Demo/Таблицы и в�е такое/User/User_info.xlsx differ
diff --git a/works/Demo/Таблицы и в�е такое/User/roles.csv b/works/Demo/Таблицы и в�е такое/User/roles.csv
new file mode 100644
index 0000000..04fb405
--- /dev/null
+++ b/works/Demo/Таблицы и в�е такое/User/roles.csv
@@ -0,0 +1,4 @@
+role_name
+Àäìèíèñòðàòîð
+Ìåíåäæåð
+Àâòîðèçîâàííûé êëèåíò
diff --git a/works/Demo/Таблицы и в�е такое/User/user_info.csv b/works/Demo/Таблицы и в�е такое/User/user_info.csv
new file mode 100644
index 0000000..c0a5ca3
--- /dev/null
+++ b/works/Demo/Таблицы и в�е такое/User/user_info.csv
@@ -0,0 +1,11 @@
+fio;login;password;role_id
+Íèêèôîðîâà Âåñåíèÿ Íèêîëàåâíà;94d5ous@gmail.com;uzWC67;1
+Ñàçîíîâ Ðóñëàí Ãåðìàíîâè÷;uth4iz@mail.com;2L6KZG;1
+Îäèíöîâ Ñåðàôèì Àðò¸ìîâè÷;yzls62@outlook.com;JlFRCZ;1
+Ñòåïàíîâ Ìèõàèë Àðò¸ìîâè÷;1diph5e@tutanota.com;8ntwUp;2
+Âîðñèí Ïåòð Åâãåíüåâè÷;tjde7c@yahoo.com;YOyhfR;2
+Ñòàðèêîâà Åëåíà Ïàâëîâíà;wpmrc3do@tutanota.com;RSbvHv;2
+Ìèõàéëþê Àííà Âÿ÷åñëàâîâíà;5d4zbu@tutanota.com;rwVDh9;3
+Ñèòäèêîâà Åëåíà Àíàòîëüåâíà;ptec8ym@yahoo.com;LdNyos;3
+Âîðñèí Ïåòð Åâãåíüåâè÷;1qz4kw@mail.com;gynQMT;3
+Ñòàðèêîâà Åëåíà Ïàâëîâíà;4np6se@mail.com;AtnDjr;3
diff --git a/works/Demo/Таблицы и в�е такое/�овый тек�товый документ.txt b/works/Demo/Таблицы и в�е такое/�овый тек�товый документ.txt
new file mode 100644
index 0000000..ac93ca1
--- /dev/null
+++ b/works/Demo/Таблицы и в�е такое/�овый тек�товый документ.txt
@@ -0,0 +1,71 @@
+CREATE TABLE category (
+ id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
+ category_name VARCHAR(250) NOT NULL,
+ unit VARCHAR(10) NOT NULL
+);
+
+CREATE TABLE manufacturer (
+ id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
+ manufacturer_name VARCHAR(250) NOT NULL
+);
+
+CREATE TABLE sections (
+ id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
+ name VARCHAR(100) NOT NULL
+);
+
+CREATE TABLE supplier (
+ id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
+ sup_name VARCHAR(200) NOT NULL
+);
+
+CREATE TABLE roles (
+ id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
+ role_name VARCHAR(100) NOT NULL
+);
+
+CREATE TABLE pvz (
+ id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
+ address VARCHAR(255) NOT NULL
+);
+
+CREATE TABLE user_info (
+ id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
+ fio VARCHAR(255) NOT NULL,
+ login VARCHAR(255) NOT NULL UNIQUE,
+ password VARCHAR(255) NOT NULL,
+ role_id INT NOT NULL REFERENCES roles(id)
+);
+
+CREATE TABLE tovar (
+ id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
+ art VARCHAR(250),
+ id_category INT NOT NULL REFERENCES category(id),
+ id_section INT NOT NULL REFERENCES sections(id),
+ id_manufacturer INT NOT NULL REFERENCES manufacturer(id),
+ id_supplier INT NOT NULL REFERENCES supplier(id),
+ cost DECIMAL(10, 2) NOT NULL,
+ discount INT DEFAULT 0,
+ amount INT NOT NULL DEFAULT 0,
+ description TEXT,
+ photo TEXT
+);
+
+CREATE TYPE order_status AS ENUM ('Завершен', '�овый', 'В пути');
+
+CREATE TABLE orders (
+ id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
+ order_date TIMESTAMPTZ NOT NULL DEFAULT NOW(),
+ delivery_date TIMESTAMPTZ,
+ address_pvz_id INT NOT NULL REFERENCES pvz(id),
+ id_user INT NOT NULL REFERENCES user_info(id),
+ code VARCHAR(10),
+ status order_status NOT NULL DEFAULT '�овый'
+);
+
+CREATE TABLE order_details (
+ id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
+ id_order INT NOT NULL REFERENCES orders(id) ON DELETE CASCADE,
+ art_id INT NOT NULL REFERENCES tovar(id),
+ amount INT NOT NULL CHECK (amount > 0)
+);
\ No newline at end of file