表名:ZL_WX_PayLog












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2AppIDint40    微信公众号主键
3OpenIDvarchar5000    微信用户OpenID
4AMountmoney84    金额
5TrueNamenvarchar500    收款人
6PayTypeint40    支付类型 1:企业付款
7FormXMLnvarchar40000    提交的表单XML
8WXResultnvarchar40000    微信返回的结果字符串
9ZStatusint40    1:成功,-1:失败
10AdminIDint40    操作管理员ID
11CDatedatetime83    付款时间
12Remindnvarchar5000    此次付款备注
13SysRemindnvarchar5000    系统备注

简要说明:

微信支付日志表

GO
CREATE TABLE [dbo].[ZL_WX_PayLog](
[ID] [int] IDENTITY(1,1) NOT NULL,
[AppID] [int] NULL,
[OpenID] [varchar](500) NULL,
[AMount] [money] NULL,
[TrueName] [nvarchar](50) NULL,
[PayType] [int] NULL,
[FormXML] [nvarchar](4000) NULL,
[WXResult] [nvarchar](4000) NULL,
[ZStatus] [int] NULL,
[AdminID] [int] NULL,
[CDate] [datetime] NULL,
[Remind] [nvarchar](500) NULL,
[SysRemind] [nvarchar](500) NULL,
CONSTRAINT [PK_ZL_WX_PayLog] 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]

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

detele from ZL_WX_PayLog

--注意:将删除整个表

drop table ZL_WX_PayLog

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

TRUNCATE table ZL_WX_PayLog