1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

regenerate sql proj source files

This commit is contained in:
Kyle Spearrin 2017-01-11 22:03:04 -05:00
parent 038c98cfaf
commit 2b7f6e5a6c
27 changed files with 58 additions and 60 deletions

View File

@ -65,34 +65,34 @@
<Folder Include="dbo\Stored Procedures\" /> <Folder Include="dbo\Stored Procedures\" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Build Include="dbo\Tables\History.sql" />
<Build Include="dbo\Tables\Cipher.sql" /> <Build Include="dbo\Tables\Cipher.sql" />
<Build Include="dbo\Tables\Device.sql" /> <Build Include="dbo\Tables\Device.sql" />
<Build Include="dbo\Tables\History.sql" />
<Build Include="dbo\Tables\User.sql" /> <Build Include="dbo\Tables\User.sql" />
<Build Include="dbo\Views\CipherView.sql" /> <Build Include="dbo\Views\CipherView.sql" />
<Build Include="dbo\Views\HistoryView.sql" />
<Build Include="dbo\Views\DeviceView.sql" /> <Build Include="dbo\Views\DeviceView.sql" />
<Build Include="dbo\Views\HistoryView.sql" />
<Build Include="dbo\Views\UserView.sql" /> <Build Include="dbo\Views\UserView.sql" />
<Build Include="dbo\Stored Procedures\Cipher_Create.sql" /> <Build Include="dbo\Stored Procedures\Cipher_Create.sql" />
<Build Include="dbo\Stored Procedures\Cipher_DeleteById.sql" /> <Build Include="dbo\Stored Procedures\Cipher_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\Cipher_ReadById.sql" /> <Build Include="dbo\Stored Procedures\Cipher_ReadById.sql" />
<Build Include="dbo\Stored Procedures\Cipher_Update.sql" />
<Build Include="dbo\Stored Procedures\History_ReadById.sql" />
<Build Include="dbo\Stored Procedures\Cipher_ReadByTypeUserId.sql" />
<Build Include="dbo\Stored Procedures\Cipher_ReadByRevisionDateUserWithDeleteHistory.sql" /> <Build Include="dbo\Stored Procedures\Cipher_ReadByRevisionDateUserWithDeleteHistory.sql" />
<Build Include="dbo\Stored Procedures\User_ReadById.sql" /> <Build Include="dbo\Stored Procedures\Cipher_ReadByTypeUserId.sql" />
<Build Include="dbo\Stored Procedures\User_ReadByEmail.sql" />
<Build Include="dbo\Stored Procedures\User_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\User_Create.sql" />
<Build Include="dbo\Stored Procedures\User_Update.sql" />
<Build Include="dbo\Stored Procedures\Device_Create.sql" />
<Build Include="dbo\Stored Procedures\Device_Update.sql" />
<Build Include="dbo\Stored Procedures\Device_ReadById.sql" />
<Build Include="dbo\Stored Procedures\Device_ReadByUserId.sql" />
<Build Include="dbo\Stored Procedures\Device_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\Device_ReadByIdentifierUserId.sql" />
<Build Include="dbo\Stored Procedures\Cipher_ReadByUserId.sql" /> <Build Include="dbo\Stored Procedures\Cipher_ReadByUserId.sql" />
<Build Include="dbo\Stored Procedures\User_UpdateEmailPassword.sql" /> <Build Include="dbo\Stored Procedures\Cipher_Update.sql" />
<Build Include="dbo\Stored Procedures\Device_ClearPushTokenByIdentifier.sql" /> <Build Include="dbo\Stored Procedures\Device_ClearPushTokenByIdentifier.sql" />
<Build Include="dbo\Stored Procedures\Device_Create.sql" />
<Build Include="dbo\Stored Procedures\Device_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\Device_ReadById.sql" />
<Build Include="dbo\Stored Procedures\Device_ReadByIdentifierUserId.sql" />
<Build Include="dbo\Stored Procedures\Device_ReadByUserId.sql" />
<Build Include="dbo\Stored Procedures\Device_Update.sql" />
<Build Include="dbo\Stored Procedures\History_ReadById.sql" />
<Build Include="dbo\Stored Procedures\User_Create.sql" />
<Build Include="dbo\Stored Procedures\User_DeleteById.sql" />
<Build Include="dbo\Stored Procedures\User_ReadByEmail.sql" />
<Build Include="dbo\Stored Procedures\User_ReadById.sql" />
<Build Include="dbo\Stored Procedures\User_Update.sql" />
<Build Include="dbo\Stored Procedures\User_UpdateEmailPassword.sql" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -33,4 +33,4 @@ BEGIN
@CreationDate, @CreationDate,
@RevisionDate @RevisionDate
) )
END END

View File

@ -21,4 +21,4 @@ BEGIN
[Id] = @Id [Id] = @Id
COMMIT TRANSACTION Cipher_DeleteById COMMIT TRANSACTION Cipher_DeleteById
END END

View File

@ -10,4 +10,4 @@ BEGIN
[dbo].[CipherView] [dbo].[CipherView]
WHERE WHERE
[Id] = @Id [Id] = @Id
END END

View File

@ -21,4 +21,4 @@ BEGIN
[Date] > @SinceRevisionDate [Date] > @SinceRevisionDate
AND [Event] = 2 -- Only cipher delete events. AND [Event] = 2 -- Only cipher delete events.
AND [UserId] = @UserId AND [UserId] = @UserId
END END

View File

@ -12,4 +12,4 @@ BEGIN
WHERE WHERE
[Type] = @Type [Type] = @Type
AND [UserId] = @UserId AND [UserId] = @UserId
END END

View File

@ -10,4 +10,4 @@ BEGIN
[dbo].[CipherView] [dbo].[CipherView]
WHERE WHERE
[UserId] = @UserId [UserId] = @UserId
END END

View File

@ -23,4 +23,4 @@ BEGIN
[RevisionDate] = @RevisionDate [RevisionDate] = @RevisionDate
WHERE WHERE
[Id] = @Id [Id] = @Id
END END

View File

@ -10,4 +10,4 @@ BEGIN
[PushToken] = NULL [PushToken] = NULL
WHERE WHERE
[Identifier] = @Identifier [Identifier] = @Identifier
END END

View File

@ -33,4 +33,4 @@ BEGIN
@CreationDate, @CreationDate,
@RevisionDate @RevisionDate
) )
END END

View File

@ -9,4 +9,4 @@ BEGIN
[dbo].[Device] [dbo].[Device]
WHERE WHERE
[Id] = @Id [Id] = @Id
END END

View File

@ -10,4 +10,4 @@ BEGIN
[dbo].[DeviceView] [dbo].[DeviceView]
WHERE WHERE
[Id] = @Id [Id] = @Id
END END

View File

@ -12,4 +12,4 @@ BEGIN
WHERE WHERE
[UserId] = @UserId [UserId] = @UserId
AND [Identifier] = @Identifier AND [Identifier] = @Identifier
END END

View File

@ -10,4 +10,4 @@ BEGIN
[dbo].[DeviceView] [dbo].[DeviceView]
WHERE WHERE
[UserId] = @UserId [UserId] = @UserId
END END

View File

@ -23,4 +23,4 @@ BEGIN
[RevisionDate] = @RevisionDate [RevisionDate] = @RevisionDate
WHERE WHERE
[Id] = @Id [Id] = @Id
END END

View File

@ -10,4 +10,4 @@ BEGIN
[dbo].[HistoryView] [dbo].[HistoryView]
WHERE WHERE
[Id] = @Id [Id] = @Id
END END

View File

@ -57,4 +57,4 @@ BEGIN
@CreationDate, @CreationDate,
@RevisionDate @RevisionDate
) )
END END

View File

@ -40,4 +40,4 @@ BEGIN
[Id] = @Id [Id] = @Id
COMMIT TRANSACTION User_DeleteById COMMIT TRANSACTION User_DeleteById
END END

View File

@ -10,4 +10,4 @@ BEGIN
[dbo].[UserView] [dbo].[UserView]
WHERE WHERE
[Email] = @Email [Email] = @Email
END END

View File

@ -10,4 +10,4 @@ BEGIN
[dbo].[UserView] [dbo].[UserView]
WHERE WHERE
[Id] = @Id [Id] = @Id
END END

View File

@ -39,4 +39,4 @@ BEGIN
[RevisionDate] = @RevisionDate [RevisionDate] = @RevisionDate
WHERE WHERE
[Id] = @Id [Id] = @Id
END END

View File

@ -19,4 +19,4 @@ BEGIN
[RevisionDate] = @RevisionDate [RevisionDate] = @RevisionDate
WHERE WHERE
[Id] = @Id [Id] = @Id
END END

View File

@ -43,7 +43,6 @@ BEGIN
FROM FROM
INSERTED INSERTED
END END
GO GO
CREATE TRIGGER [dbo].[Cipher_Updated] CREATE TRIGGER [dbo].[Cipher_Updated]
ON [dbo].[Cipher] AFTER UPDATE ON [dbo].[Cipher] AFTER UPDATE
@ -69,7 +68,6 @@ BEGIN
FROM FROM
INSERTED INSERTED
END END
GO GO
CREATE TRIGGER [dbo].[Cipher_Deleted] CREATE TRIGGER [dbo].[Cipher_Deleted]
ON [dbo].[Cipher] AFTER DELETE ON [dbo].[Cipher] AFTER DELETE
@ -94,4 +92,4 @@ BEGIN
GETUTCDATE() GETUTCDATE()
FROM FROM
DELETED DELETED
END END

View File

@ -1,20 +1,20 @@
CREATE TABLE [dbo].[User] ( CREATE TABLE [dbo].[User] (
[Id] UNIQUEIDENTIFIER NOT NULL, [Id] UNIQUEIDENTIFIER NOT NULL,
[Name] NVARCHAR (50) NULL, [Name] NVARCHAR (50) NULL,
[Email] NVARCHAR (50) NOT NULL, [Email] NVARCHAR (50) NOT NULL,
[EmailVerified] BIT NOT NULL, [EmailVerified] BIT NOT NULL,
[MasterPassword] NVARCHAR (300) NOT NULL, [MasterPassword] NVARCHAR (300) NOT NULL,
[MasterPasswordHint] NVARCHAR (50) NULL, [MasterPasswordHint] NVARCHAR (50) NULL,
[Culture] NVARCHAR (10) NOT NULL, [Culture] NVARCHAR (10) NOT NULL,
[SecurityStamp] NVARCHAR (50) NOT NULL, [SecurityStamp] NVARCHAR (50) NOT NULL,
[TwoFactorEnabled] BIT NOT NULL, [TwoFactorEnabled] BIT NOT NULL,
[TwoFactorProvider] TINYINT NULL, [TwoFactorProvider] TINYINT NULL,
[AuthenticatorKey] NVARCHAR (50) NULL, [AuthenticatorKey] NVARCHAR (50) NULL,
[TwoFactorRecoveryCode] NVARCHAR (32) NULL, [TwoFactorRecoveryCode] NVARCHAR (32) NULL,
[EquivalentDomains] NVARCHAR (MAX) NULL, [EquivalentDomains] NVARCHAR (MAX) NULL,
[ExcludedGlobalEquivalentDomains] NVARCHAR (MAX) NULL, [ExcludedGlobalEquivalentDomains] NVARCHAR (MAX) NULL,
[CreationDate] DATETIME2 (7) NOT NULL, [CreationDate] DATETIME2 (7) NOT NULL,
[RevisionDate] DATETIME2 (7) NOT NULL, [RevisionDate] DATETIME2 (7) NOT NULL,
CONSTRAINT [PK_User] PRIMARY KEY CLUSTERED ([Id] ASC) CONSTRAINT [PK_User] PRIMARY KEY CLUSTERED ([Id] ASC)
); );

View File

@ -3,4 +3,4 @@ AS
SELECT SELECT
* *
FROM FROM
[dbo].[Cipher] [dbo].[Cipher]

View File

@ -3,4 +3,4 @@ AS
SELECT SELECT
* *
FROM FROM
[dbo].[Device] [dbo].[Device]

View File

@ -3,4 +3,4 @@ AS
SELECT SELECT
* *
FROM FROM
[dbo].[History] [dbo].[History]