diff --git a/.gitignore b/.gitignore index 8187f71..8403eba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,16 +1,662 @@ -/StoreService/obj/project.assets.json -# Default ignored files -/shelf/ -/workspace.xml -# Rider ignored files -/contentModel.xml -/projectSettingsUpdater.xml -/modules.xml -/.idea.LCT2025.iml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml -*.xml -*.cache \ No newline at end of file +# Created by https://www.toptal.com/developers/gitignore/api/vim,rider,visualstudiocode,git,aspnetcore,csharp,dotnetcore +# Edit at https://www.toptal.com/developers/gitignore?templates=vim,rider,visualstudiocode,git,aspnetcore,csharp,dotnetcore + +### ASPNETCore ### +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# DNX +project.lock.json +project.fragment.lock.json +artifacts/ + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# TODO: Comment the next line if you want to checkin your web deploy settings +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/packages/* +# except build/, which is used as an MSBuild target. +!**/packages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/packages/repositories.config +# NuGet v3's project.json files produces more ignoreable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +node_modules/ +orleans.codegen.cs + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# CodeRush +.cr/ + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/ + +### Csharp ### +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore + +# User-specific files +*.rsuser + +# User-specific files (MonoDevelop/Xamarin Studio) + +# Mono auto generated files +mono_crash.* + +# Build results +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +# Uncomment if you have tasks that create the project's static files in wwwroot + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results + +# NUnit +nunit-*.xml + +# Build Results of an ATL Project + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_h.h +*.iobj +*.ipdb +*_wpftmp.csproj +*.tlog + +# Chutzpah Test files + +# Visual C++ cache files + +# Visual Studio profiler + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace + +# Guidance Automation Toolkit + +# ReSharper is a .NET coding add-in + +# TeamCity is a build add-in + +# DotCover is a Code Coverage Tool + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results + +# NCrunch + +# MightyMoose + +# Web workbench (sass) + +# Installshield output folder + +# DocProject is a documentation generator add-in + +# Click-Once directory + +# Publish Web Output +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted + +# NuGet Packages +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files + +# Microsoft Azure Build Output + +# Microsoft Azure Emulator + +# Windows Store app package directories and files +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) + +# RIA/Silverlight projects + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.ndf + +# Business Intelligence projects +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes + +# GhostDoc plugin setting file + +# Node.js Tools for Visual Studio + +# Visual Studio 6 build log + +# Visual Studio 6 workspace options file + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files + +# Visual Studio LightSwitch build output + +# Paket dependency manager + +# FAKE - F# Make + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider + +### DotnetCore ### +# .NET Core build folders +bin/ +obj/ + +# Common node modules locations +/node_modules +/wwwroot/node_modules + +### Git ### +# Created by git for backups. To disable backups in Git: +# $ git config --global mergetool.keepBackup false +*.orig + +# Created by git when using merge tools for conflicts +*.BACKUP.* +*.BASE.* +*.LOCAL.* +*.REMOTE.* +*_BACKUP_*.txt +*_BASE_*.txt +*_LOCAL_*.txt +*_REMOTE_*.txt + +### Rider ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### Vim ### +# Swap +[._]*.s[a-v][a-z] +!*.svg # comment out if you don't need vector files +[._]*.sw[a-p] +[._]s[a-rt-v][a-z] +[._]ss[a-gi-z] +[._]sw[a-p] + +# Session +Session.vim +Sessionx.vim + +# Temporary +.netrwhist +# Auto-generated tag files +tags +# Persistent undo +[._]*.un~ + +### VisualStudioCode ### +!.vscode/*.code-snippets + +# Local History for Visual Studio Code + +# Built Visual Studio Code Extensions +*.vsix + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + +# End of https://www.toptal.com/developers/gitignore/api/vim,rider,visualstudiocode,git,aspnetcore,csharp,dotnetcore diff --git a/LctMonolith/Controllers/AuthController.cs b/LctMonolith/Controllers/AuthController.cs index 13c9f92..f785624 100644 --- a/LctMonolith/Controllers/AuthController.cs +++ b/LctMonolith/Controllers/AuthController.cs @@ -1,5 +1,5 @@ using System.Security.Claims; -using LctMonolith.Models; +using LctMonolith.Models.Database; using LctMonolith.Services; using LctMonolith.Services.Contracts; using LctMonolith.Services.Models; diff --git a/LctMonolith/Controllers/MissionsController.cs b/LctMonolith/Controllers/MissionsController.cs index 6de58ad..8cf5ffb 100644 --- a/LctMonolith/Controllers/MissionsController.cs +++ b/LctMonolith/Controllers/MissionsController.cs @@ -1,5 +1,5 @@ using System.Security.Claims; -using LctMonolith.Models; +using LctMonolith.Models.Database; using LctMonolith.Services; using LctMonolith.Services.Contracts; using LctMonolith.Services.Models; diff --git a/LctMonolith/Database/Data/AppDbContext.cs b/LctMonolith/Database/Data/AppDbContext.cs index 2fb14dd..3cc103c 100644 --- a/LctMonolith/Database/Data/AppDbContext.cs +++ b/LctMonolith/Database/Data/AppDbContext.cs @@ -1,9 +1,9 @@ using System.Diagnostics; -using LctMonolith.Models; +using LctMonolith.Models.Database; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; -using EventLog = LctMonolith.Models.EventLog; +using EventLog = LctMonolith.Models.Database.EventLog; namespace LctMonolith.Database.Data; diff --git a/LctMonolith/Database/Data/DbSeeder.cs b/LctMonolith/Database/Data/DbSeeder.cs index a608d21..d490835 100644 --- a/LctMonolith/Database/Data/DbSeeder.cs +++ b/LctMonolith/Database/Data/DbSeeder.cs @@ -1,4 +1,4 @@ -using LctMonolith.Models; +using LctMonolith.Models.Database; using Microsoft.EntityFrameworkCore; using Serilog; diff --git a/LctMonolith/Database/Models/EventType.cs b/LctMonolith/Database/Models/EventType.cs index 713cb6c..f76cdba 100644 --- a/LctMonolith/Database/Models/EventType.cs +++ b/LctMonolith/Database/Models/EventType.cs @@ -1,4 +1,4 @@ -namespace LctMonolith.Models; +namespace LctMonolith.Models.Database; public enum EventType { diff --git a/LctMonolith/Database/UnitOfWork/IUnitOfWork.cs b/LctMonolith/Database/UnitOfWork/IUnitOfWork.cs index 9a5ac5b..8e9ef92 100644 --- a/LctMonolith/Database/UnitOfWork/IUnitOfWork.cs +++ b/LctMonolith/Database/UnitOfWork/IUnitOfWork.cs @@ -1,7 +1,6 @@ -using System.Diagnostics; using LctMonolith.Database.Repositories; -using LctMonolith.Models; -using EventLog = LctMonolith.Models.EventLog; +using LctMonolith.Models.Database; +using EventLog = LctMonolith.Models.Database.EventLog; namespace LctMonolith.Database.UnitOfWork; @@ -12,16 +11,13 @@ public interface IUnitOfWork { IGenericRepository Users { get; } IGenericRepository Ranks { get; } - IGenericRepository RankRequiredMissions { get; } - IGenericRepository RankRequiredCompetencies { get; } + IGenericRepository RankMissionRules { get; } + IGenericRepository RankSkillRules { get; } IGenericRepository Missions { get; } - IGenericRepository UserMissions { get; } - IGenericRepository MissionCompetencyRewards { get; } - IGenericRepository MissionArtifactRewards { get; } - IGenericRepository Competencies { get; } - IGenericRepository UserCompetencies { get; } - IGenericRepository Artifacts { get; } - IGenericRepository UserArtifacts { get; } + IGenericRepository PlayerMissions { get; } + IGenericRepository MissionSkillRewards { get; } + IGenericRepository Skills { get; } + IGenericRepository PlayerSkills { get; } IGenericRepository StoreItems { get; } IGenericRepository UserInventoryItems { get; } IGenericRepository Transactions { get; } diff --git a/LctMonolith/Database/UnitOfWork/UnitOfWork.cs b/LctMonolith/Database/UnitOfWork/UnitOfWork.cs index bf688be..6f8638e 100644 --- a/LctMonolith/Database/UnitOfWork/UnitOfWork.cs +++ b/LctMonolith/Database/UnitOfWork/UnitOfWork.cs @@ -1,9 +1,9 @@ using LctMonolith.Database.Data; using LctMonolith.Database.Repositories; -using LctMonolith.Models; +using LctMonolith.Models.Database; using Microsoft.EntityFrameworkCore.Storage; -using EventLog = LctMonolith.Models.EventLog; +using EventLog = LctMonolith.Models.Database.EventLog; namespace LctMonolith.Database.UnitOfWork; @@ -22,16 +22,13 @@ public class UnitOfWork : IUnitOfWork, IAsyncDisposable private IGenericRepository? _users; private IGenericRepository? _ranks; - private IGenericRepository? _rankRequiredMissions; - private IGenericRepository? _rankRequiredCompetencies; + private IGenericRepository? _rankMissionRules; + private IGenericRepository? _rankSkillRules; private IGenericRepository? _missions; - private IGenericRepository? _userMissions; - private IGenericRepository? _missionCompetencyRewards; - private IGenericRepository? _missionArtifactRewards; - private IGenericRepository? _competencies; - private IGenericRepository? _userCompetencies; - private IGenericRepository? _artifacts; - private IGenericRepository? _userArtifacts; + private IGenericRepository? _playerMissions; + private IGenericRepository? _missionSkillRewards; + private IGenericRepository? _skills; + private IGenericRepository? _playerSkills; private IGenericRepository? _storeItems; private IGenericRepository? _userInventoryItems; private IGenericRepository? _transactions; @@ -41,16 +38,13 @@ public class UnitOfWork : IUnitOfWork, IAsyncDisposable public IGenericRepository Users => _users ??= new GenericRepository(_ctx); public IGenericRepository Ranks => _ranks ??= new GenericRepository(_ctx); - public IGenericRepository RankRequiredMissions => _rankRequiredMissions ??= new GenericRepository(_ctx); - public IGenericRepository RankRequiredCompetencies => _rankRequiredCompetencies ??= new GenericRepository(_ctx); + public IGenericRepository RankMissionRules => _rankMissionRules ??= new GenericRepository(_ctx); + public IGenericRepository RankSkillRules => _rankSkillRules ??= new GenericRepository(_ctx); public IGenericRepository Missions => _missions ??= new GenericRepository(_ctx); - public IGenericRepository UserMissions => _userMissions ??= new GenericRepository(_ctx); - public IGenericRepository MissionCompetencyRewards => _missionCompetencyRewards ??= new GenericRepository(_ctx); - public IGenericRepository MissionArtifactRewards => _missionArtifactRewards ??= new GenericRepository(_ctx); - public IGenericRepository Competencies => _competencies ??= new GenericRepository(_ctx); - public IGenericRepository UserCompetencies => _userCompetencies ??= new GenericRepository(_ctx); - public IGenericRepository Artifacts => _artifacts ??= new GenericRepository(_ctx); - public IGenericRepository UserArtifacts => _userArtifacts ??= new GenericRepository(_ctx); + public IGenericRepository PlayerMissions => _playerMissions ??= new GenericRepository(_ctx); + public IGenericRepository MissionSkillRewards => _missionSkillRewards ??= new GenericRepository(_ctx); + public IGenericRepository Skills => _skills ??= new GenericRepository(_ctx); + public IGenericRepository PlayerSkills => _playerSkills ??= new GenericRepository(_ctx); public IGenericRepository StoreItems => _storeItems ??= new GenericRepository(_ctx); public IGenericRepository UserInventoryItems => _userInventoryItems ??= new GenericRepository(_ctx); public IGenericRepository Transactions => _transactions ??= new GenericRepository(_ctx); diff --git a/LctMonolith/Models/Artifact.cs b/LctMonolith/Models/Artifact.cs deleted file mode 100644 index 72b26a5..0000000 --- a/LctMonolith/Models/Artifact.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace LctMonolith.Models; - -public class Artifact -{ - public Guid Id { get; set; } = Guid.NewGuid(); - public string Name { get; set; } = null!; - public string? Description { get; set; } - public string? ImageUrl { get; set; } - public ArtifactRarity Rarity { get; set; } - public ICollection Users { get; set; } = new List(); - public ICollection MissionRewards { get; set; } = new List(); -} - diff --git a/LctMonolith/Models/ArtifactRarity.cs b/LctMonolith/Models/ArtifactRarity.cs deleted file mode 100644 index 909cb1c..0000000 --- a/LctMonolith/Models/ArtifactRarity.cs +++ /dev/null @@ -1,3 +0,0 @@ -namespace LctMonolith.Models; - -public enum ArtifactRarity { Common = 0, Rare = 1, Epic = 2, Legendary = 3 } diff --git a/LctMonolith/Models/Competency.cs b/LctMonolith/Models/Competency.cs deleted file mode 100644 index 55d7b8d..0000000 --- a/LctMonolith/Models/Competency.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace LctMonolith.Models; - -public class Competency -{ - public Guid Id { get; set; } = Guid.NewGuid(); - public string Name { get; set; } = null!; - public string? Description { get; set; } - public ICollection UserCompetencies { get; set; } = new List(); - public ICollection MissionRewards { get; set; } = new List(); - public ICollection RankRequirements { get; set; } = new List(); -} diff --git a/LctMonolith/Models/AppUser.cs b/LctMonolith/Models/Database/AppUser.cs similarity index 95% rename from LctMonolith/Models/AppUser.cs rename to LctMonolith/Models/Database/AppUser.cs index e7db1ce..4339360 100644 --- a/LctMonolith/Models/AppUser.cs +++ b/LctMonolith/Models/Database/AppUser.cs @@ -1,7 +1,6 @@ -using System.Diagnostics; using Microsoft.AspNetCore.Identity; -namespace LctMonolith.Models; +namespace LctMonolith.Models.Database; public class AppUser : IdentityUser { diff --git a/LctMonolith/Models/Database/AuditableEntity.cs b/LctMonolith/Models/Database/AuditableEntity.cs new file mode 100644 index 0000000..3c0337a --- /dev/null +++ b/LctMonolith/Models/Database/AuditableEntity.cs @@ -0,0 +1,9 @@ +namespace LctMonolith.Models.Database; + +public class AuditableEntity +{ + public DateTimeOffset CreatedOn { get; set; } + public string CreatedBy { get; set; } = string.Empty; + public DateTimeOffset UpdatedOn { get; set; } + public string UpdatedBy { get; set; } = string.Empty; +} diff --git a/LctMonolith/Models/Database/Dialogue.cs b/LctMonolith/Models/Database/Dialogue.cs new file mode 100644 index 0000000..5ac4d20 --- /dev/null +++ b/LctMonolith/Models/Database/Dialogue.cs @@ -0,0 +1,16 @@ +namespace LctMonolith.Models.Database; + +public class Dialogue +{ + public Guid Id { get; set; } + + public Guid MissionId { get; set; } + public required Mission Mission { get; set; } + + public Guid InitialDialogueMessageId { get; set; } + public Dialogue? InitialDialogueMessage { get; set; } + public Guid InterimDialogueMessageId { get; set; } + public Dialogue? InterimDialogueMessage { get; set; } + public Guid EndDialogueMessageId { get; set; } + public Dialogue? EndDialogueMessage { get; set; } +} diff --git a/LctMonolith/Models/Database/DialogueMessage.cs b/LctMonolith/Models/Database/DialogueMessage.cs new file mode 100644 index 0000000..6d2ca32 --- /dev/null +++ b/LctMonolith/Models/Database/DialogueMessage.cs @@ -0,0 +1,27 @@ +using LctMonolith.Models.Enums; + +namespace LctMonolith.Models.Database; + +public class DialogueMessage +{ + public Guid Id { get; set; } + public Character CharacterLeft { get; set; } = Character.None; + public Character CharacterRight { get; set; } = Character.None; + public CharacterAnimation CharacterLeftAnim { get; set; } = CharacterAnimation.Neutral; + public CharacterAnimation CharacterRightAnim { get; set; } = CharacterAnimation.Neutral; + public string CharacterLeftMessage { get; set; } = string.Empty; + public string CharacterRightMessage { get; set; } = string.Empty; + public MessageStyle CharacterLeftMessageStyle { get; set; } = MessageStyle.Normal; + public MessageStyle CharacterRightMessageStyle { get; set; } = MessageStyle.Normal; + public bool AllowMessageAi { get; set; } + public string MessageAiButtonText { get; set; } = string.Empty; + + public Guid InitialDialogueId { get; set; } + public Dialogue? InitialDialogue { get; set; } + public Guid InterimDialogueId { get; set; } + public Dialogue? InterimDialogue { get; set; } + public Guid EndDialogueId { get; set; } + public Dialogue? EndDialogue { get; set; } + + public ICollection DialogueMessageResponseOptions = new List(); +} diff --git a/LctMonolith/Models/Database/DialogueMessageResponseOption.cs b/LctMonolith/Models/Database/DialogueMessageResponseOption.cs new file mode 100644 index 0000000..9912921 --- /dev/null +++ b/LctMonolith/Models/Database/DialogueMessageResponseOption.cs @@ -0,0 +1,16 @@ +using LctMonolith.Models.Enums; + +namespace LctMonolith.Models.Database; + +public class DialogueMessageResponseOption +{ + public Guid Id { get; set; } + public string Message { get; set; } = "..."; + public MessageStyle MessageStyle { get; set; } = MessageStyle.Normal; + public int z { get; set; } + + public Guid ParentDialogueMessageId { get; set; } + public required DialogueMessage ParentDialogueMessage { get; set; } + public Guid DestinationDialogueMessageId { get; set; } + public DialogueMessage? DestinationDialogueMessage { get; set; } +} diff --git a/LctMonolith/Models/EventLog.cs b/LctMonolith/Models/Database/EventLog.cs similarity index 88% rename from LctMonolith/Models/EventLog.cs rename to LctMonolith/Models/Database/EventLog.cs index 457f998..90974f0 100644 --- a/LctMonolith/Models/EventLog.cs +++ b/LctMonolith/Models/Database/EventLog.cs @@ -1,4 +1,4 @@ -namespace LctMonolith.Models; +namespace LctMonolith.Models.Database; public class EventLog { diff --git a/LctMonolith/Models/Database/Mission.cs b/LctMonolith/Models/Database/Mission.cs new file mode 100644 index 0000000..f275597 --- /dev/null +++ b/LctMonolith/Models/Database/Mission.cs @@ -0,0 +1,24 @@ +namespace LctMonolith.Models.Database; + +public class Mission +{ + public Guid Id { get; set; } + public string Title { get; set; } = string.Empty; + public string Description { get; set; } = string.Empty; + public MissionCategory? MissionCategory { get; set; } + public long MissionCategoryId { get; set; } + public Mission? ParentMission { get; set; } + public long ParentMissionId { get; set; } + public int ExpReward { get; set; } + public int ManaReward { get; set; } + + public Guid DialogueId { get; set; } + public Dialogue? Dialogue { get; set; } + + public ICollection ChildMissions { get; set; } = new List(); + public ICollection PlayerMissions { get; set; } = new List(); + public ICollection MissionItemRewards { get; set; } = new List(); + public ICollection MissionSkillRewards { get; set; } = new List(); + public ICollection MissionRankRules { get; set; } = new List(); + public ICollection RankMissionRules { get; set; } = new List(); +} diff --git a/LctMonolith/Models/Database/MissionCategory.cs b/LctMonolith/Models/Database/MissionCategory.cs new file mode 100644 index 0000000..7d6cc64 --- /dev/null +++ b/LctMonolith/Models/Database/MissionCategory.cs @@ -0,0 +1,9 @@ +namespace LctMonolith.Models.Database; + +public class MissionCategory +{ + public Guid Id { get; set; } + public string Title { get; set; } = string.Empty; + + public ICollection Missions { get; set; } = new List(); +} diff --git a/LctMonolith/Models/Database/MissionItemReward.cs b/LctMonolith/Models/Database/MissionItemReward.cs new file mode 100644 index 0000000..56ecada --- /dev/null +++ b/LctMonolith/Models/Database/MissionItemReward.cs @@ -0,0 +1,9 @@ +namespace LctMonolith.Models.Database; + +public class MissionItemReward +{ + public Guid Id { get; set; } + public Guid ItemId { get; set; } + public Guid MissionId { get; set; } + public required Mission Mission { get; set; } +} diff --git a/LctMonolith/Models/RankRequiredMission.cs b/LctMonolith/Models/Database/MissionRankRule.cs similarity index 63% rename from LctMonolith/Models/RankRequiredMission.cs rename to LctMonolith/Models/Database/MissionRankRule.cs index 226c9ab..7c5d3bf 100644 --- a/LctMonolith/Models/RankRequiredMission.cs +++ b/LctMonolith/Models/Database/MissionRankRule.cs @@ -1,9 +1,10 @@ -namespace LctMonolith.Models; +namespace LctMonolith.Models.Database; -public class RankRequiredMission +public class MissionRankRule { - public Guid RankId { get; set; } - public Rank Rank { get; set; } = null!; + public Guid Id { get; set; } public Guid MissionId { get; set; } public Mission Mission { get; set; } = null!; + public Guid RankId { get; set; } + public Rank Rank { get; set; } = null!; } diff --git a/LctMonolith/Models/Database/MissionSkillReward.cs b/LctMonolith/Models/Database/MissionSkillReward.cs new file mode 100644 index 0000000..ecd02ee --- /dev/null +++ b/LctMonolith/Models/Database/MissionSkillReward.cs @@ -0,0 +1,11 @@ +namespace LctMonolith.Models.Database; + +public class MissionSkillReward +{ + public Guid Id { get; set; } + public Guid MissionId { get; set; } + public Mission Mission { get; set; } = null!; + public long SkillId { get; set; } + public Skill Skill { get; set; } = null!; + public int Value { get; set; } +} diff --git a/LctMonolith/Models/Notification.cs b/LctMonolith/Models/Database/Notification.cs similarity index 92% rename from LctMonolith/Models/Notification.cs rename to LctMonolith/Models/Database/Notification.cs index 7797119..abcfb62 100644 --- a/LctMonolith/Models/Notification.cs +++ b/LctMonolith/Models/Database/Notification.cs @@ -1,4 +1,4 @@ -namespace LctMonolith.Models; +namespace LctMonolith.Models.Database; public class Notification { diff --git a/LctMonolith/Models/Database/Player.cs b/LctMonolith/Models/Database/Player.cs new file mode 100644 index 0000000..72e58ba --- /dev/null +++ b/LctMonolith/Models/Database/Player.cs @@ -0,0 +1,13 @@ +namespace LctMonolith.Models.Database; + +public class Player +{ + public Guid Id { get; set; } + public Guid UserId { get; set; } + public Rank? Rank { get; set; } + public Guid RankId {get; set; } + public int Experience { get; set; } + + public ICollection PlayerMissions { get; set; } = new List(); + public ICollection PlayerSkills { get; set; } = new List(); +} diff --git a/LctMonolith/Models/Database/PlayerMission.cs b/LctMonolith/Models/Database/PlayerMission.cs new file mode 100644 index 0000000..a79f4a5 --- /dev/null +++ b/LctMonolith/Models/Database/PlayerMission.cs @@ -0,0 +1,13 @@ +namespace LctMonolith.Models.Database; + +public class PlayerMission +{ + public Guid Id { get; set; } + public Guid PlayerId { get; set; } + public required Player Player { get; set; } + public Guid MissionId { get; set; } + public required Mission Mission { get; set; } + public DateTime? Started { get; set; } + public DateTime? Completed { get; set; } + public DateTime? RewardsRedeemed { get; set; } +} diff --git a/LctMonolith/Models/Database/PlayerSkill.cs b/LctMonolith/Models/Database/PlayerSkill.cs new file mode 100644 index 0000000..b7b434f --- /dev/null +++ b/LctMonolith/Models/Database/PlayerSkill.cs @@ -0,0 +1,11 @@ +namespace LctMonolith.Models.Database; + +public class PlayerSkill +{ + public Guid Id { get; set; } + public Guid PlayerId { get; set; } + public Player Player { get; set; } = null!; + public Guid SkillId { get; set; } + public Skill Skill { get; set; } = null!; + public int Score { get; set; } +} diff --git a/LctMonolith/Models/Database/Rank.cs b/LctMonolith/Models/Database/Rank.cs new file mode 100644 index 0000000..ec9ed7e --- /dev/null +++ b/LctMonolith/Models/Database/Rank.cs @@ -0,0 +1,13 @@ +namespace LctMonolith.Models.Database; + +public class Rank +{ + public Guid Id { get; set; } + public string Title { get; set; } = string.Empty; + public int ExpNeeded { get; set; } + + public ICollection Players { get; set; } = new List(); + public ICollection MissionRankRules { get; set; } = new List(); + public ICollection RankMissionRules { get; set; } = new List(); + public ICollection RankSkillRules { get; set; } = new List(); +} diff --git a/LctMonolith/Models/Database/RankMissionRule.cs b/LctMonolith/Models/Database/RankMissionRule.cs new file mode 100644 index 0000000..ee60e54 --- /dev/null +++ b/LctMonolith/Models/Database/RankMissionRule.cs @@ -0,0 +1,10 @@ +namespace LctMonolith.Models.Database; + +public class RankMissionRule +{ + public Guid Id { get; set; } + public Guid RankId { get; set; } + public Rank Rank { get; set; } = null!; + public Guid MissionId { get; set; } + public Mission Mission { get; set; } = null!; +} diff --git a/LctMonolith/Models/Database/RankSkillRule.cs b/LctMonolith/Models/Database/RankSkillRule.cs new file mode 100644 index 0000000..fdf5cfc --- /dev/null +++ b/LctMonolith/Models/Database/RankSkillRule.cs @@ -0,0 +1,11 @@ +namespace LctMonolith.Models.Database; + +public class RankSkillRule +{ + public Guid Id { get; set; } + public Guid RankId { get; set; } + public Rank Rank { get; set; } = null!; + public Guid SkillId { get; set; } + public Skill Skill { get; set; } = null!; + public int Min { get; set; } +} diff --git a/LctMonolith/Models/RefreshToken.cs b/LctMonolith/Models/Database/RefreshToken.cs similarity index 90% rename from LctMonolith/Models/RefreshToken.cs rename to LctMonolith/Models/Database/RefreshToken.cs index 559b008..46f0972 100644 --- a/LctMonolith/Models/RefreshToken.cs +++ b/LctMonolith/Models/Database/RefreshToken.cs @@ -1,4 +1,4 @@ -namespace LctMonolith.Models; +namespace LctMonolith.Models.Database; public class RefreshToken { diff --git a/LctMonolith/Models/Database/Skill.cs b/LctMonolith/Models/Database/Skill.cs new file mode 100644 index 0000000..7ea0806 --- /dev/null +++ b/LctMonolith/Models/Database/Skill.cs @@ -0,0 +1,10 @@ +namespace LctMonolith.Models.Database; + +public class Skill +{ + public Guid Id { get; set; } + public string Title { get; set; } = string.Empty; + public ICollection MissionSkillRewards { get; set; } = new List(); + public ICollection RankSkillRules { get; set; } = new List(); + public ICollection PlayerSkills { get; set; } = new List(); +} diff --git a/LctMonolith/Models/StoreItem.cs b/LctMonolith/Models/Database/StoreItem.cs similarity index 90% rename from LctMonolith/Models/StoreItem.cs rename to LctMonolith/Models/Database/StoreItem.cs index ad609a0..f5fcfc8 100644 --- a/LctMonolith/Models/StoreItem.cs +++ b/LctMonolith/Models/Database/StoreItem.cs @@ -1,4 +1,4 @@ -namespace LctMonolith.Models; +namespace LctMonolith.Models.Database; public class StoreItem { diff --git a/LctMonolith/Models/Transaction.cs b/LctMonolith/Models/Database/Transaction.cs similarity index 91% rename from LctMonolith/Models/Transaction.cs rename to LctMonolith/Models/Database/Transaction.cs index ba0cbd0..19d02da 100644 --- a/LctMonolith/Models/Transaction.cs +++ b/LctMonolith/Models/Database/Transaction.cs @@ -1,4 +1,4 @@ -namespace LctMonolith.Models; +namespace LctMonolith.Models.Database; public class Transaction { diff --git a/LctMonolith/Models/TransactionType.cs b/LctMonolith/Models/Database/TransactionType.cs similarity index 63% rename from LctMonolith/Models/TransactionType.cs rename to LctMonolith/Models/Database/TransactionType.cs index 9eff065..3a09669 100644 --- a/LctMonolith/Models/TransactionType.cs +++ b/LctMonolith/Models/Database/TransactionType.cs @@ -1,3 +1,3 @@ -namespace LctMonolith.Models; +namespace LctMonolith.Models.Database; public enum TransactionType { Purchase = 0, Return = 1, Sale = 2 } diff --git a/LctMonolith/Models/UserInventoryItem.cs b/LctMonolith/Models/Database/UserInventoryItem.cs similarity index 90% rename from LctMonolith/Models/UserInventoryItem.cs rename to LctMonolith/Models/Database/UserInventoryItem.cs index 154ebf2..032d8bb 100644 --- a/LctMonolith/Models/UserInventoryItem.cs +++ b/LctMonolith/Models/Database/UserInventoryItem.cs @@ -1,4 +1,4 @@ -namespace LctMonolith.Models; +namespace LctMonolith.Models.Database; public class UserInventoryItem { diff --git a/LctMonolith/Models/Enums/Character.cs b/LctMonolith/Models/Enums/Character.cs new file mode 100644 index 0000000..5ac7e65 --- /dev/null +++ b/LctMonolith/Models/Enums/Character.cs @@ -0,0 +1,11 @@ +namespace LctMonolith.Models.Enums; + +public enum Character +{ + None, + Assistant, + Pilot, + Janitor, + Administrator, + Mechanic +} diff --git a/LctMonolith/Models/Enums/CharacterAnimation.cs b/LctMonolith/Models/Enums/CharacterAnimation.cs new file mode 100644 index 0000000..f86a95b --- /dev/null +++ b/LctMonolith/Models/Enums/CharacterAnimation.cs @@ -0,0 +1,18 @@ +namespace LctMonolith.Models.Enums; + +public enum CharacterAnimation +{ + Neutral, + Happy, + Laughter, + Mock, + Sad, + Crying, + Annoyed, + Angry, + Threats, + Wave, + Silhouette, + Scared, + Embarassed +} diff --git a/LctMonolith/Models/Enums/MessageStyle.cs b/LctMonolith/Models/Enums/MessageStyle.cs new file mode 100644 index 0000000..26b868d --- /dev/null +++ b/LctMonolith/Models/Enums/MessageStyle.cs @@ -0,0 +1,9 @@ +namespace LctMonolith.Models.Enums; + +public enum MessageStyle +{ + Normal, + Loud, + Think, + Action +} diff --git a/LctMonolith/Models/Mission.cs b/LctMonolith/Models/Mission.cs deleted file mode 100644 index 85706f4..0000000 --- a/LctMonolith/Models/Mission.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace LctMonolith.Models; - -public class Mission -{ - public Guid Id { get; set; } = Guid.NewGuid(); - public string Title { get; set; } = null!; - public string? Description { get; set; } - public string? Branch { get; set; } - public MissionCategory Category { get; set; } - public Guid? MinRankId { get; set; } - public Rank? MinRank { get; set; } - public int ExperienceReward { get; set; } - public int ManaReward { get; set; } - public bool IsActive { get; set; } = true; - public ICollection CompetencyRewards { get; set; } = new List(); - public ICollection ArtifactRewards { get; set; } = new List(); - public ICollection UserMissions { get; set; } = new List(); - public ICollection RanksRequiring { get; set; } = new List(); -} diff --git a/LctMonolith/Models/MissionArtifactReward.cs b/LctMonolith/Models/MissionArtifactReward.cs deleted file mode 100644 index 5ea6201..0000000 --- a/LctMonolith/Models/MissionArtifactReward.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace LctMonolith.Models; - -public class MissionArtifactReward -{ - public Guid MissionId { get; set; } - public Mission Mission { get; set; } = null!; - public Guid ArtifactId { get; set; } - public Artifact Artifact { get; set; } = null!; -} diff --git a/LctMonolith/Models/MissionCategory.cs b/LctMonolith/Models/MissionCategory.cs deleted file mode 100644 index db47ad3..0000000 --- a/LctMonolith/Models/MissionCategory.cs +++ /dev/null @@ -1,3 +0,0 @@ -namespace LctMonolith.Models; - -public enum MissionCategory { Quest = 0, Recruiting = 1, Lecture = 2, Simulator = 3 } diff --git a/LctMonolith/Models/MissionCompetencyReward.cs b/LctMonolith/Models/MissionCompetencyReward.cs deleted file mode 100644 index c00fafa..0000000 --- a/LctMonolith/Models/MissionCompetencyReward.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace LctMonolith.Models; - -public class MissionCompetencyReward -{ - public Guid MissionId { get; set; } - public Mission Mission { get; set; } = null!; - public Guid CompetencyId { get; set; } - public Competency Competency { get; set; } = null!; - public int LevelDelta { get; set; } - public int ProgressPointsDelta { get; set; } -} diff --git a/LctMonolith/Models/MissionStatus.cs b/LctMonolith/Models/MissionStatus.cs deleted file mode 100644 index 4290f20..0000000 --- a/LctMonolith/Models/MissionStatus.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace LctMonolith.Models; - -public enum MissionStatus -{ - Locked = 0, - Available = 1, - InProgress = 2, - Submitted = 3, - Completed = 4, - Rejected = 5 -} diff --git a/LctMonolith/Models/Rank.cs b/LctMonolith/Models/Rank.cs deleted file mode 100644 index 2afc367..0000000 --- a/LctMonolith/Models/Rank.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace LctMonolith.Models; - -public class Rank -{ - public Guid Id { get; set; } = Guid.NewGuid(); - public string Name { get; set; } = null!; - public int Order { get; set; } - public int RequiredExperience { get; set; } - public ICollection RequiredMissions { get; set; } = new List(); - public ICollection RequiredCompetencies { get; set; } = new List(); - public ICollection Users { get; set; } = new List(); -} diff --git a/LctMonolith/Models/RankRequiredCompetency.cs b/LctMonolith/Models/RankRequiredCompetency.cs deleted file mode 100644 index 5df49f7..0000000 --- a/LctMonolith/Models/RankRequiredCompetency.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace LctMonolith.Models; - -public class RankRequiredCompetency -{ - public Guid RankId { get; set; } - public Rank Rank { get; set; } = null!; - public Guid CompetencyId { get; set; } - public Competency Competency { get; set; } = null!; - public int MinLevel { get; set; } -} diff --git a/LctMonolith/Models/UserArtifact.cs b/LctMonolith/Models/UserArtifact.cs deleted file mode 100644 index 84f5517..0000000 --- a/LctMonolith/Models/UserArtifact.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace LctMonolith.Models; - -public class UserArtifact -{ - public Guid UserId { get; set; } - public AppUser User { get; set; } = null!; - public Guid ArtifactId { get; set; } - public Artifact Artifact { get; set; } = null!; - public DateTime ObtainedAt { get; set; } = DateTime.UtcNow; -} diff --git a/LctMonolith/Models/UserCompetency.cs b/LctMonolith/Models/UserCompetency.cs deleted file mode 100644 index ec81c16..0000000 --- a/LctMonolith/Models/UserCompetency.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace LctMonolith.Models; - -public class UserCompetency -{ - public Guid UserId { get; set; } - public AppUser User { get; set; } = null!; - public Guid CompetencyId { get; set; } - public Competency Competency { get; set; } = null!; - public int Level { get; set; } - public int ProgressPoints { get; set; } -} diff --git a/LctMonolith/Models/UserMission.cs b/LctMonolith/Models/UserMission.cs deleted file mode 100644 index eca94b9..0000000 --- a/LctMonolith/Models/UserMission.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace LctMonolith.Models; - -public class UserMission -{ - public Guid UserId { get; set; } - public AppUser User { get; set; } = null!; - public Guid MissionId { get; set; } - public Mission Mission { get; set; } = null!; - public MissionStatus Status { get; set; } = MissionStatus.Available; - public DateTime UpdatedAt { get; set; } = DateTime.UtcNow; - public string? SubmissionData { get; set; } -} diff --git a/LctMonolith/Program.cs b/LctMonolith/Program.cs index 6182081..9b59c11 100644 --- a/LctMonolith/Program.cs +++ b/LctMonolith/Program.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.IdentityModel.Tokens; using System.Text; -using LctMonolith.Models; // replaced Domain.Entities +using LctMonolith.Models.Database; // replaced Domain.Entities using Microsoft.AspNetCore.Identity; using LctMonolith.Application.Middleware; using LctMonolith.Services; @@ -95,7 +95,7 @@ builder.Services.AddScoped(); // Domain services builder.Services.AddScoped(); -builder.Services.AddScoped(); +builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); diff --git a/LctMonolith/Services/AnalyticsService.cs b/LctMonolith/Services/AnalyticsService.cs index 89523c7..42b721a 100644 --- a/LctMonolith/Services/AnalyticsService.cs +++ b/LctMonolith/Services/AnalyticsService.cs @@ -1,5 +1,5 @@ using LctMonolith.Database.UnitOfWork; -using LctMonolith.Models; +using LctMonolith.Models.Database; using LctMonolith.Services.Models; using Microsoft.EntityFrameworkCore; diff --git a/LctMonolith/Services/Contracts/IGamificationService.cs b/LctMonolith/Services/Contracts/IGamificationService.cs index a87940c..3f34cd9 100644 --- a/LctMonolith/Services/Contracts/IGamificationService.cs +++ b/LctMonolith/Services/Contracts/IGamificationService.cs @@ -1,4 +1,4 @@ -using LctMonolith.Models; +using LctMonolith.Models.Database; using LctMonolith.Services.Models; namespace LctMonolith.Services.Contracts; diff --git a/LctMonolith/Services/Contracts/IInventoryService.cs b/LctMonolith/Services/Contracts/IInventoryService.cs index 4723570..f76df92 100644 --- a/LctMonolith/Services/Contracts/IInventoryService.cs +++ b/LctMonolith/Services/Contracts/IInventoryService.cs @@ -1,4 +1,4 @@ -using LctMonolith.Models; +using LctMonolith.Models.Database; namespace LctMonolith.Services.Contracts; diff --git a/LctMonolith/Services/Contracts/IMissionService.cs b/LctMonolith/Services/Contracts/IMissionService.cs index a0df91e..0e5a236 100644 --- a/LctMonolith/Services/Contracts/IMissionService.cs +++ b/LctMonolith/Services/Contracts/IMissionService.cs @@ -1,4 +1,4 @@ -using LctMonolith.Models; +using LctMonolith.Models.Database; using LctMonolith.Services.Models; namespace LctMonolith.Services.Contracts; diff --git a/LctMonolith/Services/Contracts/INotificationService.cs b/LctMonolith/Services/Contracts/INotificationService.cs index e1193aa..1da65f9 100644 --- a/LctMonolith/Services/Contracts/INotificationService.cs +++ b/LctMonolith/Services/Contracts/INotificationService.cs @@ -1,4 +1,4 @@ -using LctMonolith.Models; +using LctMonolith.Models.Database; namespace LctMonolith.Services.Contracts; diff --git a/LctMonolith/Services/Contracts/IStoreService.cs b/LctMonolith/Services/Contracts/IStoreService.cs index 5cb7004..a3b6034 100644 --- a/LctMonolith/Services/Contracts/IStoreService.cs +++ b/LctMonolith/Services/Contracts/IStoreService.cs @@ -1,4 +1,4 @@ -using LctMonolith.Models; +using LctMonolith.Models.Database; namespace LctMonolith.Services.Contracts; diff --git a/LctMonolith/Services/Contracts/ITokenService.cs b/LctMonolith/Services/Contracts/ITokenService.cs index 583e234..07ffa5a 100644 --- a/LctMonolith/Services/Contracts/ITokenService.cs +++ b/LctMonolith/Services/Contracts/ITokenService.cs @@ -1,4 +1,4 @@ -using LctMonolith.Models; +using LctMonolith.Models.Database; using LctMonolith.Services.Models; namespace LctMonolith.Services.Contracts; diff --git a/LctMonolith/Services/GamificationService.cs b/LctMonolith/Services/GamificationService.cs index 63b6c53..5653a87 100644 --- a/LctMonolith/Services/GamificationService.cs +++ b/LctMonolith/Services/GamificationService.cs @@ -1,6 +1,6 @@ using System.Linq; using LctMonolith.Database.UnitOfWork; -using LctMonolith.Models; +using LctMonolith.Models.Database; using LctMonolith.Services.Contracts; using LctMonolith.Services.Models; using Microsoft.EntityFrameworkCore; diff --git a/LctMonolith/Services/InventoryService.cs b/LctMonolith/Services/InventoryService.cs index 32f740c..5a84d21 100644 --- a/LctMonolith/Services/InventoryService.cs +++ b/LctMonolith/Services/InventoryService.cs @@ -1,5 +1,5 @@ using LctMonolith.Database.UnitOfWork; -using LctMonolith.Models; +using LctMonolith.Models.Database; using LctMonolith.Services.Contracts; using Microsoft.EntityFrameworkCore; diff --git a/LctMonolith/Services/MissionService.cs b/LctMonolith/Services/MissionService.cs index b44f733..feaa2d4 100644 --- a/LctMonolith/Services/MissionService.cs +++ b/LctMonolith/Services/MissionService.cs @@ -1,4 +1,4 @@ -using LctMonolith.Models; +using LctMonolith.Models.Database; using LctMonolith.Services.Models; using Microsoft.EntityFrameworkCore; using Serilog; diff --git a/LctMonolith/Services/Models/CreateMissionModel.cs b/LctMonolith/Services/Models/CreateMissionModel.cs index 3197210..002ced0 100644 --- a/LctMonolith/Services/Models/CreateMissionModel.cs +++ b/LctMonolith/Services/Models/CreateMissionModel.cs @@ -1,4 +1,4 @@ -using LctMonolith.Models; +using LctMonolith.Models.Database; namespace LctMonolith.Services.Models; diff --git a/LctMonolith/Services/Models/UpdateMissionStatusRequest.cs b/LctMonolith/Services/Models/UpdateMissionStatusRequest.cs index 591eb52..a27ac93 100644 --- a/LctMonolith/Services/Models/UpdateMissionStatusRequest.cs +++ b/LctMonolith/Services/Models/UpdateMissionStatusRequest.cs @@ -1,4 +1,4 @@ -using LctMonolith.Models; +using LctMonolith.Models.Database; namespace LctMonolith.Services.Models; diff --git a/LctMonolith/Services/NotificationService.cs b/LctMonolith/Services/NotificationService.cs index 6587e58..62808e6 100644 --- a/LctMonolith/Services/NotificationService.cs +++ b/LctMonolith/Services/NotificationService.cs @@ -1,5 +1,5 @@ using LctMonolith.Database.UnitOfWork; -using LctMonolith.Models; +using LctMonolith.Models.Database; using LctMonolith.Services.Contracts; using Microsoft.EntityFrameworkCore; diff --git a/LctMonolith/Services/StoreService.cs b/LctMonolith/Services/StoreService.cs index c530ee3..19e165f 100644 --- a/LctMonolith/Services/StoreService.cs +++ b/LctMonolith/Services/StoreService.cs @@ -1,4 +1,4 @@ -using LctMonolith.Models; +using LctMonolith.Models.Database; using Microsoft.EntityFrameworkCore; using Serilog; using System.Text.Json; diff --git a/LctMonolith/Services/TokenService.cs b/LctMonolith/Services/TokenService.cs index 34e9217..6871849 100644 --- a/LctMonolith/Services/TokenService.cs +++ b/LctMonolith/Services/TokenService.cs @@ -4,7 +4,7 @@ using System.Security.Cryptography; using System.Text; using LctMonolith.Application.Options; using LctMonolith.Database.UnitOfWork; -using LctMonolith.Models; +using LctMonolith.Models.Database; using LctMonolith.Services.Contracts; using LctMonolith.Services.Models; using Microsoft.AspNetCore.Identity;