AuthenticationType table

master
Tudor Stanciu 2022-04-07 08:36:55 +03:00
parent de38dd0c9c
commit 6cd36697b6
3 changed files with 14 additions and 1 deletions

View File

@ -9,7 +9,10 @@
</ItemGroup>
<ItemGroup>
<None Update="Scripts\1.0.0\01.Create table PveVersion.sql">
<None Update="Scripts\1.0.0\02.Create AuthenticationType table.sql">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Scripts\1.0.0\01.Create PveVersion table.sql">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

View File

@ -0,0 +1,10 @@
CREATE TABLE AuthenticationType (
"Id" INTEGER NOT NULL,
"Code" TEXT NOT NULL UNIQUE,
"Name" TEXT NOT NULL,
CONSTRAINT "PK_AuthenticationType" PRIMARY KEY("Id" AUTOINCREMENT)
);
INSERT INTO AuthenticationType(Id, Code, Name)
SELECT 1, 'CREDENTIALS', 'Credentials' UNION
SELECT 2, 'API_TOKEN', 'Api token'