add DataModels project and translate erd

This commit is contained in:
Zakharov_Rostislav 2024-04-25 00:04:29 +04:00
parent fb7802913b
commit 7fad6a59aa
26 changed files with 133 additions and 7 deletions

View File

@ -1,7 +0,0 @@
namespace BankDataModels
{
public class Class1
{
}
}

View File

@ -0,0 +1,7 @@
namespace BankDataModels
{
public interface IId
{
int Id { get; }
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankDataModels.Models
{
public interface IAccountModel : IId
{
string Number { get; set; }
int Money { get; set; }
DateOnly ReleaseDate { get; set; }
int ManagerId { get; set; }
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankDataModels.Models
{
public interface ICardModel : IId
{
string Number { get; set; }
string Cvv { get; set; }
string Pin { get; set; }
DateOnly ReleaseDate { get; set; }
DateOnly ExpirationDate { get; set; }
int ClientId { get; set; }
int? AccountId { get; set; }
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankDataModels.Models
{
public interface IClientModel : IId
{
string Fio { get; }
string Email { get; }
string Password { get; }
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankDataModels.Models
{
public interface IManagerModel : IId
{
string Fio { get; }
string Email { get; }
string Password { get; }
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankDataModels.Models
{
public interface IOperationModel
{
int sum { get; set; }
DateTime OperationTime { get; set; }
int SenderCardId { get; set; }
int RecipientCardId { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankDataModels.Models
{
public interface IRequestModel : IId
{
int Sum { get; set; }
DateTime RequestTime { get; set; }
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankDataModels.Models
{
public interface ITransferModel
{
int Sum { get; set; }
DateTime TransferTime { get; set; }
int? OperationId { get; set; }
int SenderAccountId { get; set; }
int RecipientAccountId { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankDataModels.Models
{
public interface IWithdrawalModel
{
DateTime WithdrawalTime { get; set; }
int? RequestId { get; set; }
}
}

Binary file not shown.

BIN
ERD/Bank.vpp.bak_000f Normal file

Binary file not shown.

BIN
ERD/Bank.vpp.bak_001d Normal file

Binary file not shown.

BIN
ERD/Bank.vpp.bak_002d Normal file

Binary file not shown.

BIN
ERD/Bank.vpp.bak_003d Normal file

Binary file not shown.

BIN
ERD/Bank.vpp.bak_004d Normal file

Binary file not shown.

BIN
ERD/Bank.vpp.bak_005d Normal file

Binary file not shown.

BIN
ERD/Bank.vpp.bak_006d Normal file

Binary file not shown.

BIN
ERD/Bank.vpp.bak_007d Normal file

Binary file not shown.

BIN
ERD/Bank.vpp.bak_008d Normal file

Binary file not shown.

BIN
ERD/Bank_english.vpp Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.