CREATE OR ALTER PROCEDURE sp_User_Create
    @Username NVARCHAR(50),
    @PasswordHash NVARCHAR(255),
    @Email NVARCHAR(100),
    @NombreCompleto NVARCHAR(100)
AS
BEGIN
    SET NOCOUNT ON;

    INSERT INTO Users (Username, PasswordHash, Email, NombreCompleto)
    OUTPUT INSERTED.Id, INSERTED.Username, INSERTED.Email, INSERTED.NombreCompleto, INSERTED.FechaCreacion
    VALUES (@Username, @PasswordHash, @Email, @NombreCompleto);
END
