mirror of
https://github.com/bitwarden/server
synced 2026-01-05 10:03:23 +00:00
event sql table and repo
This commit is contained in:
39
src/Sql/dbo/Stored Procedures/Event_Create.sql
Normal file
39
src/Sql/dbo/Stored Procedures/Event_Create.sql
Normal file
@@ -0,0 +1,39 @@
|
||||
CREATE PROCEDURE [dbo].[Event_Create]
|
||||
@Id UNIQUEIDENTIFIER,
|
||||
@Type INT,
|
||||
@UserId UNIQUEIDENTIFIER,
|
||||
@OrganizationId UNIQUEIDENTIFIER,
|
||||
@CipherId UNIQUEIDENTIFIER,
|
||||
@CollectionId UNIQUEIDENTIFIER,
|
||||
@GroupId UNIQUEIDENTIFIER,
|
||||
@OrganizationUserId UNIQUEIDENTIFIER,
|
||||
@Date DATETIME2(7)
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
|
||||
INSERT INTO [dbo].[Event]
|
||||
(
|
||||
[Id],
|
||||
[Type],
|
||||
[UserId],
|
||||
[OrganizationId],
|
||||
[CipherId],
|
||||
[CollectionId],
|
||||
[GroupId],
|
||||
[OrganizationUserId],
|
||||
[Date]
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
@Id,
|
||||
@Type,
|
||||
@UserId,
|
||||
@OrganizationId,
|
||||
@CipherId,
|
||||
@CollectionId,
|
||||
@GroupId,
|
||||
@OrganizationUserId,
|
||||
@Date
|
||||
)
|
||||
END
|
||||
Reference in New Issue
Block a user