[성현모] UniqueKeyDB PairKey 테이블 추가

This commit is contained in:
SHM
2025-10-30 09:37:15 +09:00
parent 3c49451dc7
commit 690b26d4da
10 changed files with 39 additions and 4 deletions

View File

@ -66,6 +66,7 @@
</ItemGroup>
<ItemGroup>
<Build Include="dbo\Tables\tUniqueKeyStorage.sql" />
<Build Include="dbo\Tables\tPairKeyStorage.sql" />
</ItemGroup>
<PropertyGroup>
<PostBuildEvent>xcopy /y $(ProjectDir)$(OutputPath)$(TargetName)_Create.sql $(SolutionDir)..\..\DBPatch\sqlScripts\

View File

@ -0,0 +1,11 @@
CREATE TABLE [dbo].[tPairKeyStorage]
(
[cPrimaryKey] NVARCHAR(50) NOT NULL,
[cSecondaryKey] NVARCHAR(50) NOT NULL,
[cValue1] NVARCHAR(200),
[cValue2] NVARCHAR(200),
[cDateTime] DATETIME2 NOT NULL,
CONSTRAINT PK_cProductKey PRIMARY KEY ([cPrimaryKey]),
CONSTRAINT UQ_cMacAddress UNIQUE ([cSecondaryKey]),
)