表名:ZL_Orderinfo












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2OrderNovarchar500    订单号
3Reuservarchar2550    收货人
4Receivervarchar500    收货人
5Renamevarchar2550    重命名
6Guojiavarchar2550    管理员拒绝或同意退款理由
7Shengfenvarchar2550    省份和城市(Disuse)
8Chengshivarchar2550    城市
9Diquvarchar2550    地区
10Jiedaovarchar2550    接到
11ZipCodevarchar500    邮政编码
12Phonevarchar500    手机号码
13Emailvarchar500    邮箱
14Mobileint40    电话号码
15Deliveryint40    支付类型
16Outstockint40    缺货时的处理方式
17Deliverytimeint40    送货时间
18Paymentint40    支付信息
19Invoicevarchar20000    发票信息
20Ordermessagetext160    订单备注
21Merchandiservarchar500    退款理由
22Internalrecordstext160    内部记录
23Ordersamountmoney84    订单金额
24Receivablesamountmoney84    实际收到金额
25Specifiedpricemoney84    订单金额(备份)
26Freightmoney84    运费
27Invoiceneedsint40    是否需要发票
28Developedvotesint40    (disuse)
29OrderStatusint40    订单状态
30Paymentstatusint40    付款状态
31StateLogisticsint40    收货|物流状态:-1已退货,-2确认退货,0:未发货,1:已发货,2已收货确认
32Signedint40   0签收(Disuse)
33Settleint40   0结清(Disuse),暂用于与退货关联,记录订单申请退款前的状态
34Asideint40   0是否作废 0:正常,1:前端回收站,2:前端删除
35Suspendedint40   0挂起(Disuse)
36Ordertypeint40   0订单类型
37AddTimedatetime83   getdate订单生成时间
38AddUservarchar2550    创建人
39Useridint40     
40citynvarchar500    收件人城市
41IsCountbit10   0 
42Integralint40   0 
43parentIDint40   0 
44service_chargefloat80     
45Balance_pricefloat80     
46Freight_remarknvarchar10000     
47Balance_remarknvarchar10000     
48Money_ratemoney84   1 
49Money_codevarchar40    货币编号
50MobileNumnvarchar200    收件人手机号
51ExpressDeliverynvarchar5000    送货类型
52InvoTypeint40    需要的发票类型
53Promoterint40    推广信息
54ExpressNumvarchar4000    快递单号
55Companynvarchar4000    快递公司名称
56SendPointStatusint40   0赠送积分状态
57Provinceint40    收件人省份
58Extendntext160    存JSON数据
59StoreIDint40   0店铺ID,自营为0
60AllMoney_Jsonnvarchar5000    附加的虚拟币金额
61PaymentNonvarchar5000    支付单号
62ExpTimenvarchar5000    快递时间
63IsSureint40    是否确认
64BackIDint40    退货单ID

简要说明:

购物车表


GO
CREATE TABLE [dbo].[ZL_Orderinfo](
[ID] [int] IDENTITY(1,1) NOT NULL,
[OrderNo] [varchar](50) NULL,
[Reuser] [varchar](255) NULL,
[Receiver] [varchar](50) NULL,
[Rename] [varchar](255) NULL,
[Guojia] [varchar](255) NULL,
[Shengfen] [varchar](255) NULL,
[Chengshi] [varchar](255) NULL,
[Diqu] [varchar](255) NULL,
[Jiedao] [varchar](255) NULL,
[ZipCode] [varchar](50) NULL,
[Phone] [varchar](50) NULL,
[Email] [varchar](50) NULL,
[Mobile] [int] NULL,
[Delivery] [int] NULL,
[Outstock] [int] NULL,
[Deliverytime] [int] NULL,
[Payment] [int] NULL,
[Invoice] [varchar](2000) NULL,
[Ordermessage] [text] NULL,
[Merchandiser] [varchar](50) NULL,
[Internalrecords] [text] NULL,
[Ordersamount] [money] NULL,
[Receivablesamount] [money] NULL,
[Specifiedprice] [money] NULL,
[Freight] [money] NULL,
[Invoiceneeds] [int] NULL,
[Developedvotes] [int] NULL,
[OrderStatus] [int] NULL,
[Paymentstatus] [int] NULL,
[StateLogistics] [int] NULL,
[Signed] [int] NULL CONSTRAINT [DF_ZL_Orderinfo_Signed]  DEFAULT (0),
[Settle] [int] NULL CONSTRAINT [DF_ZL_Orderinfo_Settle]  DEFAULT (0),
[Aside] [int] NULL CONSTRAINT [DF_ZL_Orderinfo_aside]  DEFAULT (0),
[Suspended] [int] NULL CONSTRAINT [DF_ZL_Orderinfo_Suspended]  DEFAULT (0),
[Ordertype] [int] NULL CONSTRAINT [DF_ZL_Orderinfo_Ordertype]  DEFAULT (0),
[AddTime] [datetime] NULL CONSTRAINT [DF_ZL_Orderinfo_AddTime]  DEFAULT (getdate()),
[AddUser] [varchar](255) NULL,
[Userid] [int] NULL,
[city] [nvarchar](50) NULL,
[IsCount] [bit] NULL CONSTRAINT [DF_ZL_Orderinfo_IsCount]  DEFAULT (0),
[Integral] [int] NULL DEFAULT (0),
[parentID] [int] NULL DEFAULT (0),
[service_charge] [float] NULL ,
[Balance_price] [float] NULL ,
[Freight_remark] [nvarchar](1000) null,
[Balance_remark][nvarchar](1000) null,
[Money_rate] [money] null DEFAULT (1),
[Money_code] [varchar] (4) null,
[MobileNum] [nvarchar] (20) NULL ,
[ExpressDelivery] [nvarchar](500) COLLATE Chinese_PRC_CI_AS NULL,
[InvoType] [int] NULL,
[Promoter] [int] NULL,
[ExpressNum] [varchar](400) null,
[Company] [nvarchar] (400) null,
[SendPointStatus] [int] NULL DEFAULT (0),
[Province] [nvarchar]  NULL,
[Extend] [ntext]  NULL,
[StoreID] [int] NULL DEFAULT (0),
[AllMoney_Json] [nvarchar](500) NULL,
[PaymentNo] [nvarchar](500) NULL,
[ExpTime] [nvarchar](500) NULL,
[IsSure] [int] NULL,
[BackID] [int] NULL,
CONSTRAINT [PK_ZL_Orderinfo] PRIMARY KEY CLUSTERED
([ID] ASC)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

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

detele from ZL_Orderinfo

--注意:将删除整个表

drop table ZL_Orderinfo

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

TRUNCATE table ZL_Orderinfo