mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
started working on the login
This commit is contained in:
parent
f478d7204f
commit
30aea4ec8c
6 changed files with 285 additions and 6 deletions
|
@ -20,7 +20,7 @@ INSERT INTO AccountTypes (ID, AccountType) VALUES (3, 'Developer');
|
|||
--
|
||||
CREATE TABLE Users (
|
||||
ID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
AccountTypeID TINYINT UNSIGNED NOT NULL DEFAULT 1,
|
||||
AccountTypeID TINYINT UNSIGNED NOT NULL DEFAULT 1,
|
||||
Suspended TINYINT UNSIGNED NOT NULL DEFAULT 0,
|
||||
Email CHAR(64) NOT NULL,
|
||||
Passwd CHAR(32) NOT NULL,
|
||||
|
@ -46,7 +46,8 @@ CREATE TABLE Sessions (
|
|||
UsersID INTEGER UNSIGNED NOT NULL,
|
||||
SessionID CHAR(32) NOT NULL,
|
||||
LastUpdateTS BIGINT UNSIGNED NOT NULL,
|
||||
FOREIGN KEY (UsersID) REFERENCES Users(ID)
|
||||
FOREIGN KEY (UsersID) REFERENCES Users(ID),
|
||||
UNIQUE (SessionID)
|
||||
);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue