mirror of
https://github.com/bitwarden/server.git
synced 2025-04-16 02:28:13 -05:00
48 lines
955 B
Transact-SQL
48 lines
955 B
Transact-SQL
CREATE PROCEDURE [dbo].[Transaction_Create]
|
|
@Id UNIQUEIDENTIFIER,
|
|
@UserId UNIQUEIDENTIFIER,
|
|
@OrganizationId UNIQUEIDENTIFIER,
|
|
@Type TINYINT,
|
|
@Amount MONEY,
|
|
@Refunded BIT,
|
|
@RefundedAmount MONEY,
|
|
@Details NVARCHAR(100),
|
|
@PaymentMethodType TINYINT,
|
|
@Gateway TINYINT,
|
|
@GatewayId VARCHAR(50),
|
|
@CreationDate DATETIME2(7)
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON
|
|
|
|
INSERT INTO [dbo].[Transaction]
|
|
(
|
|
[Id],
|
|
[UserId],
|
|
[OrganizationId],
|
|
[Type],
|
|
[Amount],
|
|
[Refunded],
|
|
[RefundedAmount],
|
|
[Details],
|
|
[PaymentMethodType],
|
|
[Gateway],
|
|
[GatewayId],
|
|
[CreationDate]
|
|
)
|
|
VALUES
|
|
(
|
|
@Id,
|
|
@UserId,
|
|
@OrganizationId,
|
|
@Type,
|
|
@Amount,
|
|
@Refunded,
|
|
@RefundedAmount,
|
|
@Details,
|
|
@PaymentMethodType,
|
|
@Gateway,
|
|
@GatewayId,
|
|
@CreationDate
|
|
)
|
|
END |