student Data Model and groop and faculty type complited

This commit is contained in:
Lazypr0ger
2025-04-12 15:41:49 +04:00
parent 1925bb4fcc
commit d80e031d74
4 changed files with 38 additions and 6 deletions

View File

@@ -3,10 +3,15 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UniversityAllExpelled_Models.Enums;
namespace UniversityAllExpelled_Models.DataModels.Client
namespace UniversityAllExpelled_Models.DataModels.Client;
public class StudentDataModel(string id, string userId, FacultyType faculty, GroopType groop, int course)
{
class StudentDataModel
{
}
public string Id { get; private set; } = id;
public string UserId { get; private set; } = userId;
public FacultyType Faculty { get; private set; } = faculty;
public GroopType Groop { get; private set; } = groop;
public int Course { get; private set; } = course;
}

View File

@@ -2,7 +2,7 @@
namespace UniversityAllExpelled_Models.DataModels;
public class UserDataModel(string id, string login, string password, SystemRoleType role, string fio, DateTime birthdate, string email)
public class UserDataModel(string id, string login, string password, SystemRoleType role, string fio, DateTime birthdate, string email, bool isDeleted)
{
public string Id { get; private set; } = id;
@@ -17,6 +17,7 @@ public class UserDataModel(string id, string login, string password, SystemRoleT
public DateTime DirthDate { get; private set; } = birthdate;
public string Email { get; private set; } = email;
public bool IsDeleted { get; private set; } = isDeleted;
}

View File

@@ -0,0 +1,9 @@

namespace UniversityAllExpelled_Models.Enums;
public enum FacultyType
{
None = 0,
fist = 1,
enginers = 2
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UniversityAllExpelled_Models.Enums;
public enum GroopType
{
None = 0,
//fist
ISEbd21 = 1,
ISEbd22 = 2,
Pibd21 = 3,
Pibd22 = 4
}