[성현모] VPKI 프로젝트 Import

This commit is contained in:
SHM
2025-04-24 15:42:47 +09:00
parent 0a6016bc95
commit 8dcddd431b
188 changed files with 280230 additions and 68 deletions

View File

@ -0,0 +1,73 @@
<?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="aef5aa4e-a13d-46f1-b18e-e058c617b408" ChangeDateTime="12/23/2024 01:59:13">
<Property Name="ElementName" Value="[dbo].[t_V1_Tbscsr].[cIftgid]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[t_V1_Tbscsr]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="cIftid" />
</Operation>
<Operation Name="Rename Refactor" Key="648c532d-8e23-44f8-b657-11f87afbf718" ChangeDateTime="12/23/2024 02:09:55">
<Property Name="ElementName" Value="[dbo].[tTbscsrResponse].[Id]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[tTbscsrResponse]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="cCuid" />
</Operation>
<Operation Name="Rename Refactor" Key="9ee0544c-0be5-4023-8ef4-033987c586b8" ChangeDateTime="12/23/2024 02:10:31">
<Property Name="ElementName" Value="[dbo].[tTbscsrResponse].[status]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[tTbscsrResponse]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="cStatus" />
</Operation>
<Operation Name="Rename Refactor" Key="88f4fb4b-2eb9-4f7f-a439-a365764395e2" ChangeDateTime="12/23/2024 02:10:35">
<Property Name="ElementName" Value="[dbo].[tTbscsrResponse].[message]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[tTbscsrResponse]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="cMessage" />
</Operation>
<Operation Name="Rename Refactor" Key="5a0e9793-c50f-4b5b-8c05-283639a11124" ChangeDateTime="12/23/2024 05:58:10">
<Property Name="ElementName" Value="[dbo].[tCertificate].[Id]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[tCertificate]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="cId" />
</Operation>
<Operation Name="Rename Refactor" Key="3ba5afba-2388-4351-9e65-025f6cbe3c89" ChangeDateTime="12/23/2024 05:58:11">
<Property Name="ElementName" Value="[dbo].[tCertificate].[cert]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[tCertificate]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="cCert" />
</Operation>
<Operation Name="Rename Refactor" Key="98b90247-2504-4303-be66-2742a0bf0681" ChangeDateTime="12/23/2024 05:58:21">
<Property Name="ElementName" Value="[dbo].[tCertificate].[cId]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[tCertificate]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="cCuid" />
</Operation>
<Operation Name="Rename Refactor" Key="8fa6e7d1-aa81-4b5d-afbe-2bbf9823e5e3" ChangeDateTime="12/26/2024 06:42:10">
<Property Name="ElementName" Value="[dbo].[tTbscsrRequest].[cRequestDateTime]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[tTbscsrRequest]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="cDateTime" />
</Operation>
<Operation Name="Rename Refactor" Key="192ddc5c-7dab-4713-b486-4f0b3afb9817" ChangeDateTime="01/03/2025 06:30:17">
<Property Name="ElementName" Value="[dbo].[tVerifyResult].[Id]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[tVerifyResult]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="cCuid" />
</Operation>
<Operation Name="Rename Refactor" Key="c7631cfd-d064-4fce-b44f-9df70e6cc41e" ChangeDateTime="01/03/2025 06:55:20">
<Property Name="ElementName" Value="[dbo].[tCsrsignature].[Id]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[tCsrsignature]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="cCuid" />
</Operation>
</Operations>

View File

@ -0,0 +1,82 @@
<?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>VPKI.DataDB</Name>
<SchemaVersion>2.0</SchemaVersion>
<ProjectVersion>4.1</ProjectVersion>
<ProjectGuid>{85b3cd8c-6920-4e6d-a914-7d25b6924a22}</ProjectGuid>
<DSP>Microsoft.Data.Tools.Schema.Sql.Sql160DatabaseSchemaProvider</DSP>
<OutputType>Database</OutputType>
<RootPath>
</RootPath>
<RootNamespace>VPKI.DataDB</RootNamespace>
<AssemblyName>VPKI.DataDB</AssemblyName>
<ModelCollation>1042,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>
<DefaultCollation>Korean_Wansung_CI_AS</DefaultCollation>
<Recovery>SIMPLE</Recovery>
</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>true</TreatWarningsAsErrors>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
</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" />
<Folder Include="dbo" />
<Folder Include="dbo\Functions" />
<Folder Include="dbo\StoredProcedures" />
<Folder Include="dbo\Tables" />
</ItemGroup>
<ItemGroup>
<Build Include="dbo\Tables\tTbscsr.sql" />
<Build Include="dbo\Tables\tCertificate.sql" />
<Build Include="dbo\Tables\tVerifyResult.sql" />
<Build Include="dbo\Tables\tOcsp.sql" />
</ItemGroup>
<ItemGroup>
<RefactorLog Include="VPKI.DataDB.refactorlog" />
</ItemGroup>
<PropertyGroup>
<PostBuildEvent>xcopy /y $(ProjectDir)$(OutputPath)$(TargetName)_Create.sql $(SolutionDir)DBPatch\sqlScripts\
xcopy /y $(ProjectDir)$(OutputPath)$(TargetName).dacpac $(SolutionDir)DBPatch\sqlScripts\dacpac\</PostBuildEvent>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,15 @@
CREATE TABLE [dbo].[tCertificate]
(
[cCuid] BIGINT NOT NULL PRIMARY KEY,
[cCsrsignature] NVARCHAR(1024) NOT NULL,
[cTierCode]NVARCHAR(20) NOT NULL,
[cUnitCode]NVARCHAR(20) NOT NULL,
[cVehicleCode]NVARCHAR(20) NOT NULL,
[cLocalCode]NVARCHAR(20) NOT NULL,
[cBrandCode]NVARCHAR(20) NOT NULL,
[cCsr] NVARCHAR(2048) NOT NULL,
[cCert] NVARCHAR(2048) NOT NULL,
[cMessage] NVARCHAR(250) NOT NULL,
[cIssueCount] INT NOT NULL,
[cDateTime] DATETIME2 NOT NULL
)

View File

@ -0,0 +1,8 @@
CREATE TABLE [dbo].[tOcsp]
(
[cCuid] BIGINT NOT NULL PRIMARY KEY,
[cStatus] NVARCHAR(20) NOT NULL,
[cVerify] NVARCHAR(20) NOT NULL,
[cOcsp] NVARCHAR(MAX) NULL,
[cDateTime] DATETIME2 NOT NULL
)

View File

@ -0,0 +1,19 @@
CREATE TABLE [dbo].[tTbscsr]
(
[cCuid] BIGINT NOT NULL PRIMARY KEY IDENTITY(1,1),
[cIftid] NVARCHAR(100) NOT NULL,
[cMacaddr] NVARCHAR(100) NOT NULL,
[cWmi] NVARCHAR(20) NOT NULL,
[cIdType] NVARCHAR(10)NOT NULL,
[cSupplierId] NVARCHAR(10) NOT NULL,
[cDc] NVARCHAR(20) NOT NULL,
[cTierCode]NVARCHAR(20) NOT NULL,
[cUnitCode]NVARCHAR(20) NOT NULL,
[cPublickey]NVARCHAR(1024) NOT NULL,
[cCertType]NVARCHAR(20) NOT NULL,
[cOriginTbscsr] NVARCHAR(4000) NOT NULL,
[cHashedTbscsr] NVARCHAR(1024) NOT NULL,
[cPcid] NVARCHAR(50) NOT NULL,
[cDn]NVARCHAR(250) NOT NULL,
[cDateTime] DATETIME2 NOT NULL
)

View File

@ -0,0 +1,5 @@
CREATE TABLE [dbo].[tVerifyResult]
(
[cCuid] BIGINT NOT NULL PRIMARY KEY,
[cResult] NCHAR(20) NOT NULL
)