2023-10-10 18:18:17 +02:00
|
|
|
|
CREATE PROCEDURE [dbo].[spWunschInfo_Insert]
|
|
|
|
|
@Id INT,
|
|
|
|
|
@Wunsch NVARCHAR(1024),
|
|
|
|
|
@BildPrompt NVARCHAR(MAX),
|
|
|
|
|
@BildBeschreibung NVARCHAR(MAX),
|
|
|
|
|
@Datum DATETIME2,
|
2023-10-14 14:33:35 +02:00
|
|
|
|
@GPTModel NCHAR(32),
|
|
|
|
|
@VorherigerWunsch int = NULL
|
2023-10-10 18:18:17 +02:00
|
|
|
|
AS
|
|
|
|
|
BEGIN
|
2023-10-14 14:33:35 +02:00
|
|
|
|
INSERT INTO [dbo].[WunschInfo] (Wunsch, BildPrompt, BildBeschreibung, Datum, GPTModel, VorherigerWunsch)
|
2023-10-10 18:18:17 +02:00
|
|
|
|
VALUES (@Wunsch,
|
|
|
|
|
@BildPrompt,
|
|
|
|
|
@BildBeschreibung,
|
|
|
|
|
@Datum,
|
2023-10-14 14:33:35 +02:00
|
|
|
|
@GPTModel,
|
|
|
|
|
@VorherigerWunsch);
|
2023-10-10 18:18:17 +02:00
|
|
|
|
|
|
|
|
|
SELECT Id FROM [dbo].[WunschInfo] WHERE Id = CAST(SCOPE_IDENTITY() AS INT);
|
|
|
|
|
END
|