SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Product_Order](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[barcode] [nvarchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_barcode]  DEFAULT (''),
	[naviid] [int] NOT NULL CONSTRAINT [DF_Product_Order_naviid]  DEFAULT ((0)),
	[memberid] [int] NOT NULL,
	[productid] [int] NOT NULL,
	[explain] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_explain]  DEFAULT (''),
	[number] [int] NOT NULL,
	[ip] [nvarchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_ip]  DEFAULT (''),
	[browser] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_browser]  DEFAULT (''),
	[os] [nvarchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_ow]  DEFAULT (''),
	[state] [bit] NOT NULL,
	[addtime] [datetime] NOT NULL,
	[value1] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value1]  DEFAULT (''),
	[value2] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value11]  DEFAULT (''),
	[value3] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value12]  DEFAULT (''),
	[value4] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value13]  DEFAULT (''),
	[value5] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value14]  DEFAULT (''),
	[value6] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value15]  DEFAULT (''),
	[value7] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value16]  DEFAULT (''),
	[value8] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value17]  DEFAULT (''),
	[value9] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value18]  DEFAULT (''),
	[value10] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value19]  DEFAULT (''),
	[value11] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value110]  DEFAULT (''),
	[value12] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value111]  DEFAULT (''),
	[value13] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value112]  DEFAULT (''),
	[value14] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value113]  DEFAULT (''),
	[value15] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value141]  DEFAULT (''),
	[value16] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value142]  DEFAULT (''),
	[value17] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value143]  DEFAULT (''),
	[value18] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value144]  DEFAULT (''),
	[value19] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value145]  DEFAULT (''),
	[value20] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Product_Order_value191]  DEFAULT (''),
 CONSTRAINT [PK_Product_Order] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品订单-记录表(主键)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'id'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品订单-记录表(订单条码)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'barcode'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品订单-记录表(所属导航ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'naviid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品订单-记录表(会员ID，0为游客)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'memberid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品订单-记录表(产品ID)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'productid'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品订单-记录表(备注说明)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'explain'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品订单-记录表(下单数量)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'number'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品订单-记录表(下单人IP)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'ip'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品订单-记录表(下单人浏览器)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'browser'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品订单-记录表(下单人操作系统)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'os'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品订单-记录表(订单状态-true已处理)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'state'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品订单-记录表(下单时间)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'addtime'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段1)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value1'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段2)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value2'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段3)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value3'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段4)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value4'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段5)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value5'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段6)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value6'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段7)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value7'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段8)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value8'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段9)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value9'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段10)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value10'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段11)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value11'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段12)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value12'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段13)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value13'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段14)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value14'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段15)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value15'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段16)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value16'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段17)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value17'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段18)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value18'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段19)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value19'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品模型-记录表(扩展字段20)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Product_Order', @level2type=N'COLUMN', @level2name=N'value20'
