更新脚本:操作日志相关数据库脚本 #IS7RI

This commit is contained in:
Argo-MacBookPro 2019-03-04 16:40:28 +08:00
parent 5730180fd6
commit 8b98c69446
4 changed files with 22 additions and 13 deletions

View File

@ -267,14 +267,17 @@ CREATE TABLE [dbo].[Logs](
[CRUD] [nvarchar](50) NOT NULL,
[UserName] [varchar](50) NOT NULL,
[LogTime] [datetime] NOT NULL,
[ClientIp] [varchar](15) NOT NULL,
[ClientAgent] [nvarchar](500) NOT NULL,
[Ip] [varchar](15) NOT NULL,
[Browser] [varchar](50) NULL,
[OS] [varchar](50) NULL,
[City] [nvarchar](50) NULL,
[RequestUrl] [nvarchar](500) NOT NULL,
CONSTRAINT [PK_Logs] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO

View File

@ -82,8 +82,10 @@ CREATE TABLE Logs(
CRUD VARCHAR (50) NOT NULL,
UserName VARCHAR (50) NOT NULL,
LogTime DATETIME NOT NULL,
ClientIp VARCHAR (15) NOT NULL,
ClientAgent VARCHAR (500) NOT NULL,
Ip VARCHAR (15) NOT NULL,
Browser VARCHAR (50) NULL,
OS VARCHAR (50) NULL,
City VARCHAR (50) NULL,
RequestUrl VARCHAR (500) NOT NULL
);

View File

@ -82,8 +82,10 @@ CREATE TABLE Logs(
CRUD VARCHAR (50) NOT NULL,
UserName VARCHAR (50) NOT NULL,
LogTime DATE NOT NULL,
ClientIp VARCHAR (15) NOT NULL,
ClientAgent VARCHAR (500) NOT NULL,
Ip VARCHAR (15) NOT NULL,
Browser VARCHAR (50) NULL,
OS VARCHAR (50) NULL,
City VARCHAR (50) NULL,
RequestUrl VARCHAR (500) NOT NULL
);

View File

@ -80,10 +80,12 @@ CREATE TABLE NavigationRole(
CREATE TABLE Logs(
[ID] INTEGER PRIMARY KEY,
[CRUD] VARCHAR (50) NOT NULL,
[UserName] VARCHAR (50) NOT NULL,
[UserName] VARCHAR (50) NOT NULL COLLATE NOCASE,
[LogTime] DATETIME NOT NULL,
[ClientIp] VARCHAR (15) NOT NULL,
[ClientAgent] VARCHAR (500) NOT NULL,
[Ip] VARCHAR (15) NOT NULL,
[Browser] VARCHAR (50) NULL,
[OS] VARCHAR (50) NULL,
[City] VARCHAR (50) NULL,
[RequestUrl] VARCHAR (500) NOT NULL
);