diff --git a/SUBD_LAB/Database/Abstracts.cs b/SUBD_LAB/Database/Abstracts.cs new file mode 100644 index 0000000..a40d5f6 --- /dev/null +++ b/SUBD_LAB/Database/Abstracts.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Database +{ + public abstract class Abstracts + { + } +} diff --git a/SUBD_LAB/Database/Database.csproj b/SUBD_LAB/Database/Database.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/SUBD_LAB/Database/Database.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/SUBD_LAB/Database/Models.cs b/SUBD_LAB/Database/Models.cs new file mode 100644 index 0000000..f6f33cc --- /dev/null +++ b/SUBD_LAB/Database/Models.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Database +{ + public class Album + { + public int Id { get; set; } + public string Title { get; set; } + public string Description { get; set; } + } + public class Location + { + public int Id { get; set; } + public string Name { get; set; } + public string ShortName { get; set; } + } + public class Author + { + public int Id { get; set; } + public string Name { get; set; } + public string PhoneNum { get; set; } + public string Email { get; set; } + } + public class Photo + { + public int Id { get; set; } + public string Title { get; set; } + public string Description { get; set; } + public string Privacy { get; set; } + public DateTime UploadDate { get; set; } + public string ImagePath { get; set; } + } + public class Comment + { + public int Id { get; set; } + public DateTime PostDate { get; set; } + public string Content { get; set; } + } +} diff --git a/SUBD_LAB/SUBD_LAB.sln b/SUBD_LAB/SUBD_LAB.sln new file mode 100644 index 0000000..e9b6012 --- /dev/null +++ b/SUBD_LAB/SUBD_LAB.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.6.33801.468 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Database", "Database\Database.csproj", "{7D559A78-17F8-4ADB-BA91-30D71CE60CC6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7D559A78-17F8-4ADB-BA91-30D71CE60CC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7D559A78-17F8-4ADB-BA91-30D71CE60CC6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7D559A78-17F8-4ADB-BA91-30D71CE60CC6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7D559A78-17F8-4ADB-BA91-30D71CE60CC6}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {21800503-431A-49CE-A6F1-523F96E07432} + EndGlobalSection +EndGlobal