mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-10-23 13:30:13 +00:00
Expiration timestamp instead of valid bit
This commit is contained in:
@@ -8,7 +8,7 @@ BEGIN TRANSACTION;
|
||||
CREATE TABLE Auth (
|
||||
AccountID INTEGER NOT NULL,
|
||||
Cookie TEXT NOT NULL,
|
||||
Valid INTEGER NOT NULL,
|
||||
Expires INTEGER DEFAULT 0 NOT NULL,
|
||||
FOREIGN KEY(AccountID) REFERENCES Accounts(AccountID) ON DELETE CASCADE,
|
||||
UNIQUE (AccountID)
|
||||
);
|
||||
|
@@ -163,7 +163,7 @@ CREATE TABLE IF NOT EXISTS RedeemedCodes (
|
||||
CREATE TABLE IF NOT EXISTS Auth (
|
||||
AccountID INTEGER NOT NULL,
|
||||
Cookie TEXT NOT NULL,
|
||||
Valid INTEGER DEFAULT 0 NOT NULL,
|
||||
Expires INTEGER DEFAULT 0 NOT NULL,
|
||||
FOREIGN KEY(AccountID) REFERENCES Accounts(AccountID) ON DELETE CASCADE,
|
||||
UNIQUE (AccountID)
|
||||
);
|
||||
|
Reference in New Issue
Block a user