Adding MaidBotApi

This commit is contained in:
Zeeshaun
2026-03-11 13:21:47 -05:00
parent f3cb730f3b
commit f004c8205a
122 changed files with 4227 additions and 0 deletions
@@ -0,0 +1,5 @@
CREATE TABLE [dbo].[DebugEventLog]
(
[DebugEventLogId] INT NOT NULL PRIMARY KEY IDENTITY,
[RawLog] VARCHAR(3000) NULL
)
@@ -0,0 +1,11 @@
CREATE TABLE [dbo].[EventLog]
(
[EventLogId] INT NOT NULL PRIMARY KEY IDENTITY,
[Application] VARCHAR(500) NOT NULL,
[Level] VARCHAR(100) NOT NULL,
[Group] VARCHAR(200) NOT NULL,
[LogTimeStamp] DATETIME NOT NULL,
[Message] VARCHAR(MAX) NOT NULL,
[Environment] VARCHAR(100) NOT NULL,
[DebugData] VARCHAR(MAX) NULL
)
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<Operations Version="1.0" xmlns="http://schemas.microsoft.com/sqlserver/dac/Serialization/2012/02">
<Operation Name="Rename Refactor" Key="f8dee825-d461-43d7-a087-e525edf88ec9" ChangeDateTime="10/19/2020 20:57:13">
<Property Name="ElementName" Value="[dbo].[LoggingMatrix].[Id]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[LoggingMatrix]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="LoggingMatrixId" />
</Operation>
<Operation Name="Rename Refactor" Key="640cc9fc-bf7e-4fc8-9e7a-d2be37aed364" ChangeDateTime="10/19/2020 20:58:44">
<Property Name="ElementName" Value="[dbo].[LoggingMatrix].[Group]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[LoggingMatrix]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="Groups" />
</Operation>
<Operation Name="Rename Refactor" Key="76e86eb1-05aa-4265-82bf-d15789e45591" ChangeDateTime="10/20/2020 17:47:01">
<Property Name="ElementName" Value="[dbo].[LoggingMatrix].[Groups]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[LoggingMatrix]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="Group" />
</Operation>
<Operation Name="Rename Refactor" Key="af161f35-aff3-44c9-a19a-2f4f4959965d" ChangeDateTime="10/20/2020 17:47:03">
<Property Name="ElementName" Value="[dbo].[LoggingMatrix].[Emails]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[LoggingMatrix]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="Email" />
</Operation>
<Operation Name="Rename Refactor" Key="6122a340-340c-4e01-a932-b1cafcccd65c" ChangeDateTime="10/23/2020 13:36:33">
<Property Name="ElementName" Value="[dbo].[DebugEventLogs].[Id]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[DebugEventLogs]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="DebugEventLogId" />
</Operation>
<Operation Name="Rename Refactor" Key="8d26ed1b-e4e8-4636-ab40-ac133403cdb4" ChangeDateTime="07/11/2022 23:59:06">
<Property Name="ElementName" Value="[dbo].[EventLog].[Id]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[EventLog]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="EventLogId" />
</Operation>
</Operations>
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<Name>LCU.Api.Internal.MaidBotSql</Name>
<SchemaVersion>2.0</SchemaVersion>
<ProjectVersion>4.1</ProjectVersion>
<ProjectGuid>{ecce6677-a2f2-4694-964f-f91ebe7aac00}</ProjectGuid>
<DSP>Microsoft.Data.Tools.Schema.Sql.Sql130DatabaseSchemaProvider</DSP>
<OutputType>Database</OutputType>
<RootPath>
</RootPath>
<RootNamespace>LCU.Api.Internal.MaidBotSql</RootNamespace>
<AssemblyName>LCU.Api.Internal.MaidBotSql</AssemblyName>
<ModelCollation>1033, CI</ModelCollation>
<DefaultFileStructure>BySchemaAndSchemaType</DefaultFileStructure>
<DeployToDatabase>True</DeployToDatabase>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetLanguage>CS</TargetLanguage>
<AppDesignerFolder>Properties</AppDesignerFolder>
<SqlServerVerification>False</SqlServerVerification>
<IncludeCompositeObjects>True</IncludeCompositeObjects>
<TargetDatabaseSet>True</TargetDatabaseSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<BuildScriptName>$(MSBuildProjectName).sql</BuildScriptName>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<BuildScriptName>$(MSBuildProjectName).sql</BuildScriptName>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion>
<!-- Default to the v11.0 targets path if the targets file for the current VS version is not found -->
<SSDTExists Condition="Exists('$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets')">True</SSDTExists>
<VisualStudioVersion Condition="'$(SSDTExists)' == ''">11.0</VisualStudioVersion>
</PropertyGroup>
<Import Condition="'$(SQLDBExtensionsRefPath)' != ''" Project="$(SQLDBExtensionsRefPath)\Microsoft.Data.Tools.Schema.SqlTasks.targets" />
<Import Condition="'$(SQLDBExtensionsRefPath)' == ''" Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" />
<ItemGroup>
<Folder Include="Properties" />
</ItemGroup>
<ItemGroup>
<Build Include="LoggingMatrix.sql" />
<Build Include="DebugEventLog.sql" />
<Build Include="EventLog.sql" />
</ItemGroup>
<ItemGroup>
<RefactorLog Include="LCU.Api.Internal.MaidBotSql.refactorlog" />
</ItemGroup>
</Project>
@@ -0,0 +1,9 @@
CREATE TABLE [dbo].[LoggingMatrix]
(
[LoggingMatrixId] INT NOT NULL PRIMARY KEY IDENTITY,
[Application] VARCHAR(200) NOT NULL,
[Level] VARCHAR(50) NOT NULL,
[Group] VARCHAR(100) NOT NULL,
[Email] VARCHAR(100) NOT NULL,
[Disabled] BIT NULL
)