mirror of
https://github.com/bitwarden/server
synced 2026-01-07 11:03:37 +00:00
sprocs
This commit is contained in:
33
src/Sql/dbo/Stored Procedures/Organization_Create.sql
Normal file
33
src/Sql/dbo/Stored Procedures/Organization_Create.sql
Normal file
@@ -0,0 +1,33 @@
|
||||
CREATE PROCEDURE [dbo].[Organization_Create]
|
||||
@Id UNIQUEIDENTIFIER,
|
||||
@UserId UNIQUEIDENTIFIER,
|
||||
@Name NVARCHAR(50),
|
||||
@Plan TINYINT,
|
||||
@MaxUsers SMALLINT,
|
||||
@CreationDate DATETIME2(7),
|
||||
@RevisionDate DATETIME2(7)
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
|
||||
INSERT INTO [dbo].[Organization]
|
||||
(
|
||||
[Id],
|
||||
[UserId],
|
||||
[Name],
|
||||
[Plan],
|
||||
[MaxUsers],
|
||||
[CreationDate],
|
||||
[RevisionDate]
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
@Id,
|
||||
@UserId,
|
||||
@Name,
|
||||
@Plan,
|
||||
@MaxUsers,
|
||||
@CreationDate,
|
||||
@RevisionDate
|
||||
)
|
||||
END
|
||||
Reference in New Issue
Block a user