﻿CREATE PROCEDURE [dbo].[Share_Create]
    @Id UNIQUEIDENTIFIER,
    @UserId UNIQUEIDENTIFIER,
    @CipherId UNIQUEIDENTIFIER,
    @Key NVARCHAR(MAX),
    @Permissions NVARCHAR(MAX),
    @Status TINYINT,
    @CreationDate DATETIME2(7),
    @RevisionDate DATETIME2(7)
AS
BEGIN
    SET NOCOUNT ON

    INSERT INTO [dbo].[Share]
    (
        [Id],
        [UserId],
        [CipherId],
        [Key],
        [Permissions],
        [Status],
        [CreationDate],
        [RevisionDate]
    )
    VALUES
    (
        @Id,
        @UserId,
        @CipherId,
        @Key,
        @Permissions,
        @Status,
        @CreationDate,
        @RevisionDate
    )
END