user login, register, hashed passwords, announcements start

This commit is contained in:
Dimitar Byalkov
2023-03-29 11:29:25 +02:00
parent e296205466
commit f858c47ff7
27 changed files with 623 additions and 125 deletions

18
queries.sql Normal file
View File

@@ -0,0 +1,18 @@
USE dbi509645
GO
INSERT INTO UserRole ([Role])
VALUES
('TENANT'),
('MANAGER'),
('ADMIN')
GO
INSERT INTO Users ([Name], [Password], [Role])
VALUES
('Admin', '1234', 2),
('Manager', '1234', 1),
('Room1', '1234', 0)
GO
SELECT * FROM Users u JOIN UserRole r ON u.[Role] = r.ID