序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | PaymentID | int | 4 | 0 | 是 | 是 | 否 | 支付ID | ||
2 | UserID | int | 4 | 0 | 否 | |||||
3 | PayNo | nvarchar | 200 | 0 | 是 | 用于支付的序号(因为不支持带,号的多订单符号) | ||||
4 | PaymentNum | nvarchar | 200 | 0 | 是 | 订单号,支持以,切割 | ||||
5 | PayPlatID | int | 4 | 0 | 是 | 支付平台ID | ||||
6 | MoneyPay | money | 8 | 4 | 是 | RMB支付金额,以此计算费率 | ||||
7 | MoneyTrue | money | 8 | 4 | 是 | 实际收到的金额 | ||||
8 | PayTime | datetime | 8 | 3 | 是 | 交易时间 | ||||
9 | SuccessTime | datetime | 8 | 3 | 是 | 交易成功时间 | ||||
10 | Status | int | 4 | 0 | 是 | 交易状态1未付款,3已付款,5已充值游戏币 | ||||
11 | PlatformInfo | nvarchar | 200 | 0 | 是 | 支付宝网银支付方式 | ||||
12 | Remark | nvarchar | 255 | 0 | 是 | 备注(存优惠券信息等) | ||||
13 | CStatus | bit | 1 | 0 | 是 | 处理状态 | ||||
14 | AlipayNO | nvarchar | 100 | 0 | 是 | 支付宝交易ID | ||||
15 | ArriveMoney | money | 8 | 4 | 是 | 已使用的优惠券面值(如多张的话则为总和) | ||||
16 | ArriveDetail | nvarchar | 500 | 0 | 是 | 优惠券号码|密码,格式:号码|密码,号码2|密码2 | ||||
17 | MoneyID | int | 4 | 0 | 是 | 支付币种,0则为默认人民币,否则为币种ID | ||||
18 | MoneyReal | money | 8 | 4 | 是 | 计算货币汇率之后的金额,用于支付(OrderPay完成计算,PayOnline页面使用此值) | ||||
19 | IsDel | int | 4 | 0 | 是 | -99回收站,0正常 | ||||
20 | UsePoint | money | 8 | 4 | 是 | 使用积分 | ||||
21 | SysRemark | nvarchar | 255 | 0 | 是 | 系统备注 | ||||
22 | UsePointArrive | money | 8 | 4 | 是 | 使用积分优惠备注 | ||||
23 | PayType | int | 4 | 0 | 是 | 支付类型 | ||||
24 | PrePayInfo | nvarchar | 4000 | 0 | 是 | 预付信息 | ||||
25 | code | nvarchar | 4000 | 0 | 是 | 标识 |
在线支付信息表
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
TRUNCATE table ZL_Payment