1
0
mirror of https://github.com/bitwarden/server synced 2026-01-03 09:03:44 +00:00

Added schema for device table

This commit is contained in:
Kyle Spearrin
2016-06-18 13:22:29 -04:00
parent 1ff49cd5b3
commit 3e32a55640
8 changed files with 125 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
CREATE PROCEDURE [dbo].[Device_Create]
@Id UNIQUEIDENTIFIER,
@UserId UNIQUEIDENTIFIER,
@Name NVARCHAR(50),
@Type TINYINT,
@PushToken NVARCHAR(255),
@CreationDate DATETIME2(7),
@RevisionDate DATETIME2(7)
AS
BEGIN
SET NOCOUNT ON
INSERT INTO [dbo].[Device]
(
[Id],
[UserId],
[Name],
[Type],
[PushToken],
[CreationDate],
[RevisionDate]
)
VALUES
(
@Id,
@UserId,
@Name,
@Type,
@PushToken,
@CreationDate,
@RevisionDate
)
END