表名:ZL_Order_OPLog












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2OrderNovarchar1000    相关订单编号
3OPNamenvarchar1000    操作名称
4Beforentext160    操作前订单状态(主要信息)
5Afterntext160    作后订单状态(只记录变更后的值),如果opname足够描述操作,则此项为空
6CDatedatetime83    添加时间
7AdminIDint40    添加管理员ID
8Remindnvarchar10000    备注信息

简要说明:

订单操作记录表


GO
CREATE TABLE [dbo].[ZL_Order_OPLog](
[ID] [int] IDENTITY(1,1) NOT NULL,
[OrderNo] [varchar](100) NULL,
[OPName] [nvarchar](100) NULL,
[Before] [ntext] NULL,
[After] [ntext] NULL,
[CDate] [datetime] NULL,
[AdminID] [int] NULL,
[Remind] [nvarchar](1000) NULL,
CONSTRAINT [PK_ZL_Order_OPLog] 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] TEXTIMAGE_ON [PRIMARY]

--注意:将清空全表数据

detele from ZL_Order_OPLog

--注意:将删除整个表

drop table ZL_Order_OPLog

--注意:清空且复位表ID序列为初始值

TRUNCATE table ZL_Order_OPLog