序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | ProNum | int | 4 | 0 | 是 | 提交数量 | ||||
3 | Deailt | nvarchar | 1000 | 0 | 是 | 问题描述 | ||||
4 | ProImgs | nvarchar | 2000 | 0 | 是 | 商品图片信息 | ||||
5 | CretType | nvarchar | 100 | 0 | 是 | 凭据类型 | ||||
6 | ReProType | int | 4 | 0 | 是 | 收货类型 | ||||
7 | TakeProCounty | nvarchar | 500 | 0 | 是 | 取货省市 | ||||
8 | TakeProAddress | nvarchar | 1000 | 0 | 是 | 取货详细地址 | ||||
9 | ReProCounty | nvarchar | 500 | 0 | 是 | 收货省市 | ||||
10 | ReProAddress | nvarchar | 1000 | 0 | 是 | 收货详细地址 | ||||
11 | UserName | nvarchar | 500 | 0 | 是 | 用户姓名 | ||||
12 | Phone | nvarchar | 100 | 0 | 是 | 联系电话 | ||||
13 | ProID | int | 4 | 0 | 是 | 商品id | ||||
14 | CDate | datetime | 8 | 3 | 是 | 申请时间 | ||||
15 | TakeTime | datetime | 8 | 3 | 是 | 取货时间 | ||||
16 | Status | int | 4 | 0 | 是 | 返修单状态 1,审核 2,未审核 | ||||
17 | UserID | int | 4 | 0 | 是 | 用户id | ||||
18 | ServiceType | nvarchar | 500 | 0 | 是 | 服务类型 1,退货 2,换货 3,维修 | ||||
19 | OrderNO | nvarchar | 500 | 0 | 是 | 订单号 | ||||
20 | CartID | int | 4 | 0 | 是 | 售后所绑定的历史购物记录ID | ||||
21 | ApplyType | int | 4 | 0 | 是 | 0:cart,1:order | ||||
22 | AdminRemind | nvarchar | 4000 | 0 | 是 | 返修管理员备注 | ||||
23 | AdminDate | nvarchar | 200 | 0 | 是 | 管理员备注日期 |
订单售后申请表
GO
CREATE TABLE [dbo].[ZL_Order_Repair](
[ID] [int] IDENTITY(1,1) NOT NULL,
[ProNum] [int] NULL,
[Deailt] [nvarchar](1000) NULL,
[ProImgs] [nvarchar](2000) NULL,
[CretType] [nvarchar](100) NULL,
[ReProType] [int] NULL,
[TakeProCounty] [nvarchar](500) NULL,
[TakeProAddress] [nvarchar](1000) NULL,
[ReProCounty] [nvarchar](500) NULL,
[ReProAddress] [nvarchar](1000) NULL,
[UserName] [nvarchar](500) NULL,
[Phone] [nvarchar](100) NULL,
[ProID] [int] NULL,
[CDate] [datetime] NULL,
[TakeTime] [datetime] NULL,
[Status] [int] NULL,
[UserID] [int] NULL,
[ServiceType] [nvarchar](500) NULL,
[OrderNO] [nvarchar](500) NULL,
[CartID] [int] NULL,
[ApplyType] [int] NULL,
CONSTRAINT [PK_ZL_OrderRepair] 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_Order_Repair
drop table ZL_Order_Repair
TRUNCATE table ZL_Order_Repair