表名:ZL_Payment












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1PaymentIDint40  支付ID
2UserIDint40     
3PayNonvarchar2000    用于支付的序号(因为不支持带,号的多订单符号)
4PaymentNumnvarchar2000    订单号,支持以,切割
5PayPlatIDint40    支付平台ID
6MoneyPaymoney84    RMB支付金额,以此计算费率
7MoneyTruemoney84    实际收到的金额
8PayTimedatetime83    交易时间
9SuccessTimedatetime83    交易成功时间
10Statusint40    交易状态1未付款,3已付款,5已充值游戏币
11PlatformInfonvarchar2000    支付宝网银支付方式
12Remarknvarchar2550    备注(存优惠券信息等)
13CStatusbit10    处理状态
14AlipayNOnvarchar1000    支付宝交易ID
15ArriveMoneymoney84    已使用的优惠券面值(如多张的话则为总和)
16ArriveDetailnvarchar5000    优惠券号码|密码,格式:号码|密码,号码2|密码2
17MoneyIDint40    支付币种,0则为默认人民币,否则为币种ID
18MoneyRealmoney84    计算货币汇率之后的金额,用于支付(OrderPay完成计算,PayOnline页面使用此值)
19IsDelint40    -99回收站,0正常
20UsePointmoney84    使用积分
21SysRemarknvarchar2550    系统备注
22UsePointArrivemoney84    使用积分优惠备注
23PayTypeint40    支付类型
24PrePayInfonvarchar40000    预付信息
25codenvarchar40000    标识

简要说明:

在线支付信息表

GO
CREATE TABLE [dbo].[ZL_Payment](
[PaymentID] [int] IDENTITY(1,1) NOT NULL,
[UserID] [int] NOT NULL,
[PayNo] [nvarchar](200) NULL,
[PaymentNum] [nvarchar](200) NULL,
[PayPlatID] [int] NULL,
[MoneyPay] [money] NULL,
[MoneyTrue] [money] NULL,
[PayTime] [datetime] NULL,
[SuccessTime] [datetime] NULL,
[Status] [int] NULL,
[PlatformInfo] [nvarchar](200) NULL,
[Remark] [nvarchar](255) NULL,
[CStatus] [bit] NULL,
[AlipayNO] [nvarchar](100) NULL,
[ArriveMoney] [money] NULL,
[ArriveDetail] [nvarchar](500) NULL,
[MoneyID] [int] NULL,
[MoneyReal] [money] NULL,
[IsDel] [int] NULL,
[UsePoint] [money] NULL,
[SysRemark] [nvarchar](255) NULL,
[UsePointArrive] [money] NULL,
[PayType] [int] NULL,
[PrePayInfo] [nvarchar](4000) NULL,
[code] [nvarchar](4000) NULL,
CONSTRAINT [PK_ZL_Payment] PRIMARY KEY CLUSTERED
([PaymentID] DESC
)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_Payment

--注意:将删除整个表

drop table ZL_Payment

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

TRUNCATE table ZL_Payment