School Commit Init

This commit is contained in:
2024-08-31 12:07:21 +03:00
commit 0b130ee18c
2801 changed files with 4720552 additions and 0 deletions
@@ -0,0 +1,16 @@
using System.Text.Json.Serialization;
namespace District3API.domain
{
public class Account
{
public int Id { get; set; }
public string? CardNumber { get; set; }
public string? HolderName { get; set; }
public string? ExpirationDate{ get; set; }
public string? Cvv { get; set; }
public int UserId { get; set; }
[JsonIgnore]
public User? User { get; set; }
}
}
@@ -0,0 +1,14 @@
using System.Text.Json.Serialization;
namespace District3API.domain;
public class BlockedProfile
{
public int Id { get; set; }
public int UserId { get; set; }
[JsonIgnore]
public User? User { get; set; }
public DateTime BlockDate { get; set; }
}
@@ -0,0 +1,13 @@
using System.Text.Json.Serialization;
namespace District3API.domain;
public class CloseFriendProfile
{
public int Id { get; set; }
public int UserId { get; set; }
[JsonIgnore]
public User? User { get; set; }
public DateTime CloseFriendedDate { get; set; }
}
@@ -0,0 +1,11 @@
namespace District3API.domain;
public class FancierProfile
{
public int ProfileId { get; set; }
public List<string>? Links { get; set; }
public string? DailyMotto { get; set; }
public DateTime? RemoveMottoDate { get; set; }
public int FrameNumber { get; set; }
public string? Hashtag { get; set; }
}
@@ -0,0 +1,11 @@
namespace District3API.domain
{
public class Group
{
public int Id { get; set; }
public string? GroupName { get; set; }
public List<User>? GroupMembers { get; set; }
}
}
@@ -0,0 +1,16 @@
using System.Text.Json.Serialization;
namespace District3API.domain
{
public class Highlight
{
public int HighlightId { get; set; }
public int UserId { get; set; }
[JsonIgnore]
public User? User { get; set; }
public List<int>? PostsIds { get; set; }
public string? Name { get; set; }
public string? CoverFilePath { get; set; }
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace District3API.domain
{
public class Post
{
public int Id { get; set; }
}
}
@@ -0,0 +1,21 @@
using System.Text.Json.Serialization;
namespace District3API.domain
{
public class User
{
public int Id { get; set; }
public string? Username { get; set; }
public string? Password { get; set; }
public string? Email { get; set; }
public string? ConfirmationPassword { get; set; }
public DateTime RegistrationDate { get; set; }
public int FollowingCount { get; set; }
public int FollowersCount { get; set; }
[JsonIgnore]
public TimeSpan UserSession { get; set; }
public int GroupId { get; set; }
public Group? Group { get; set; }
}
}