From 9924d8c3c40689dcf4daab050ac51df8295c8a20 Mon Sep 17 00:00:00 2001 From: Argo Zhang <5196060@qq.com> Date: Mon, 4 Mar 2019 01:34:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=84=9A=E6=9C=AC=EF=BC=9A?= =?UTF-8?q?=E5=AE=8C=E5=96=84SQLite=E7=AD=89=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=20link=20#IS7RM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DatabaseScripts/MySQL/install.sql | 11 +++++++++++ DatabaseScripts/Postgresql/install.sql | 11 +++++++++++ DatabaseScripts/SQLite/Install.sql | 11 +++++++++++ 3 files changed, 33 insertions(+) diff --git a/DatabaseScripts/MySQL/install.sql b/DatabaseScripts/MySQL/install.sql index 47c5f1f3..c137175c 100644 --- a/DatabaseScripts/MySQL/install.sql +++ b/DatabaseScripts/MySQL/install.sql @@ -144,4 +144,15 @@ CREATE TABLE RejectUsers( RejectedBy VARCHAR (50) NOT NULL, RejectedTime DATETIME NOT NULL, RejectedReason VARCHAR (50) NULL +); + +CREATE TABLE LoginLogs( + ID INTEGER PRIMARY KEY Auto_increment, + UserName VARCHAR (50) NOT NULL, + LoginTime DATETIME NOT NULL, + Ip VARCHAR NOT NULL, + OS VARCHAR (50) NULL, + Browser VARCHAR (50) NULL, + City VARCHAR (50) NULL, + Result VARCHAR (50) NOT NULL ); \ No newline at end of file diff --git a/DatabaseScripts/Postgresql/install.sql b/DatabaseScripts/Postgresql/install.sql index b7c7a485..9ee63029 100644 --- a/DatabaseScripts/Postgresql/install.sql +++ b/DatabaseScripts/Postgresql/install.sql @@ -144,4 +144,15 @@ CREATE TABLE RejectUsers( RejectedBy VARCHAR (50) NOT NULL, RejectedTime DATE NOT NULL, RejectedReason VARCHAR (50) NULL +); + +CREATE TABLE RejectUsers( + ID SERIAL PRIMARY KEY, + UserName VARCHAR (50) NOT NULL, + LoginTime DATE NOT NULL, + Ip VARCHAR NOT NULL, + OS VARCHAR (50) NULL, + Browser VARCHAR (50) NULL, + City VARCHAR (50) NULL, + Result VARCHAR (50) NOT NULL ); \ No newline at end of file diff --git a/DatabaseScripts/SQLite/Install.sql b/DatabaseScripts/SQLite/Install.sql index e99bb794..d284c8f4 100644 --- a/DatabaseScripts/SQLite/Install.sql +++ b/DatabaseScripts/SQLite/Install.sql @@ -144,4 +144,15 @@ CREATE TABLE RejectUsers( [RejectedBy] VARCHAR (50) NOT NULL COLLATE NOCASE, [RejectedTime] DATETIME NOT NULL, [RejectedReason] VARCHAR (50) NULL +); + +CREATE TABLE LoginLogs( + [ID] INTEGER PRIMARY KEY, + [UserName] VARCHAR (50) NOT NULL COLLATE NOCASE, + [LoginTime] DATETIME NOT NULL, + [Ip] VARCHAR (15) NOT NULL, + [OS] VARCHAR (50) NULL, + [Browser] VARCHAR (50) NULL, + [City] VARCHAR (50) NULL, + [Result] VARCHAR (50) NOT NULL ); \ No newline at end of file