更新脚本:操作日志相关数据库脚本 #IS7RI
This commit is contained in:
parent
5730180fd6
commit
8b98c69446
|
@ -267,14 +267,17 @@ CREATE TABLE [dbo].[Logs](
|
||||||
[CRUD] [nvarchar](50) NOT NULL,
|
[CRUD] [nvarchar](50) NOT NULL,
|
||||||
[UserName] [varchar](50) NOT NULL,
|
[UserName] [varchar](50) NOT NULL,
|
||||||
[LogTime] [datetime] NOT NULL,
|
[LogTime] [datetime] NOT NULL,
|
||||||
[ClientIp] [varchar](15) NOT NULL,
|
[Ip] [varchar](15) NOT NULL,
|
||||||
[ClientAgent] [nvarchar](500) NOT NULL,
|
[Browser] [varchar](50) NULL,
|
||||||
|
[OS] [varchar](50) NULL,
|
||||||
|
[City] [nvarchar](50) NULL,
|
||||||
[RequestUrl] [nvarchar](500) NOT NULL,
|
[RequestUrl] [nvarchar](500) NOT NULL,
|
||||||
CONSTRAINT [PK_Logs] PRIMARY KEY CLUSTERED
|
CONSTRAINT [PK_Logs] PRIMARY KEY CLUSTERED
|
||||||
(
|
(
|
||||||
[ID] ASC
|
[ID] ASC
|
||||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||||
) ON [PRIMARY]
|
) ON [PRIMARY]
|
||||||
|
|
||||||
GO
|
GO
|
||||||
SET ANSI_PADDING OFF
|
SET ANSI_PADDING OFF
|
||||||
GO
|
GO
|
||||||
|
|
|
@ -81,10 +81,12 @@ CREATE TABLE Logs(
|
||||||
ID INTEGER PRIMARY KEY Auto_increment,
|
ID INTEGER PRIMARY KEY Auto_increment,
|
||||||
CRUD VARCHAR (50) NOT NULL,
|
CRUD VARCHAR (50) NOT NULL,
|
||||||
UserName VARCHAR (50) NOT NULL,
|
UserName VARCHAR (50) NOT NULL,
|
||||||
LogTime DATETIME NOT NULL,
|
LogTime DATETIME NOT NULL,
|
||||||
ClientIp VARCHAR (15) NOT NULL,
|
Ip VARCHAR (15) NOT NULL,
|
||||||
ClientAgent VARCHAR (500) NOT NULL,
|
Browser VARCHAR (50) NULL,
|
||||||
RequestUrl VARCHAR (500) NOT NULL
|
OS VARCHAR (50) NULL,
|
||||||
|
City VARCHAR (50) NULL,
|
||||||
|
RequestUrl VARCHAR (500) NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE `Groups`(
|
CREATE TABLE `Groups`(
|
||||||
|
|
|
@ -81,10 +81,12 @@ CREATE TABLE Logs(
|
||||||
ID SERIAL PRIMARY KEY,
|
ID SERIAL PRIMARY KEY,
|
||||||
CRUD VARCHAR (50) NOT NULL,
|
CRUD VARCHAR (50) NOT NULL,
|
||||||
UserName VARCHAR (50) NOT NULL,
|
UserName VARCHAR (50) NOT NULL,
|
||||||
LogTime DATE NOT NULL,
|
LogTime DATE NOT NULL,
|
||||||
ClientIp VARCHAR (15) NOT NULL,
|
Ip VARCHAR (15) NOT NULL,
|
||||||
ClientAgent VARCHAR (500) NOT NULL,
|
Browser VARCHAR (50) NULL,
|
||||||
RequestUrl VARCHAR (500) NOT NULL
|
OS VARCHAR (50) NULL,
|
||||||
|
City VARCHAR (50) NULL,
|
||||||
|
RequestUrl VARCHAR (500) NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE Groups(
|
CREATE TABLE Groups(
|
||||||
|
|
|
@ -80,10 +80,12 @@ CREATE TABLE NavigationRole(
|
||||||
CREATE TABLE Logs(
|
CREATE TABLE Logs(
|
||||||
[ID] INTEGER PRIMARY KEY,
|
[ID] INTEGER PRIMARY KEY,
|
||||||
[CRUD] VARCHAR (50) NOT NULL,
|
[CRUD] VARCHAR (50) NOT NULL,
|
||||||
[UserName] VARCHAR (50) NOT NULL,
|
[UserName] VARCHAR (50) NOT NULL COLLATE NOCASE,
|
||||||
[LogTime] DATETIME NOT NULL,
|
[LogTime] DATETIME NOT NULL,
|
||||||
[ClientIp] VARCHAR (15) NOT NULL,
|
[Ip] VARCHAR (15) NOT NULL,
|
||||||
[ClientAgent] VARCHAR (500) NOT NULL,
|
[Browser] VARCHAR (50) NULL,
|
||||||
|
[OS] VARCHAR (50) NULL,
|
||||||
|
[City] VARCHAR (50) NULL,
|
||||||
[RequestUrl] VARCHAR (500) NOT NULL
|
[RequestUrl] VARCHAR (500) NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue