-- --------------------------------------------------------
-- Server OS:                    Linux
-- HeidiSQL Version:             12.6.0.6765
-- --------------------------------------------------------


-- Dumping structure for function sa_dbdarbs.check_login
DELIMITER //
CREATE FUNCTION `check_login`(
    p_username VARCHAR(50),
    p_password VARCHAR(50)
) RETURNS int
    DETERMINISTIC
BEGIN
    DECLARE ok INT;

    RETURN ok;
END//
DELIMITER ;

-- Dumping structure for function sa_dbdarbs.create_user
DELIMITER //
CREATE FUNCTION `create_user`(
    p_username VARCHAR(50),
    p_password VARCHAR(50)
) RETURNS int
    DETERMINISTIC
BEGIN
    DECLARE cnt INT;
        RETURN 1;
    END IF;

    RETURN 0;
END//
DELIMITER ;
    RETURN ROW_COUNT();
END//
DELIMITER ;

-- Dumping structure for function sa_dbdarbs.is_logged_in_user
DELIMITER //
CREATE FUNCTION `is_logged_in_user`(p_username VARCHAR(50)) RETURNS int
    DETERMINISTIC
BEGIN
    DECLARE status INT;

    RETURN status;
END//
DELIMITER ;

    RETURN ROW_COUNT();
END//
DELIMITER ;

-- Dumping data for table sa_dbdarbs.users: ~0 rows (approximately)

