表名:ZL_Order_Settle












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2OrderIDint40    订单ID
3PaymentNonvarchar5000    支付单号
4Oldntext160    旧状态json
5Afterntext160    修改后的状态(disuse)不用存
6AmountPremoney84    预付金额
7AmountSettlemoney84    结清金额,与预付相加则为合计金额
8UserIDint40    送货员用户ID
9AdminIDint40    管理员ID
10Remindnvarchar5000    备注信息
11ZStatusint40    状态[预留]
12CDatedatetime83    结清时间

简要说明:

订单结清记录表

GO
CREATE TABLE [dbo].[ZL_Order_Settle](
[ID] [int] IDENTITY(1,1) NOT NULL,
[OrderID] [int] NULL,
[PaymentNo] [nvarchar](500) NULL,
[Old] [ntext] NULL,
[After] [ntext] NULL,
[AmountPre] [money] NULL,
[AmountSettle] [money] NULL,
[UserID] [int] NULL,
[AdminID] [int] NULL,
[Remind] [nvarchar](500) NULL,
[ZStatus] [int] NULL,
[CDate] [datetime] NULL,
CONSTRAINT [PK_ZL_Order_Settle] 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_Settle

--注意:将删除整个表

drop table ZL_Order_Settle

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

TRUNCATE table ZL_Order_Settle