diff --git a/Bank/BankDataModels/Class1.cs b/Bank/BankDataModels/Class1.cs deleted file mode 100644 index 2f2169d..0000000 --- a/Bank/BankDataModels/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace BankDataModels -{ - public class Class1 - { - - } -} diff --git a/Bank/BankDataModels/IId.cs b/Bank/BankDataModels/IId.cs new file mode 100644 index 0000000..96353a0 --- /dev/null +++ b/Bank/BankDataModels/IId.cs @@ -0,0 +1,7 @@ +namespace BankDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/Bank/BankDataModels/Models/IAccountModel.cs b/Bank/BankDataModels/Models/IAccountModel.cs new file mode 100644 index 0000000..cde7653 --- /dev/null +++ b/Bank/BankDataModels/Models/IAccountModel.cs @@ -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; } + } +} diff --git a/Bank/BankDataModels/Models/ICardModel.cs b/Bank/BankDataModels/Models/ICardModel.cs new file mode 100644 index 0000000..acdd6ef --- /dev/null +++ b/Bank/BankDataModels/Models/ICardModel.cs @@ -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; } + } +} diff --git a/Bank/BankDataModels/Models/IClientModel.cs b/Bank/BankDataModels/Models/IClientModel.cs new file mode 100644 index 0000000..35cab4a --- /dev/null +++ b/Bank/BankDataModels/Models/IClientModel.cs @@ -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; } + } +} diff --git a/Bank/BankDataModels/Models/IManagerModel.cs b/Bank/BankDataModels/Models/IManagerModel.cs new file mode 100644 index 0000000..616b0ec --- /dev/null +++ b/Bank/BankDataModels/Models/IManagerModel.cs @@ -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; } + } +} diff --git a/Bank/BankDataModels/Models/IOperationModel.cs b/Bank/BankDataModels/Models/IOperationModel.cs new file mode 100644 index 0000000..2d0b393 --- /dev/null +++ b/Bank/BankDataModels/Models/IOperationModel.cs @@ -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; } + } +} diff --git a/Bank/BankDataModels/Models/IRequestModel.cs b/Bank/BankDataModels/Models/IRequestModel.cs new file mode 100644 index 0000000..fd180ce --- /dev/null +++ b/Bank/BankDataModels/Models/IRequestModel.cs @@ -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; } + } +} diff --git a/Bank/BankDataModels/Models/ITransferModel.cs b/Bank/BankDataModels/Models/ITransferModel.cs new file mode 100644 index 0000000..2f245df --- /dev/null +++ b/Bank/BankDataModels/Models/ITransferModel.cs @@ -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; } + } +} diff --git a/Bank/BankDataModels/Models/IWithdrawalModel.cs b/Bank/BankDataModels/Models/IWithdrawalModel.cs new file mode 100644 index 0000000..72c9194 --- /dev/null +++ b/Bank/BankDataModels/Models/IWithdrawalModel.cs @@ -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; } + } +} diff --git a/ERD/Bank.vpp b/ERD/Bank.vpp index d82c30a..bf9724c 100644 Binary files a/ERD/Bank.vpp and b/ERD/Bank.vpp differ diff --git a/ERD/Bank.vpp.bak_000f b/ERD/Bank.vpp.bak_000f new file mode 100644 index 0000000..d82c30a Binary files /dev/null and b/ERD/Bank.vpp.bak_000f differ diff --git a/ERD/Bank.vpp.bak_001d b/ERD/Bank.vpp.bak_001d new file mode 100644 index 0000000..90ecbb3 Binary files /dev/null and b/ERD/Bank.vpp.bak_001d differ diff --git a/ERD/Bank.vpp.bak_002d b/ERD/Bank.vpp.bak_002d new file mode 100644 index 0000000..807828a Binary files /dev/null and b/ERD/Bank.vpp.bak_002d differ diff --git a/ERD/Bank.vpp.bak_003d b/ERD/Bank.vpp.bak_003d new file mode 100644 index 0000000..0acb1bd Binary files /dev/null and b/ERD/Bank.vpp.bak_003d differ diff --git a/ERD/Bank.vpp.bak_004d b/ERD/Bank.vpp.bak_004d new file mode 100644 index 0000000..a9278fd Binary files /dev/null and b/ERD/Bank.vpp.bak_004d differ diff --git a/ERD/Bank.vpp.bak_005d b/ERD/Bank.vpp.bak_005d new file mode 100644 index 0000000..211a51e Binary files /dev/null and b/ERD/Bank.vpp.bak_005d differ diff --git a/ERD/Bank.vpp.bak_006d b/ERD/Bank.vpp.bak_006d new file mode 100644 index 0000000..6636bdf Binary files /dev/null and b/ERD/Bank.vpp.bak_006d differ diff --git a/ERD/Bank.vpp.bak_007d b/ERD/Bank.vpp.bak_007d new file mode 100644 index 0000000..332d93a Binary files /dev/null and b/ERD/Bank.vpp.bak_007d differ diff --git a/ERD/Bank.vpp.bak_008d b/ERD/Bank.vpp.bak_008d new file mode 100644 index 0000000..bd1c392 Binary files /dev/null and b/ERD/Bank.vpp.bak_008d differ diff --git a/ERD/Bank_english.vpp b/ERD/Bank_english.vpp new file mode 100644 index 0000000..380c8ca Binary files /dev/null and b/ERD/Bank_english.vpp differ diff --git a/ERD/Bank_english.vpp.bak_000f b/ERD/Bank_english.vpp.bak_000f new file mode 100644 index 0000000..9629168 Binary files /dev/null and b/ERD/Bank_english.vpp.bak_000f differ diff --git a/ERD/Bank_english.vpp.bak_001d b/ERD/Bank_english.vpp.bak_001d new file mode 100644 index 0000000..609bf17 Binary files /dev/null and b/ERD/Bank_english.vpp.bak_001d differ diff --git a/ERD/Bank_english.vpp.bak_002d b/ERD/Bank_english.vpp.bak_002d new file mode 100644 index 0000000..fb843a5 Binary files /dev/null and b/ERD/Bank_english.vpp.bak_002d differ diff --git a/ERD/Bank_english.vpp.bak_003d b/ERD/Bank_english.vpp.bak_003d new file mode 100644 index 0000000..47fa199 Binary files /dev/null and b/ERD/Bank_english.vpp.bak_003d differ diff --git a/ERD/Bank_english.vpp.bak_004d b/ERD/Bank_english.vpp.bak_004d new file mode 100644 index 0000000..ae7a7a0 Binary files /dev/null and b/ERD/Bank_english.vpp.bak_004d differ