Skip to content

Commit

Permalink
feat(BROWL): Base de dados
Browse files Browse the repository at this point in the history
  • Loading branch information
MMichels committed Oct 27, 2023
1 parent 1e26a5b commit cb8ae65
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Browl.Api/Views/Login/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<label for="password">
Senha
</label>
<input id="password" name="password" />
<input id="password" name="password" type="password"/>
<button type="submit">
Entrar
</button>
Expand Down
6 changes: 6 additions & 0 deletions Browl.Database/1-Create - User.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CREATE TABLE [dbo].[User](
Id INT Identity PRIMARY KEY,
Email VARCHAR(50) NOT NULL,
Nome VARCHAR(50) NOT NULL,
PasswordHash VARCHAR(100) NOT NULL
)
64 changes: 64 additions & 0 deletions Browl.Database/Browl.Database.sqlproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?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>Browl.Database</Name>
<SchemaVersion>2.0</SchemaVersion>
<ProjectVersion>4.1</ProjectVersion>
<ProjectGuid>{3a11fbff-7637-40ee-b38a-0a27554d2345}</ProjectGuid>
<DSP>Microsoft.Data.Tools.Schema.Sql.Sql160DatabaseSchemaProvider</DSP>
<OutputType>Database</OutputType>
<RootPath>
</RootPath>
<RootNamespace>Browl.Database</RootNamespace>
<AssemblyName>Browl.Database</AssemblyName>
<ModelCollation>1033, CI</ModelCollation>
<DefaultFileStructure>BySchemaAndSchemaType</DefaultFileStructure>
<DeployToDatabase>True</DeployToDatabase>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetLanguage>CS</TargetLanguage>
<AppDesignerFolder>Properties</AppDesignerFolder>
<SqlServerVerification>False</SqlServerVerification>
<IncludeCompositeObjects>True</IncludeCompositeObjects>
<TargetDatabaseSet>True</TargetDatabaseSet>
<GenerateCreateScript>True</GenerateCreateScript>
</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="1-Create - User.sql" />
</ItemGroup>
</Project>
21 changes: 15 additions & 6 deletions Browl.sln
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,19 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Api", "Api", "{BCDAAE63-C61
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{559E6274-5B9B-4799-89C3-F240C87A1A1C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Browl.MVC", "Browl.Api\Browl.MVC.csproj", "{95D0C415-71EA-4B3F-9A81-565AD44ACDCF}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Browl.MVC", "Browl.Api\Browl.MVC.csproj", "{95D0C415-71EA-4B3F-9A81-565AD44ACDCF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Browl.Domain", "Browl.Domain\Browl.Domain.csproj", "{10207397-B9BB-40BE-B9B0-F974B37B6EC5}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Browl.Domain", "Browl.Domain\Browl.Domain.csproj", "{10207397-B9BB-40BE-B9B0-F974B37B6EC5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Browl.Service", "Browl.Service\Browl.Service.csproj", "{37E8B24A-E4C3-46AF-BBEA-1FB151D501ED}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Browl.Service", "Browl.Service\Browl.Service.csproj", "{37E8B24A-E4C3-46AF-BBEA-1FB151D501ED}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Browl.CrossCutting", "Browl.CrossCutting\Browl.CrossCutting.csproj", "{90C33C03-A5A6-4F37-BFC0-F580FAACD6B8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Browl.CrossCutting", "Browl.CrossCutting\Browl.CrossCutting.csproj", "{90C33C03-A5A6-4F37-BFC0-F580FAACD6B8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Browl.Infra", "Infra\Browl.Infra.csproj", "{42DA3620-E0CC-4C9A-A8F8-631F5F1C9826}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Browl.Infra", "Infra\Browl.Infra.csproj", "{42DA3620-E0CC-4C9A-A8F8-631F5F1C9826}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Browl.IoC", "Browl.IoC\Browl.IoC.csproj", "{E0F0773B-5D9B-4B25-A4CF-A4D435834B13}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Browl.IoC", "Browl.IoC\Browl.IoC.csproj", "{E0F0773B-5D9B-4B25-A4CF-A4D435834B13}"
EndProject
Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "Browl.Database", "Browl.Database\Browl.Database.sqlproj", "{3A11FBFF-7637-40EE-B38A-0A27554D2345}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -256,6 +258,12 @@ Global
{E0F0773B-5D9B-4B25-A4CF-A4D435834B13}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E0F0773B-5D9B-4B25-A4CF-A4D435834B13}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E0F0773B-5D9B-4B25-A4CF-A4D435834B13}.Release|Any CPU.Build.0 = Release|Any CPU
{3A11FBFF-7637-40EE-B38A-0A27554D2345}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3A11FBFF-7637-40EE-B38A-0A27554D2345}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3A11FBFF-7637-40EE-B38A-0A27554D2345}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{3A11FBFF-7637-40EE-B38A-0A27554D2345}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3A11FBFF-7637-40EE-B38A-0A27554D2345}.Release|Any CPU.Build.0 = Release|Any CPU
{3A11FBFF-7637-40EE-B38A-0A27554D2345}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -307,6 +315,7 @@ Global
{90C33C03-A5A6-4F37-BFC0-F580FAACD6B8} = {559E6274-5B9B-4799-89C3-F240C87A1A1C}
{42DA3620-E0CC-4C9A-A8F8-631F5F1C9826} = {559E6274-5B9B-4799-89C3-F240C87A1A1C}
{E0F0773B-5D9B-4B25-A4CF-A4D435834B13} = {BCDAAE63-C618-4709-95D2-8BCA717ABD65}
{3A11FBFF-7637-40EE-B38A-0A27554D2345} = {559E6274-5B9B-4799-89C3-F240C87A1A1C}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {09C8AF50-40D4-48F2-A03D-9BC7AB6D3538}
Expand Down
Binary file modified docs/Estimativa de hrs.xlsx
Binary file not shown.

0 comments on commit cb8ae65

Please sign in to comment.