更新脚本:操作日志相关数据库脚本 #IS7RI
This commit is contained in:
parent
5730180fd6
commit
8b98c69446
|
@ -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
|
||||
|
|
|
@ -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
|
||||
);
|
||||
|
||||
|
|
|
@ -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
|
||||
);
|
||||
|
||||
|
|
|
@ -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
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue