commit - 96889518ab78b1eb1c54e72c55c856cf3b22a8a0
commit + 1fa47b0a3fb52258ba2004152c826c448ed30774
blob - 1b71f51716513895246584983f3f511ae6d299a2
blob + d12207032804071768ac0dd95ce20073505207f9
--- table.sql
+++ table.sql
username VARCHAR(32),
email VARCHAR(100),
password VARCHAR(100),
- localtime VARCHAR(100),
+ localtime INTEGER DEFAULT (unixepoch()),
+ datetime VARCHAR(25) AS (datetime(localtime, 'unixepoch')),
captcha INTEGER
);
CREATE TABLE shell (
username VARCHAR(32),
email VARCHAR(100),
password VARCHAR(100),
- localtime VARCHAR(100),
+ localtime INTEGER DEFAULT (unixepoch()),
+ datetime VARCHAR(25) AS (datetime(localtime, 'unixepoch')),
captcha INTEGER
);
CREATE TABLE mail (
username VARCHAR(32),
email VARCHAR(100),
password VARCHAR(100),
- localtime VARCHAR(100),
+ localtime INTEGER DEFAULT (unixepoch()),
+ datetime VARCHAR(25) AS (datetime(localtime, 'unixepoch')),
captcha INTEGER
);
CREATE TABLE www (
identified INTEGER,
ctcpversion VARCHAR(100),
ctcptime VARCHAR(100),
- localtime VARCHAR(100),
+ localtime INTEGER DEFAULT (unixepoch()),
+ datetime VARCHAR(25) AS (datetime(localtime, 'unixepoch')),
oper INTEGER,
idle INTEGER,
ssl INTEGER,