序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | OrderID | int | 4 | 0 | 是 | 订单ID | ||||
3 | PaymentNo | nvarchar | 500 | 0 | 是 | 支付单号 | ||||
4 | Old | ntext | 16 | 0 | 是 | 旧状态json | ||||
5 | After | ntext | 16 | 0 | 是 | 修改后的状态(disuse)不用存 | ||||
6 | AmountPre | money | 8 | 4 | 是 | 预付金额 | ||||
7 | AmountSettle | money | 8 | 4 | 是 | 结清金额,与预付相加则为合计金额 | ||||
8 | UserID | int | 4 | 0 | 是 | 送货员用户ID | ||||
9 | AdminID | int | 4 | 0 | 是 | 管理员ID | ||||
10 | Remind | nvarchar | 500 | 0 | 是 | 备注信息 | ||||
11 | ZStatus | int | 4 | 0 | 是 | 状态[预留] | ||||
12 | CDate | datetime | 8 | 3 | 是 | 结清时间 |
订单结清记录表
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
TRUNCATE table ZL_Order_Settle