

/****** 对象:  Table [dbo].[AspNet_SqlCacheTablesForChangeNotification]    脚本日期: 02/01/2010 14:32:18 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[AspNet_SqlCacheTablesForChangeNotification](
	[tableName] [nvarchar](450) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[notificationCreated] [datetime] NOT NULL DEFAULT (getdate()),
	[changeId] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[dtproperties]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[dtproperties](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[objectid] [int] NULL,
	[property] [varchar](64) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[value] [varchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[uvalue] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
	[lvalue] [image] NULL,
	[version] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[regionAll]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[regionAll](
	[code] [int] NOT NULL,
	[province] [varchar](3) COLLATE Chinese_PRC_CI_AS NULL,
	[name] [varchar](30) COLLATE Chinese_PRC_CI_AS NULL,
	[region] [varchar](30) COLLATE Chinese_PRC_CI_AS NULL,
	[class] [char](2) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[acreage] [int] NULL,
	[population] [int] NULL,
	[station] [varchar](30) COLLATE Chinese_PRC_CI_AS NULL,
	[postCode] [varchar](6) COLLATE Chinese_PRC_CI_AS NULL,
	[phoneCode] [int] NULL
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[regionDefine]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[regionDefine](
	[note] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[code] [varchar](2) COLLATE Chinese_PRC_CI_AS NOT NULL
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_Activity_IntegralSale_Bid]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_Activity_IntegralSale_Bid](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[GroupId] [int] NOT NULL DEFAULT ((0)),
	[UserId] [bigint] NOT NULL DEFAULT ((0)),
	[Integral] [int] NOT NULL DEFAULT ((0)),
	[PostTime] [datetime] NOT NULL DEFAULT (getdate())
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_Activity_OnePrice_Order]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_Activity_OnePrice_Order](
	[Id] [bigint] IDENTITY(51001,1) NOT NULL,
	[UserId] [bigint] NOT NULL CONSTRAINT [DF__tbl_Activ__UserI__14DD8F31]  DEFAULT ((0)),
	[RestId] [bigint] NOT NULL CONSTRAINT [DF__tbl_Activ__RestI__15D1B36A]  DEFAULT ((0)),
	[ContactPerson] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Activ__Conta__16C5D7A3]  DEFAULT (''),
	[ContactTel] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Activ__Conta__17B9FBDC]  DEFAULT (''),
	[AreaId] [bigint] NOT NULL CONSTRAINT [DF__tbl_Activ__AreaI__18AE2015]  DEFAULT ((0)),
	[Address] [varchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Activ__Addre__19A2444E]  DEFAULT (''),
	[PostTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_Activ__PostT__1A966887]  DEFAULT (getdate()),
	[DeliveryTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_Activ__Deliv__1B8A8CC0]  DEFAULT (getdate()),
	[Total] [float] NOT NULL CONSTRAINT [DF__tbl_Activ__Total__1C7EB0F9]  DEFAULT ((0)),
	[MenuName] [varchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Activ__MenuN__1D72D532]  DEFAULT (''),
	[Remark] [varchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Activ__Remar__1E66F96B]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_activityData]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_activityData](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[titleStyle] [varchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_activityData_titleStyle]  DEFAULT (''),
	[tag] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_activit__tag__6680FC4D]  DEFAULT (''),
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_activ__userI__67752086]  DEFAULT ((0)),
	[creatTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_activ__creat__686944BF]  DEFAULT (getdate()),
	[address] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_activityData_address]  DEFAULT (''),
	[date_time] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_activityData_date_time]  DEFAULT (''),
	[memberAmount] [int] NOT NULL CONSTRAINT [DF__tbl_activ__membe__695D68F8]  DEFAULT ((0)),
	[MAXAmount] [int] NOT NULL CONSTRAINT [DF__tbl_activ__MAXAm__6A518D31]  DEFAULT ((0)),
	[JoinDate] [datetime] NOT NULL CONSTRAINT [DF_tbl_activityData_JoinDate]  DEFAULT (getdate()),
	[chargeNote] [varchar](300) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_activityData_chargeNote]  DEFAULT (''),
	[isPassword] [smallint] NOT NULL CONSTRAINT [DF__tbl_activ__isPas__6B45B16A]  DEFAULT ((0)),
	[password] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_activ__passw__6C39D5A3]  DEFAULT ('000000'),
	[logo] [bigint] NOT NULL CONSTRAINT [DF__tbl_activi__logo__6D2DF9DC]  DEFAULT ((0)),
	[addrPhoto] [bigint] NOT NULL CONSTRAINT [DF__tbl_activ__addrP__6E221E15]  DEFAULT ((0)),
	[openning] [smallint] NOT NULL CONSTRAINT [DF__tbl_activ__openn__6F16424E]  DEFAULT ((0)),
	[note] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_activi__note__700A6687]  DEFAULT (''),
	[isDelete] [smallint] NOT NULL CONSTRAINT [DF_tbl_activityData_isDelete]  DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_activityIntegralRate]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_activityIntegralRate](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[startTime] [datetime] NOT NULL DEFAULT (getdate()),
	[endTime] [datetime] NOT NULL DEFAULT (getdate()),
	[rate] [float] NOT NULL DEFAULT ((0.0)),
	[isDelete] [int] NOT NULL DEFAULT ((0)),
	[integral] [float] NOT NULL DEFAULT ((0.0)),
	[posttime] [DATETIME] NOT NULL DEFAULT getdate()
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_activityUser]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_activityUser](
	[activityID] [bigint] NOT NULL,
	[userID] [bigint] NOT NULL,
	[addTime] [datetime] NOT NULL DEFAULT (getdate()),
	[level] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_adminIP]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_adminIP](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[IP] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[Date_time] [datetime] NOT NULL DEFAULT (getdate())
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_answer]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_answer](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[questionID] [int] NOT NULL DEFAULT ((0)),
	[dealUserID] [int] NOT NULL DEFAULT ((0)),
	[dealContent] [text] COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[dealTime] [datetime] NOT NULL DEFAULT (getdate())
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_area]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_area](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_area__name__6A30C649]  DEFAULT (''),
	[Label] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_area_Label]  DEFAULT (''),
	[provinceID] [int] NOT NULL CONSTRAINT [DF__tbl_area__provin__6B24EA82]  DEFAULT ((0)),
	[cityID] [int] NOT NULL CONSTRAINT [DF__tbl_area__cityID__6C190EBB]  DEFAULT ((0)),
	[regionID] [int] NOT NULL CONSTRAINT [DF__tbl_area__region__6D0D32F4]  DEFAULT ((0)),
	[zoneID] [int] NOT NULL CONSTRAINT [DF__tbl_area__areaID__6E01572D]  DEFAULT ((0)),
	[classID] [int] NOT NULL CONSTRAINT [DF_tbl_area_classID]  DEFAULT ((0)),
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_area__salerI__6EF57B66]  DEFAULT ((0)),
	[address] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_area_address]  DEFAULT (''),
	[note] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_area__note__6FE99F9F]  DEFAULT (''),
	[isDelete] [tinyint] NOT NULL CONSTRAINT [DF_tbl_area_isDelete]  DEFAULT ((0)),
	[state] [tinyint] NOT NULL CONSTRAINT [DF_tbl_area_state]  DEFAULT ((0)),
	[postTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_area__postTi__1EE61C58]  DEFAULT (getdate()),
	[parentID] [int] NOT NULL CONSTRAINT [DF__tbl_area__parent__1FDA4091]  DEFAULT ((0)),
	[spy] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_area__spy__7797450D]  DEFAULT (''),
	[qpy] [varchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_area__qpy__788B6946]  DEFAULT (''),
	[PhotoId] [bigint] NOT NULL CONSTRAINT [DF__tbl_area__PhotoI__19D74E78]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF




/****** 对象:  Table [dbo].[tbl_AreaManager2Area]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_AreaManager2Area](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[UserId] [bigint] NOT NULL CONSTRAINT [DF__tbl_AreaM__UserI__7406AB4B]  DEFAULT ((0)),
	[AreaId] [bigint] NOT NULL CONSTRAINT [DF__tbl_AreaM__AreaI__74FACF84]  DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_areaMapInfo]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_areaMapInfo](
	[areaID] [bigint] NOT NULL,
	[mapCity] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('beijing'),
	[mapX] [bigint] NOT NULL DEFAULT ((0)),
	[mapY] [bigint] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_article]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_article](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[circleID] [bigint] NOT NULL CONSTRAINT [DF_tbl_article_circleID]  DEFAULT ((0)),
	[title] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[titleColor] [varchar](8) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_artic__title__72E6D332]  DEFAULT (''),
	[clickAmount] [int] NOT NULL CONSTRAINT [DF__tbl_artic__click__73DAF76B]  DEFAULT ((0)),
	[URL] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_article__URL__74CF1BA4]  DEFAULT (''),
	[postTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_artic__postT__75C33FDD]  DEFAULT (getdate()),
	[userName] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_artic__userN__76B76416]  DEFAULT (''),
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_artic__userI__77AB884F]  DEFAULT ((0)),
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_artic__class__789FAC88]  DEFAULT ((0)),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_artic__conte__7993D0C1]  DEFAULT (''),
	[commentAmount] [int] NOT NULL CONSTRAINT [DF__tbl_artic__comme__7A87F4FA]  DEFAULT ((0)),
	[nPosition] [int] NOT NULL CONSTRAINT [DF__tbl_artic__nPosi__7B7C1933]  DEFAULT ((0)),
	[isPost] [int] NOT NULL CONSTRAINT [DF__tbl_artic__isPos__7C703D6C]  DEFAULT ((1)),
	[isDelete] [int] NOT NULL CONSTRAINT [DF__tbl_artic__isDel__7D6461A5]  DEFAULT ((0)),
	[num] [int] NOT NULL CONSTRAINT [DF__tbl_article__num__7E5885DE]  DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_articleReply]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_articleReply](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[title] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[URL] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[postTime] [datetime] NOT NULL DEFAULT (getdate()),
	[userName] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('0'),
	[userID] [bigint] NULL DEFAULT ((0)),
	[contentID] [bigint] NOT NULL DEFAULT ((0)),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[isDelete] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_buildingClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_buildingClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_buildi__name__3671F678]  DEFAULT (''),
	[note] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_buildi__note__37661AB1]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_Chat_Message]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_Chat_Message](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[restID] [bigint] NOT NULL DEFAULT ((0)),
	[fromUserId] [bigint] NOT NULL DEFAULT ((0)),
	[toUserId] [bigint] NOT NULL DEFAULT ((0)),
	[content] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[logTime] [datetime] NOT NULL DEFAULT (getdate()),
	[state] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_Chat_User]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_Chat_User](
	[userID] [bigint] NOT NULL,
	[sign] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[state] [int] NOT NULL DEFAULT ((0)),
	[lastLogTime] [datetime] NOT NULL DEFAULT (getdate()),
	[SessionCode] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_city]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_city](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](15) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_city__name__5AEE82B9]  DEFAULT (''),
	[provinceID] [int] NOT NULL CONSTRAINT [DF__tbl_city__provin__5BE2A6F2]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_commendDayRule]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_commendDayRule](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[days] [int] NOT NULL DEFAULT ((0)),
	[startTime] [datetime] NOT NULL DEFAULT (getdate()),
	[endTime] [datetime] NOT NULL DEFAULT (getdate()),
	[note] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[isDelete] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_Configuration]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_Configuration](
	[ID] [int] NOT NULL,
	[IsSystemDataSetup] [varchar](18) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__siteserve__IsSys__2D7D891B]  DEFAULT (''),
	[DatabaseVersion] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__siteserve__Datab__2E71AD54]  DEFAULT (''),
	[UpdateDate] [datetime] NOT NULL CONSTRAINT [DF__siteserve__Updat__2F65D18D]  DEFAULT (getdate())
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_deliverTime]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_deliverTime](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_deliv__restI__662B2B3B]  DEFAULT ((0)),
	[startTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_deliverTime_startTime]  DEFAULT (getdate()),
	[endTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_deliverTime_endTime]  DEFAULT (getdate()),
	[startClock] [numeric](10, 2) NOT NULL CONSTRAINT [DF_tbl_deliverTime_start]  DEFAULT ((0)),
	[endClock] [numeric](10, 2) NOT NULL CONSTRAINT [DF_tbl_deliverTime_endClock]  DEFAULT ((0)),
	[deliverTimeS] [varchar](11) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_deliverTime_deliverTimeS]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_doodiiSetting]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_doodiiSetting](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[isUsed] [tinyint] NOT NULL DEFAULT ((0)),
	[addTime] [datetime] NOT NULL DEFAULT (getdate()),
	[allowRegister] [tinyint] NOT NULL DEFAULT ((1)),
	[allowLogin] [tinyint] NOT NULL DEFAULT ((1)),
	[allowPay] [tinyint] NOT NULL DEFAULT ((0)),
	[allowAdmin] [tinyint] NOT NULL DEFAULT ((1)),
	[allowCreateCircle] [tinyint] NOT NULL DEFAULT ((1)),
	[allowCreateActivily] [tinyint] NOT NULL DEFAULT ((1)),
	[allowMenuOrder] [tinyint] NOT NULL DEFAULT ((1)),
	[startOrderTime] [tinyint] NOT NULL DEFAULT ((9)),
	[endOrderTime] [tinyint] NOT NULL DEFAULT ((18)),
	[allowOrder6] [tinyint] NOT NULL DEFAULT ((0)),
	[allowOrder7] [tinyint] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_exchangeConfig]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_exchangeConfig](
	[ruleID] [bigint] NOT NULL DEFAULT ((0)),
	[giftID] [bigint] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_exchangeRule]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_exchangeRule](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[note] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[startTime] [datetime] NOT NULL DEFAULT (getdate()),
	[endTime] [datetime] NOT NULL DEFAULT (getdate()),
	[isDelete] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_extendOrderStat]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_extendOrderStat](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userID] [int] NOT NULL CONSTRAINT [DF__tbl_exten__userI__002AF460]  DEFAULT ((0)),
	[statMonth] [datetime] NOT NULL CONSTRAINT [DF__tbl_exten__statM__011F1899]  DEFAULT (getdate()),
	[statDate] [datetime] NOT NULL CONSTRAINT [DF__tbl_exten__statD__02133CD2]  DEFAULT (getdate()),
	[orderAmount] [int] NOT NULL CONSTRAINT [DF__tbl_exten__order__0307610B]  DEFAULT ((0)),
	[SOrderAmount] [int] NOT NULL CONSTRAINT [DF__tbl_exten__SOrde__03FB8544]  DEFAULT ((0)),
	[FOrderAmount] [int] NOT NULL CONSTRAINT [DF__tbl_exten__FOrde__04EFA97D]  DEFAULT ((0)),
	[NOrderAmount] [int] NOT NULL CONSTRAINT [DF__tbl_exten__NOrde__05E3CDB6]  DEFAULT ((0)),
	[statMoney] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_exten__statM__06D7F1EF]  DEFAULT ((0)),
	[SStatMoney] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_exten__SStat__07CC1628]  DEFAULT ((0)),
	[FStatMoney] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_exten__FStat__08C03A61]  DEFAULT ((0)),
	[NStatMoney] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_exten__NStat__09B45E9A]  DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_extendRelation]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_extendRelation](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[extendUserID] [bigint] NOT NULL DEFAULT ((0)),
	[UserID] [bigint] NOT NULL DEFAULT ((0)),
	[relation] [int] NOT NULL DEFAULT ((0)),
	[extendTime] [datetime] NOT NULL DEFAULT (getdate())
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_falseOrderRule]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_falseOrderRule](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[integral] [float] NOT NULL DEFAULT ((0.0)),
	[startTime] [datetime] NOT NULL DEFAULT (getdate()),
	[endTime] [datetime] NOT NULL DEFAULT (getdate()),
	[note] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[isDelete] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_FAQ]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_FAQ](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[titleColor] [varchar](8) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_FAQ__titleCo__2EDAF651]  DEFAULT (''),
	[URL] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_FAQ__URL__2FCF1A8A]  DEFAULT (''),
	[postTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_FAQ__postTim__30C33EC3]  DEFAULT (getdate()),
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_FAQ__userID__31B762FC]  DEFAULT ((0)),
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_FAQ__classID__32AB8735]  DEFAULT ((0)),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_FAQ__content__339FAB6E]  DEFAULT (''),
	[nPosition] [int] NOT NULL CONSTRAINT [DF__tbl_FAQ__nPositi__3493CFA7]  DEFAULT ((0)),
	[isPost] [int] NOT NULL CONSTRAINT [DF__tbl_FAQ__isPost__3587F3E0]  DEFAULT ((0)),
	[isDelete] [int] NOT NULL CONSTRAINT [DF__tbl_FAQ__isDelet__367C1819]  DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_FAQClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_FAQClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](20) COLLATE Chinese_PRC_CI_AS NULL CONSTRAINT [DF__tbl_FAQCla__name__395884C4]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_foodAdd-ons]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_foodAdd-ons](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](16) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_foodAd__name__04AFB25B]  DEFAULT (''),
	[price] [money] NOT NULL CONSTRAINT [DF__tbl_foodA__price__05A3D694]  DEFAULT ((0.0)),
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_foodA__restI__0697FACD]  DEFAULT ((0)),
	[photo] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[amount] [int] NOT NULL CONSTRAINT [DF__tbl_foodA__amoun__078C1F06]  DEFAULT ((0)),
	[surplus] [int] NOT NULL CONSTRAINT [DF__tbl_foodA__surpl__0880433F]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_foodMode]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_foodMode](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_foodMo__name__0B5CAFEA]  DEFAULT (''),
	[note] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_foodMo__note__0C50D423]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_foodMode2Rest]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_foodMode2Rest](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_foodM__restI__72910220]  DEFAULT ((0)),
	[foodModeID] [int] NOT NULL CONSTRAINT [DF__tbl_foodM__foodM__73852659]  DEFAULT ((0)),
	[note] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_foodMo__note__74794A92]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_frieldTargetClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_frieldTargetClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[note] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_fullPyDict]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_fullPyDict](
	[chr] [nchar](1) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_fullPyDict_chr]  DEFAULT (''),
	[py] [nvarchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_fullPyDict_py]  DEFAULT ('')
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_game]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_game](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[titleColor] [varchar](8) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_game__titleC__0F7824E8]  DEFAULT (''),
	[clickAmount] [int] NOT NULL CONSTRAINT [DF__tbl_game__clickA__106C4921]  DEFAULT ((0)),
	[URL] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_game__URL__11606D5A]  DEFAULT (''),
	[postTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_game__postTi__12549193]  DEFAULT (getdate()),
	[userName] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_game__userNa__1348B5CC]  DEFAULT (''),
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_game__userID__143CDA05]  DEFAULT ((0)),
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_game__classI__1530FE3E]  DEFAULT ((0)),
	[img] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_game_img]  DEFAULT (''),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_game__conten__16252277]  DEFAULT (''),
	[commentAmount] [int] NOT NULL CONSTRAINT [DF_tbl_game_commentCount]  DEFAULT ((0)),
	[nPosition] [int] NOT NULL CONSTRAINT [DF__tbl_game__nPosit__171946B0]  DEFAULT ((0)),
	[isPost] [int] NOT NULL CONSTRAINT [DF__tbl_game__isPost__180D6AE9]  DEFAULT ((1)),
	[isDelete] [int] NOT NULL CONSTRAINT [DF__tbl_game__isDele__19018F22]  DEFAULT ((0)),
	[num] [int] NOT NULL CONSTRAINT [DF__tbl_game__num__19F5B35B]  DEFAULT ((0)),
	[PValue] [numeric](10, 2) NOT NULL CONSTRAINT [DF_tbl_game_PValue]  DEFAULT ((0)),
	[fileSize] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_game_fileSize]  DEFAULT (''),
	[gameOperation] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_game_gameOperation]  DEFAULT (''),
	[Intro] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_game_Intro]  DEFAULT ('')
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_gameClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_gameClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](20) COLLATE Chinese_PRC_CI_AS NULL DEFAULT (''),
	[note] [varchar](50) COLLATE Chinese_PRC_CI_AS NULL DEFAULT (''),
	[imgPath] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[imgUrl] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[num] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_gameComment]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_gameComment](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[title] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[URL] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[postTime] [datetime] NOT NULL DEFAULT (getdate()),
	[userName] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('0'),
	[userID] [bigint] NULL DEFAULT ((0)),
	[contentID] [bigint] NOT NULL DEFAULT ((0)),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[isDelete] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_gameTop10]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_gameTop10](
	[id] [int] NOT NULL DEFAULT ((1)),
	[gameID] [int] NOT NULL DEFAULT ((0)),
	[addTime] [datetime] NOT NULL DEFAULT (getdate()),
	[addUserID] [int] NOT NULL DEFAULT ((0)),
	[color] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_gathering]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_gathering](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_gathe__userI__59D0414E]  DEFAULT ((0)),
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_gathe__restI__5AC46587]  DEFAULT ((0)),
	[amount] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_gathe__amoun__5BB889C0]  DEFAULT ((0)),
	[RDate] [datetime] NOT NULL CONSTRAINT [DF__tbl_gathe__RDate__5CACADF9]  DEFAULT (getdate()),
	[Ryear] [int] NOT NULL CONSTRAINT [DF__tbl_gathe__Ryear__5DA0D232]  DEFAULT ((0)),
	[Rmonth] [int] NOT NULL CONSTRAINT [DF__tbl_gathe__Rmont__5E94F66B]  DEFAULT ((0)),
	[PayPerson] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_gathe__PayPe__5F891AA4]  DEFAULT (''),
	[note] [text] COLLATE Chinese_PRC_CI_AS NULL CONSTRAINT [DF__tbl_gather__note__607D3EDD]  DEFAULT ('')
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_getPasswordRecord]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_getPasswordRecord](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL DEFAULT ((0)),
	[email] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[checkCode] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[sendTime] [datetime] NOT NULL DEFAULT (getdate()),
	[resetTime] [datetime] NOT NULL DEFAULT (getdate()),
	[isReset] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_gift]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_gift](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_gift__name__49266EE7]  DEFAULT (''),
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_gift__classI__4A1A9320]  DEFAULT ((0)),
	[price] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_gift__price__4B0EB759]  DEFAULT ((0)),
	[worth] [numeric](10, 2) NOT NULL CONSTRAINT [DF_tbl_gift_worth]  DEFAULT ((0.00)),
	[photoID] [bigint] NOT NULL CONSTRAINT [DF__tbl_gift__photoI__4C02DB92]  DEFAULT ((0)),
	[stock] [int] NOT NULL CONSTRAINT [DF__tbl_gift__stocks__4CF6FFCB]  DEFAULT ((0)),
	[note] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_gift__note__4DEB2404]  DEFAULT (''),
	[other] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_gift_other]  DEFAULT (''),
	[isDelete] [int] NOT NULL CONSTRAINT [DF__tbl_gift__isDele__4EDF483D]  DEFAULT ((0)),
	[expendIntegral] [float] NOT NULL CONSTRAINT [DF__tbl_gift__expend__52CFD4B2]  DEFAULT ((0.0)),
	[spreadIntegral] [float] NOT NULL CONSTRAINT [DF__tbl_gift__spread__53C3F8EB]  DEFAULT ((0.0)),
	[sort] [int] NOT NULL CONSTRAINT [DF__tbl_gift__orderB__259319E7]  DEFAULT ((0)),
	[isNew] [int] NOT NULL CONSTRAINT [DF_tbl_gift_isNew]  DEFAULT ((0)),
	[isCommend] [int] NOT NULL CONSTRAINT [DF_tbl_gift_isCommend]  DEFAULT ((0)),
	[UserValue] [numeric](10, 2) NOT NULL CONSTRAINT [DF_tbl_gift_UserValue]  DEFAULT ((0)),
	[isShow]  [INT] NOT NULL DEFAULT ((0)),
	[changeCount] [INT] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_GiftClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_GiftClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[ClassName] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[postTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_GiftClass_postTime]  DEFAULT (getdate())
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_giftOrder]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_giftOrder](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_giftO__userI__5D2D6794]  DEFAULT ((0)),
	[trueName] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_giftO__trueN__5E218BCD]  DEFAULT (''),
	[phone] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_giftO__phone__5F15B006]  DEFAULT (''),
	[address] [varchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_giftO__addre__6009D43F]  DEFAULT (''),
	[postCode] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_giftO__postC__60FDF878]  DEFAULT (''),
	[postTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_giftO__postT__61F21CB1]  DEFAULT (getdate()),
	[orderContent] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_giftOrder_orderContent]  DEFAULT (''),
	[note] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_giftOr__note__62E640EA]  DEFAULT (''),
	[sum] [numeric](10, 2) NOT NULL,
	[state] [int] NOT NULL CONSTRAINT [DF__tbl_giftO__state__63DA6523]  DEFAULT ((0)),
	[isDelete] [int] NOT NULL CONSTRAINT [DF__tbl_giftO__isDel__64CE895C]  DEFAULT ((0)),
	[totalExpend] [float] NOT NULL CONSTRAINT [DF__tbl_giftO__total__7FA27B29]  DEFAULT ((0.0)),
	[totalSpread] [float] NOT NULL CONSTRAINT [DF__tbl_giftO__total__00969F62]  DEFAULT ((0.0)),
	[totalUserValue] [float] NOT NULL CONSTRAINT [DF_tbl_giftOrder_totalUserValue]  DEFAULT ((0)),
	[adminId] [bigint] NOT NULL CONSTRAINT [DF_tbl_giftOrder_adminId]  DEFAULT ((0)),
	[remark] [varchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_giftOrder_remark]  DEFAULT (''),
	[updatetime] [datetime] NOT NULL CONSTRAINT [DF_tbl_giftOrder_updatetime]  DEFAULT (getdate())
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_giftOrderDetail]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_giftOrderDetail](
	[id]  [bigint]       IDENTITY(1,1)        not null,
	[giftOrderID] [bigint] NOT NULL DEFAULT ((0)),
	[giftID] [int] NOT NULL DEFAULT ((0)),
	[amount] [int] NOT NULL DEFAULT ((0)),
	[price] [numeric](10, 2) NOT NULL DEFAULT ((0)),
	[expendIntegral] [float] NOT NULL DEFAULT ((0.0)),
	[spreadIntegral] [float] NOT NULL DEFAULT ((0.0)),
	[userValue] [float] NOT NULL CONSTRAINT [DF_tbl_giftOrderDetail_userValue]  DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_hastenOrder]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_hastenOrder](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[restID] [bigint] NOT NULL CONSTRAINT [DF__tbl_haste__restI__4CC1F5A1]  DEFAULT ((0)),
	[orderID] [bigint] NOT NULL CONSTRAINT [DF__tbl_haste__order__4DB619DA]  DEFAULT ((0)),
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_haste__userI__4EAA3E13]  DEFAULT ((0)),
	[postTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_haste__postT__4F9E624C]  DEFAULT (getdate()),
	[userContent] [nvarchar](4000) COLLATE Chinese_PRC_CI_AS NULL,
	[reply] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_haste__reply__50928685]  DEFAULT (''),
	[state] [int] NOT NULL CONSTRAINT [DF__tbl_haste__state__5186AABE]  DEFAULT ((0)),
	[isDelete] [int] NOT NULL CONSTRAINT [DF__tbl_haste__isDel__527ACEF7]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_hotLabel]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_hotLabel](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[classID] [int] NOT NULL DEFAULT ((0)),
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[isDelete] [int] NOT NULL DEFAULT ((0)),
	[Position] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_hotLabelToRest]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_hotLabelToRest](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[RestId] [bigint] NOT NULL DEFAULT ((0)),
	[hotLabelID] [bigint] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_IMHistory]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_IMHistory](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[senderID] [bigint] NOT NULL CONSTRAINT [DF__tbl_IMHis__sende__5170D0CE]  DEFAULT ((0)),
	[receiveID] [bigint] NOT NULL CONSTRAINT [DF__tbl_IMHis__recei__5264F507]  DEFAULT ((0)),
	[receiveClass] [smallint] NOT NULL CONSTRAINT [DF__tbl_IMHis__recei__53591940]  DEFAULT ((0)),
	[message] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_IMHis__messa__544D3D79]  DEFAULT (''),
	[postTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_IMHis__postT__554161B2]  DEFAULT (getdate()),
	[state] [int] NOT NULL CONSTRAINT [DF__tbl_IMHis__state__563585EB]  DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_integralDetailClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_integralDetailClass](
	[id] [bigint] NOT NULL DEFAULT ((0)),
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[note] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[num] [int] NOT NULL CONSTRAINT [DF_tbl_integralDetailClass_num]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_integralMoney]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_integralMoney](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[money] [float] NOT NULL DEFAULT ((0.0)),
	[integral] [float] NOT NULL DEFAULT ((0.0)),
	[isDelete] [int] NOT NULL DEFAULT ((0)),
	[expendIntegral] [float] NOT NULL DEFAULT ((0.0)),
	[SpreadIntegral] [float] NOT NULL DEFAULT ((0.0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_integralMoneyOrder]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_integralMoneyOrder](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_integ__userI__13DE7E00]  DEFAULT ((0)),
	[moneyID] [bigint] NOT NULL CONSTRAINT [DF__tbl_integ__money__14D2A239]  DEFAULT ((0)),
	[integral] [float] NOT NULL CONSTRAINT [DF__tbl_integ__integ__15C6C672]  DEFAULT ((0.0)),
	[expendIntegral] [float] NOT NULL CONSTRAINT [DF_tbl_integralMoneyOrder_expendIntegral]  DEFAULT ((0.0)),
	[spreadIntegral] [float] NOT NULL CONSTRAINT [DF_tbl_integralMoneyOrder_spreadIntegral]  DEFAULT ((0.0)),
	[money] [float] NOT NULL CONSTRAINT [DF__tbl_integ__money__16BAEAAB]  DEFAULT ((0.0)),
	[postTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_integ__postT__17AF0EE4]  DEFAULT (getdate()),
	[state] [int] NOT NULL CONSTRAINT [DF__tbl_integ__state__18A3331D]  DEFAULT ((0)),
	[adminId] [bigint] NOT NULL CONSTRAINT [DF_tbl_integralMoneyOrder_adminId]  DEFAULT ((0)),
	[remark] [varchar](120) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_integralMoneyOrder_remark]  DEFAULT (''),
	[updateTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_integralMoneyOrder_updateTime]  DEFAULT (getdate()),
	[isDelete] [int] NOT NULL CONSTRAINT [DF__tbl_integ__isDel__19975756]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_integralRate]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_integralRate](
	[id]  [bigint]       IDENTITY(1,1)        not null,
	[regIntegral] [float] NOT NULL CONSTRAINT [DF__tbl_integ__regIn__7228847A]  DEFAULT ((0)),
	[commendOrderIntegral] [float] NOT NULL CONSTRAINT [DF__tbl_integ__comme__731CA8B3]  DEFAULT ((0.0)),
	[commendOrderDateAmount] [int] NOT NULL CONSTRAINT [DF__tbl_integ__comme__7410CCEC]  DEFAULT ((0)),
	[falseOrderIntegral] [float] NOT NULL DEFAULT ((0.0)),
	[orderRate] [float] NOT NULL DEFAULT ((0.0)),
	[spreadDepth] [int] NOT NULL DEFAULT ((0)),
	[UserCommendRestaurant] [int] NOT NULL CONSTRAINT [DF_tbl_integralRate_UserCommendRestaurant]  DEFAULT ((0)),
	[UserCommendArea] [int] NOT NULL CONSTRAINT [DF_tbl_integralRate_UserCommendArea]  DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_lastRest]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_lastRest](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL DEFAULT ((0)),
	[restID] [bigint] NOT NULL,
	[lastTime] [datetime] NOT NULL DEFAULT (getdate()),
	[orderID] [bigint] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


EXEC dbo.sp_addextendedproperty N'MS_Description', N'根据订单,最后订单的餐馆' ,N'user', N'dbo', N'TABLE', N'tbl_lastRest'


/****** 对象:  Table [dbo].[tbl_menu]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_menu](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_menu__name__6DCC4D03]  DEFAULT (''),
	[photo] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_menu__photo__6EC0713C]  DEFAULT (''),
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_menu__restID__6FB49575]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_menuClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_menuClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_menuC__restI__3B2BBE9D]  DEFAULT (''),
	[name] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_menuCl__name__3C1FE2D6]  DEFAULT (''),
	[isDeliver] [smallint] NOT NULL CONSTRAINT [DF_tbl_menuClass_isDeliver]  DEFAULT ((0)),
	[note] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_menuCl__note__3D14070F]  DEFAULT (''),
	[orderNumber] [int] NOT NULL CONSTRAINT [DF_tbl_menuClass_orderNumber]  DEFAULT ((0)),
	[isDelete] [int] NOT NULL CONSTRAINT [DF_tbl_menuClass_isDelete]  DEFAULT ((0)),
	[deliverDay] [int] NOT NULL CONSTRAINT [DF_tbl_menuClass_deliverDay]  DEFAULT ((255)),
	[isReserve] [int] NOT NULL CONSTRAINT [DF__tbl_menuC__isRes__155CB21E]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_menuTable]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_menuTable](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_menuTa__name__7755B73D]  DEFAULT (''),
	[url] [varchar](100) COLLATE Chinese_PRC_CI_AS NULL CONSTRAINT [DF__tbl_menuTab__url__7849DB76]  DEFAULT (''),
	[price] [numeric](19, 1) NOT NULL CONSTRAINT [DF__tbl_menuT__price__793DFFAF]  DEFAULT ((0.0)),
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_menuT__restI__7A3223E8]  DEFAULT ((0)),
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_menuT__foodM__7B264821]  DEFAULT ((0)),
	[mainNote] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_menuT__mainN__7C1A6C5A]  DEFAULT (''),
	[calorie] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_menuT__calor__7D0E9093]  DEFAULT (''),
	[pabulum] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_menuT__pabul__7E02B4CC]  DEFAULT (''),
	[taste] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_menuT__taste__7EF6D905]  DEFAULT (''),
	[photo] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_menuT__photo__7FEAFD3E]  DEFAULT (''),
	[menuPhotoID] [bigint] NOT NULL CONSTRAINT [DF_tbl_menuTable_menuPhotoID]  DEFAULT ((0)),
	[note] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_menuTa__note__00DF2177]  DEFAULT (''),
	[state] [int] NOT NULL CONSTRAINT [DF__tbl_menuT__state__01D345B0]  DEFAULT ((0)),
	[orderNumber] [int] NOT NULL CONSTRAINT [DF_tbl_menuTable_orderNumber]  DEFAULT ((0)),
	[deliverDay] [int] NOT NULL CONSTRAINT [DF_tbl_menuTable_deliverDay]  DEFAULT ((0)),
	[amount] [int] NOT NULL CONSTRAINT [DF_tbl_menuTable_amount]  DEFAULT ((0)),
	[spy] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_menuTab__spy__1AE0814A]  DEFAULT (''),
	[qpy] [varchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_menuTab__qpy__1BD4A583]  DEFAULT ('')
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_monthTop10]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_monthTop10](
	[id] [int] NOT NULL CONSTRAINT [DF__tbl_monthTop__id__33758E3C]  DEFAULT ((1)),
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_month__restI__3469B275]  DEFAULT ((0)),
	[addTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_month__addTi__355DD6AE]  DEFAULT (getdate()),
	[addUserID] [int] NOT NULL CONSTRAINT [DF__tbl_month__addUs__3651FAE7]  DEFAULT ((0)),
	[color] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_monthTop10_color]  DEFAULT (''),
	[styleName] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_MSNLog]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_MSNLog](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_MSNLo__userI__5EE0A5DC]  DEFAULT ((0)),
	[email] [varchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_MSNLog_email]  DEFAULT (''),
	[content] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_MSNLo__conte__5FD4CA15]  DEFAULT (''),
	[postTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_MSNLo__postT__60C8EE4E]  DEFAULT (getdate()),
	[isDelete] [int] NOT NULL CONSTRAINT [DF__tbl_MSNLo__isDel__61BD1287]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_MsnRobot_Log]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_MsnRobot_Log](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[PostTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_MsnRobot_log_PostTime]  DEFAULT (getdate()),
	[Email] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_MsnRobot_log_Email]  DEFAULT (''),
	[Action] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_MsnRobot_log_Action]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_newRest]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_newRest](
	[id] [int] NOT NULL CONSTRAINT [DF__tbl_newRest__id__3EE740E8]  DEFAULT ((1)),
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_newRe__restI__3FDB6521]  DEFAULT ((0)),
	[addTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_newRe__addTi__40CF895A]  DEFAULT (getdate()),
	[addUserID] [int] NOT NULL CONSTRAINT [DF__tbl_newRe__addUs__41C3AD93]  DEFAULT ((0)),
	[color] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_newRest_color]  DEFAULT (''),
	[styleName] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_news]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_news](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[label] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_news_label]  DEFAULT (''),
	[titleColor] [varchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_news__titleC__245D67DE]  DEFAULT (''),
	[URL] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_news__URL__25518C17]  DEFAULT (''),
	[postTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_news__postTi__2645B050]  DEFAULT (getdate()),
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_news__userID__2739D489]  DEFAULT ((0)),
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_news__classI__282DF8C2]  DEFAULT ((0)),
	[subClassID] [int] NOT NULL CONSTRAINT [DF_tbl_news_subClassID]  DEFAULT ((0)),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_news__conten__29221CFB]  DEFAULT (''),
	[nPosition] [int] NOT NULL CONSTRAINT [DF__tbl_news__nPosit__2A164134]  DEFAULT ((0)),
	[isPost] [int] NOT NULL CONSTRAINT [DF__tbl_news__isPost__2B0A656D]  DEFAULT ((0)),
	[isDelete] [int] NOT NULL CONSTRAINT [DF__tbl_news__isDele__2BFE89A6]  DEFAULT ((0)),
	[styleName] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_newsClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_newsClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_newsCl__name__2180FB33]  DEFAULT (''),
	[state] [int] NOT NULL CONSTRAINT [DF_tbl_newsClass_state]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_newsComment]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_newsComment](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[title] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[URL] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[postTime] [datetime] NOT NULL DEFAULT (getdate()),
	[userName] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('0'),
	[userID] [bigint] NULL DEFAULT ((0)),
	[contentID] [bigint] NOT NULL DEFAULT ((0)),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[isDelete] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_newsSubClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_newsSubClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[classID] [int] NOT NULL DEFAULT ((0)),
	[state] [int] NOT NULL CONSTRAINT [DF_tbl_newsSubClass_state]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_NewsTop]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_NewsTop](
	[id] [int] NOT NULL DEFAULT ((1)),
	[newsID] [int] NOT NULL DEFAULT ((0)),
	[addTime] [datetime] NOT NULL DEFAULT (getdate()),
	[addUserID] [int] NOT NULL DEFAULT ((0)),
	[color] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_onlineServiceMsg]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_onlineServiceMsg](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[sessionID] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[adminID] [bigint] NOT NULL DEFAULT ((0)),
	[userID] [bigint] NOT NULL DEFAULT ((0)),
	[userName] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[postTime] [datetime] NOT NULL DEFAULT (getdate()),
	[content] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[IP] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[state] [smallint] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_order]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_order](
	[id] [bigint] NOT NULL,
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_order__userI__45C948A1]  DEFAULT ((0)),
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_order__restI__46BD6CDA]  DEFAULT ((0)),
	[orderContent] [nvarchar](4000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_order__order__47B19113]  DEFAULT (''),
	[total] [float] NOT NULL CONSTRAINT [DF__tbl_order__total__48A5B54C]  DEFAULT ((0)),
	[DeliveryMoney] [float] NOT NULL CONSTRAINT [DF_tbl_order_DeliveryMoney]  DEFAULT ((0)),
	[name] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_order__name__4999D985]  DEFAULT (''),
	[phone] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_order__phone__4A8DFDBE]  DEFAULT (''),
	[areaID] [bigint] NOT NULL CONSTRAINT [DF_tbl_order_areaID]  DEFAULT ((0)),
	[addressID] [int] NOT NULL CONSTRAINT [DF_tbl_order_adressID]  DEFAULT ((0)),
	[address] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_order__addre__4B8221F7]  DEFAULT (''),
	[date_time] [datetime] NOT NULL CONSTRAINT [DF__tbl_order__date___4C764630]  DEFAULT (getdate()),
	[IP] [varchar](16) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_order__IP__4D6A6A69]  DEFAULT (''),
	[deliverDate] [datetime] NOT NULL CONSTRAINT [DF__tbl_order__deliv__4E5E8EA2]  DEFAULT (getdate()),
	[deliverTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_order__deliv__4F52B2DB]  DEFAULT (getdate()),
	[state] [int] NOT NULL CONSTRAINT [DF__tbl_order__state__5046D714]  DEFAULT ((0)),
	[note] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_order_note]  DEFAULT (''),
	[OperatorRole] [int] NOT NULL CONSTRAINT [DF__tbl_order__Opera__61E7FB10]  DEFAULT ((0)),
	[OperatorUserId] [bigint] NOT NULL CONSTRAINT [DF__tbl_order__Opera__62DC1F49]  DEFAULT ((0)),
	[OperatorUserIp] [varchar](120) COLLATE Chinese_PRC_CI_AS NULL,
	[CancelType] [int] NOT NULL CONSTRAINT [DF__tbl_order__Cance__63D04382]  DEFAULT ((0)),
	[CancelNote] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_order__Cance__64C467BB]  DEFAULT (''),
	[UpdateTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_order__Updat__65B88BF4]  DEFAULT (getdate()),
	[Integral] [INT] NOT NULL DEFAULT ((0))	,
	[OrderMode]  [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_orderBaseIntegralRule]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_orderBaseIntegralRule](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[integral] [float] NOT NULL DEFAULT ((0.0)),
	[startTime] [datetime] NOT NULL DEFAULT (getdate()),
	[endTime] [datetime] NOT NULL DEFAULT (getdate()),
	[note] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[isDelete] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_OrderCancelType]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_OrderCancelType](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_orderDetail]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_orderDetail](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[orderID] [bigint] NOT NULL CONSTRAINT [DF__tbl_order__order__729BEF18]  DEFAULT ((0)),
	[menuID] [int] NOT NULL CONSTRAINT [DF__tbl_order__menuI__73901351]  DEFAULT ((0)),
	[amount] [int] NOT NULL CONSTRAINT [DF__tbl_order__amoun__7484378A]  DEFAULT ((0)),
	[price] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_order__price__75785BC3]  DEFAULT ((0)),
	[menuSum] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_order__menuS__766C7FFC]  DEFAULT ((0)),
	[MenuName] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_orderIntegralRate]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_orderIntegralRate](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_orderI__name__6C6FAB24]  DEFAULT (''),
	[classID] [int] NOT NULL CONSTRAINT [DF_tbl_orderIntegralRate_classID]  DEFAULT ((0)),
	[startMoney] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_order__start__6D63CF5D]  DEFAULT ((0.0)),
	[endMoney] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_order__endPr__6E57F396]  DEFAULT ((0.0)),
	[rate] [float] NOT NULL CONSTRAINT [DF__tbl_orderI__rate__6F4C17CF]  DEFAULT ((0.0)),
	[isDelete] [int] NOT NULL CONSTRAINT [DF__tbl_order__isDel__70403C08]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_orderIntegralRateClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_orderIntegralRateClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_orderI__name__5D4D6325]  DEFAULT (''),
	[startTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_order__start__5E41875E]  DEFAULT (getdate()),
	[endTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_order__endTi__5F35AB97]  DEFAULT (getdate()),
	[note] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_orderInt__说明__6029CFD0]  DEFAULT (''),
	[isDelete] [int] NOT NULL CONSTRAINT [DF_tbl_orderIntegralRateClass_isDelete]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_orderNumber]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_orderNumber](
	[id] [bigint] IDENTITY(150000,1) NOT NULL,
	[date_time] [datetime] NOT NULL CONSTRAINT [DF__tbl_order__date___64AE8DCB]  DEFAULT (getdate()),
	[sourceID] [int] NOT NULL CONSTRAINT [DF_tbl_orderNumber_sourceID]  DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_orderOperation]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_orderOperation](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[orderID] [bigint] NOT NULL,
	[userClassID] [bigint] NULL CONSTRAINT [DF__tbl_order__userC__2D32A501]  DEFAULT ((1)),
	[userID] [bigint] NOT NULL,
	[operation] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_order__opera__2E26C93A]  DEFAULT (''),
	[OTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_order__OTime__2F1AED73]  DEFAULT (getdate())
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_OrderStat]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_OrderStat](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[restAmount] [int] NOT NULL CONSTRAINT [DF__tbl_Order__restA__48DABF76]  DEFAULT ((0)),
	[statDate] [datetime] NOT NULL CONSTRAINT [DF__tbl_Order__statD__49CEE3AF]  DEFAULT (getdate()),
	[orderAmount] [int] NOT NULL CONSTRAINT [DF__tbl_Order__order__4AC307E8]  DEFAULT ((0)),
	[SOrderAmount] [int] NOT NULL CONSTRAINT [DF__tbl_Order__SOrde__4BB72C21]  DEFAULT ((0)),
	[FOrderAmount] [int] NOT NULL CONSTRAINT [DF__tbl_Order__FOrde__4CAB505A]  DEFAULT ((0)),
	[NOrderAmount] [int] NOT NULL CONSTRAINT [DF__tbl_Order__NOrde__4D9F7493]  DEFAULT ((0)),
	[statMoney] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_Order__statM__4E9398CC]  DEFAULT ((0)),
	[SStatMoney] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_Order__SStat__4F87BD05]  DEFAULT ((0)),
	[FStatMoney] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_Order__FStat__507BE13E]  DEFAULT ((0)),
	[NStatMoney] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_Order__NStat__51700577]  DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_passportLog]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_passportLog](
	[userID] [bigint] NOT NULL,
	[ip] [varchar](15) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[loginTime] [datetime] NOT NULL,
	[expTime] [datetime] NOT NULL,
	[VCode] [varchar](32) COLLATE Chinese_PRC_CI_AS NOT NULL
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_passportParameters]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_passportParameters](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[domain] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_passp__domai__0FED2634]  DEFAULT (''),
	[url] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_passpor__url__10E14A6D]  DEFAULT (''),
	[logoutUrl] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_passportParameters_logonUrl]  DEFAULT (''),
	[passportKey] [int] NOT NULL CONSTRAINT [DF__tbl_passp__passp__11D56EA6]  DEFAULT ((11111111)),
	[parameters] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_passp__param__12C992DF]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_province]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_province](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_provin__name__5812160E]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_Question]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_Question](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL DEFAULT ((0)),
	[classID] [int] NOT NULL DEFAULT ((0)),
	[answerDept] [int] NOT NULL DEFAULT ((0)),
	[title] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[postTime] [datetime] NOT NULL DEFAULT (getdate()),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[state] [int] NOT NULL DEFAULT ((0)),
	[isDelete] [int] NOT NULL DEFAULT ((0)),
	[clickAmount] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_questionClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_questionClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_questi__name__0599B4F3]  DEFAULT (''),
	[note] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_questi__note__068DD92C]  DEFAULT ('')
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_regIntegralRule]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_regIntegralRule](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[integral] [float] NOT NULL DEFAULT ((0.0)),
	[startTime] [datetime] NOT NULL DEFAULT (getdate()),
	[endTime] [datetime] NOT NULL DEFAULT (getdate()),
	[note] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[isDelete] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_region]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_region](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](16) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_region__name__5EBF139D]  DEFAULT (''),
	[provinceID] [int] NOT NULL CONSTRAINT [DF__tbl_regio__privi__5FB337D6]  DEFAULT ((0)),
	[cityID] [int] NOT NULL CONSTRAINT [DF__tbl_regio__cityI__60A75C0F]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_reserveIntegralRate]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_reserveIntegralRate](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[startSpan] [float] NOT NULL DEFAULT ((0.0)),
	[endSpan] [float] NOT NULL DEFAULT ((0.0)),
	[rate] [float] NOT NULL DEFAULT ((0.0)),
	[isDelete] [int] NOT NULL DEFAULT ((0)),
	[classID] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_reserveIntegralRateClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_reserveIntegralRateClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[startTime] [datetime] NOT NULL DEFAULT (getdate()),
	[endTime] [datetime] NOT NULL DEFAULT (getdate()),
	[note] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[isDelete] [int] NOT NULL CONSTRAINT [DF_tbl_reserveIntegralRateClass_isDelete]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_Rest_ManAger]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_Rest_ManAger](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[RestId] [int] NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_RestId]  DEFAULT ((0)),
	[RestName] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_RestName]  DEFAULT (''),
	[RestState] [int] NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_RestState]  DEFAULT ((0)),
	[waitOrderOld] [int] NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_waitOrderOld]  DEFAULT ((0)),
	[waitOrderPre] [int] NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_waitOrderPre]  DEFAULT ((0)),
	[WaitOrder] [int] NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_WaitOrder]  DEFAULT ((0)),
	[OverOrder] [int] NOT NULL CONSTRAINT [DF_Table_1_OffOrder]  DEFAULT ((0)),
	[CancelOrder] [int] NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_CancelOrder]  DEFAULT ((0)),
	[FalseOrder] [int] NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_FalseOrder]  DEFAULT ((0)),
	[NewMessage] [int] NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_NewMessage]  DEFAULT ((0)),
	[FineCommend] [int] NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_FineCommend]  DEFAULT ((0)),
	[MiddleCommend] [int] NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_MiddleCommend]  DEFAULT ((0)),
	[BadCommend] [int] NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_BadCommend]  DEFAULT ((0)),
	[UserComplain] [int] NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_UserComplain]  DEFAULT ((0)),
	[NewNotice] [int] NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_NewNotice]  DEFAULT ((0)),
	[OldNotice] [int] NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_OldNotice]  DEFAULT ((0)),
	[Noticing] [int] NOT NULL CONSTRAINT [DF_tbl_Rest_ManAger_Noticing]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_restaurant]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_restaurant](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restau__name__3C34F16F]  DEFAULT (''),
	[clickAmount] [int] NOT NULL CONSTRAINT [DF__tbl_resta__click__3D2915A8]  DEFAULT ((0)),
	[addrPhoto] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_restaurant_addrPhoto]  DEFAULT (''),
	[logoPhotoID] [bigint] NOT NULL CONSTRAINT [DF_tbl_restaurant_logoPhotoID]  DEFAULT ((0)),
	[logo] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restau__logo__3E1D39E1]  DEFAULT (''),
	[labelString] [varchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_restaurant_labelString]  DEFAULT (''),
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_resta__class__3F115E1A]  DEFAULT ((0)),
	[SClassID] [int] NOT NULL CONSTRAINT [DF_tbl_restaurant_SClassID]  DEFAULT ((3)),
	[provinceID] [int] NOT NULL CONSTRAINT [DF__tbl_resta__provi__40058253]  DEFAULT ((0)),
	[cityID] [int] NOT NULL CONSTRAINT [DF__tbl_resta__cityI__40F9A68C]  DEFAULT ((0)),
	[regionID] [int] NOT NULL CONSTRAINT [DF__tbl_resta__regio__41EDCAC5]  DEFAULT ((0)),
	[zoneID] [int] NOT NULL CONSTRAINT [DF__tbl_resta__zoneI__42E1EEFE]  DEFAULT ((0)),
	[areaID] [int] NOT NULL CONSTRAINT [DF__tbl_resta__areaI__43D61337]  DEFAULT ((0)),
	[linkman] [varchar](16) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_resta__linkm__44CA3770]  DEFAULT (''),
	[phone] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_resta__phone__45BE5BA9]  DEFAULT (''),
	[address] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_resta__addre__46B27FE2]  DEFAULT (''),
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_resta__saler__47A6A41B]  DEFAULT ((0)),
	[MuserID] [bigint] NOT NULL CONSTRAINT [DF_tbl_restaurant_MuserID]  DEFAULT ((0)),
	[isDeliver] [int] NOT NULL CONSTRAINT [DF_tbl_restaurant_isDeliver]  DEFAULT ((0)),
	[responseTime] [int] NOT NULL CONSTRAINT [DF_tbl_restaurant_responseTime]  DEFAULT ((0)),
	[addTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_restaurant_addTime]  DEFAULT (getdate()),
	[note] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restau__note__489AC854]  DEFAULT (''),
	[isDelete] [tinyint] NOT NULL CONSTRAINT [DF_tbl_restaurant_isDelete]  DEFAULT ((0)),
	[state] [int] NOT NULL CONSTRAINT [DF_tbl_restaurant_state]  DEFAULT ((1)),
	[pointAverage] [numeric](10, 1) NOT NULL CONSTRAINT [DF_tbl_restaurant_pointAverage]  DEFAULT ((0)),
	[menuType] [smallint] NOT NULL CONSTRAINT [DF_tbl_restaurant_menuType]  DEFAULT ((1)),
	[rank] [int] NOT NULL CONSTRAINT [DF__tbl_restau__rank__5CC35340]  DEFAULT ((0)),
	[reserveDays] [int] NOT NULL CONSTRAINT [DF__tbl_resta__reser__137469AC]  DEFAULT ((0)),
	[reserveMenuMode] [int] NOT NULL CONSTRAINT [DF__tbl_resta__reser__14688DE5]  DEFAULT ((0)),
	[spy] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[qpy] [varchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[Rate] [bigint] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

EXEC dbo.sp_addextendedproperty N'MS_Description', N'0:normal menu 1:SuiteMenu' ,N'user', N'dbo', N'TABLE', N'tbl_restaurant', @level2type=N'COLUMN', @level2name=N'menuType'


/****** 对象:  Table [dbo].[tbl_restautant2Area]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_restautant2Area](
	[id] [int] NOT NULL,
	[areaID] [int] NOT NULL,
	[RestID] [int] NOT NULL
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_restBulletin]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_restBulletin](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[restID] [int] NOT NULL,
	[title] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[toUrl] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restB__toUrl__5FBE24CE]  DEFAULT (''),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restB__conte__60B24907]  DEFAULT (''),
	[postTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_restB__postT__61A66D40]  DEFAULT (getdate()),
	[isDelete] [int] NOT NULL CONSTRAINT [DF_tbl_restBulletin_isDelete]  DEFAULT ((0)),
	[classID] [int] NOT NULL DEFAULT ((0)),
	[startTime] [datetime] NOT NULL DEFAULT (getdate()),
	[endTime] [datetime] NOT NULL DEFAULT (getdate()),
	[state] [int] NOT NULL CONSTRAINT [DF__tbl_restB__state__05A3D694]  DEFAULT ((1)),
	[num] [int] NOT NULL DEFAULT ((0)),
	[isRead] [int] NOT NULL DEFAULT ((0)),
	[adminID] [int] NOT NULL DEFAULT ((0)),
	[reply] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[Position] [int] NOT NULL DEFAULT ((0)),
	[userID] [bigint] NOT NULL DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_restBulletinClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_restBulletinClass](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[Position] [int] NOT NULL CONSTRAINT [DF_tbl_restBulletinClass_Position]  DEFAULT ((0)),
	[IsDelete] [int] NOT NULL CONSTRAINT [DF_tbl_restBulletinClass_IsDelete]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_restChainRelation]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_restChainRelation](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[mainRestID] [bigint] NOT NULL,
	[restID] [bigint] NOT NULL
) ON [PRIMARY]


EXEC dbo.sp_addextendedproperty N'MS_Description', N' 主要是共享订餐菜单
    维护套餐资料前查询关系
    只允许父级餐馆进行修改套餐资料
    ' ,N'user', N'dbo', N'TABLE', N'tbl_restChainRelation'


/****** 对象:  Table [dbo].[tbl_restClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_restClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restCl__name__5AB9788F]  DEFAULT (''),
	[note] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_restClass_note]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_RestCommend]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_RestCommend](
	[id] [int] NOT NULL DEFAULT ((1)),
	[restID] [int] NOT NULL DEFAULT ((0)),
	[addTime] [datetime] NOT NULL DEFAULT (getdate()),
	[addUserID] [int] NOT NULL DEFAULT ((0)),
	[color] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[zoneID] [int] NOT NULL DEFAULT ((0)),
	[Position] [int] NOT NULL DEFAULT ((0)),
	[subZoneID] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_restInfoCollect]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_restInfoCollect](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[phone] [varchar](20) COLLATE Chinese_PRC_CI_AS NULL,
	[principal] [varchar](20) COLLATE Chinese_PRC_CI_AS NULL,
	[address] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[deliverInfo] [varchar](15) COLLATE Chinese_PRC_CI_AS NULL,
	[LinkInfo] [varchar](15) COLLATE Chinese_PRC_CI_AS NULL,
	[userID] [bigint] NOT NULL,
	[feedback] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_restInfoCollect_feedback]  DEFAULT (''),
	[state] [smallint] NOT NULL CONSTRAINT [DF_tbl_restInfoCollect_state]  DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_restIntro]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_restIntro](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[restID] [int] NOT NULL,
	[mobile] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restI__mobil__5B0E7E4A]  DEFAULT (''),
	[colorMobile] [smallint] NOT NULL CONSTRAINT [DF_tbl_restIntro_colorMobile]  DEFAULT ((0)),
	[fax] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restInt__fax__5C02A283]  DEFAULT (''),
	[email] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restI__email__5CF6C6BC]  DEFAULT (''),
	[msnQQ] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_restIntro_msnQQ]  DEFAULT (''),
	[expenditure] [float] NOT NULL CONSTRAINT [DF__tbl_restI__expen__5DEAEAF5]  DEFAULT ((0)),
	[discount] [float] NOT NULL CONSTRAINT [DF__tbl_restI__disco__5EDF0F2E]  DEFAULT ((1)),
	[settlement] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_restIntro_settlement]  DEFAULT (''),
	[orderNote] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_restIntro_orderNote]  DEFAULT (''),
	[discountNote] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_restIntro_discountNote]  DEFAULT (''),
	[policy] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restI__polic__5FD33367]  DEFAULT (''),
	[deliverMoney] [int] NOT NULL CONSTRAINT [DF__tbl_restI__deliv__60C757A0]  DEFAULT ((0)),
	[deliverNote] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restI__deliv__61BB7BD9]  DEFAULT (''),
	[deliverArea] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_restIntro_deliverArea]  DEFAULT (''),
	[chainMsg] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restI__chain__62AFA012]  DEFAULT (''),
	[mapUrl] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restI__mapUr__63A3C44B]  DEFAULT (''),
	[URL] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restInt__URL__6497E884]  DEFAULT (''),
	[PAmount] [int] NOT NULL CONSTRAINT [DF_tbl_restIntro_PAmount]  DEFAULT ((0)),
	[BAmount] [int] NOT NULL CONSTRAINT [DF_tbl_restIntro_BAmount]  DEFAULT ((0)),
	[stallAmount] [int] NOT NULL CONSTRAINT [DF_tbl_restIntro_stallAmount]  DEFAULT ((0)),
	[traffic] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_restIntro_traffic]  DEFAULT (''),
	[postTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_restI__postT__658C0CBD]  DEFAULT (getdate()),
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_restI__class__668030F6]  DEFAULT ((0)),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restI__conte__6774552F]  DEFAULT (''),
	[nPosition] [int] NOT NULL CONSTRAINT [DF__tbl_restI__nPosi__68687968]  DEFAULT ((0)),
	[isPost] [int] NOT NULL CONSTRAINT [DF__tbl_restI__isPos__695C9DA1]  DEFAULT ((0)),
	[updateCyc] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_restIntro_updateCyc]  DEFAULT (''),
	[senderAmount] [int] NOT NULL CONSTRAINT [DF_tbl_restIntro_senderNumber]  DEFAULT ((0)),
	[isDelete] [int] NOT NULL CONSTRAINT [DF__tbl_restI__isDel__6A50C1DA]  DEFAULT ((0)),
	[restStyleID] [int] NOT NULL CONSTRAINT [DF__tbl_restI__restS__62458BBE]  DEFAULT ((0)),
	[agree] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restI__agree__6339AFF7]  DEFAULT (''),
	[ManageMode] [int] NOT NULL CONSTRAINT [DF__tbl_restI__Manag__642DD430]  DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_restLock]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_restLock](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[restID] [int] NOT NULL,
	[userID] [bigint] NOT NULL,
	[lockTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_restL__lockT__18D6A699]  DEFAULT (getdate()),
	[day] [int] NOT NULL CONSTRAINT [DF__tbl_restLoc__day__19CACAD2]  DEFAULT ((0)),
	[IP] [varchar](15) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restLock__IP__1ABEEF0B]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_restMapInfo]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_restMapInfo](
	[restID] [bigint] NOT NULL,
	[mapCity] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('beijing'),
	[mapX] [bigint] NOT NULL DEFAULT ((0)),
	[mapY] [bigint] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_RestMapTop]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_RestMapTop](
	[id] [int] NOT NULL DEFAULT ((1)),
	[restID] [int] NOT NULL DEFAULT ((0)),
	[addTime] [datetime] NOT NULL DEFAULT (getdate()),
	[addUserID] [int] NOT NULL DEFAULT ((0)),
	[color] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_restOrderStat]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_restOrderStat](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_restO__restI__6359AB88]  DEFAULT ((0)),
	[statDate] [datetime] NOT NULL CONSTRAINT [DF__tbl_restO__statD__644DCFC1]  DEFAULT (getdate()),
	[statYear] [int] NULL CONSTRAINT [DF__tbl_restO__statY__6541F3FA]  DEFAULT ((0)),
	[statMonth] [int] NULL CONSTRAINT [DF__tbl_restO__statM__66361833]  DEFAULT ((0)),
	[orderAmount] [int] NOT NULL CONSTRAINT [DF__tbl_restO__order__672A3C6C]  DEFAULT ((0)),
	[SOrderAmount] [int] NOT NULL CONSTRAINT [DF__tbl_restO__SOrde__681E60A5]  DEFAULT ((0)),
	[FOrderAmount] [int] NOT NULL CONSTRAINT [DF__tbl_restO__FOrde__691284DE]  DEFAULT ((0)),
	[NOrderAmount] [int] NOT NULL CONSTRAINT [DF__tbl_restO__NOrde__6A06A917]  DEFAULT ((0)),
	[statMoney] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_restO__statM__6AFACD50]  DEFAULT ((0)),
	[SStatMoney] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_restO__SStat__6BEEF189]  DEFAULT ((0)),
	[FStatMoney] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_restO__FStat__6CE315C2]  DEFAULT ((0)),
	[NStatMoney] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_restO__NStat__6DD739FB]  DEFAULT ((0)),
	[realStatMonth] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_restO__realS__6ECB5E34]  DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_restSignUp]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_restSignUp](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL DEFAULT ((0)),
	[restID] [int] NOT NULL DEFAULT ((0)),
	[note] [text] COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[date_time] [datetime] NOT NULL CONSTRAINT [DF_tbl_restSignUp_date_time]  DEFAULT (getdate()),
	[deduct] [float] NOT NULL CONSTRAINT [DF_tbl_restSignUp_deduct 
deduct]  DEFAULT ((0)),
	[getmoney] [float] NOT NULL CONSTRAINT [DF_tbl_restSignUp_getmoney]  DEFAULT ((0)),
	[FallInDate] [datetime] NOT NULL DEFAULT (getdate()),
	[PlatformPayment] [float] NOT NULL DEFAULT ((0)),
	[startDate] [datetime] NULL,
	[operateUserId] [int] NOT NULL CONSTRAINT [DF_tbl_restSignUp_operateUserId]  DEFAULT ((0)),
	[updateTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_restSignUp_updateTime]  DEFAULT (getdate())
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_restsignUpHistory]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_restsignUpHistory](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL,
	[restID] [int] NOT NULL,
	[note] [text] COLLATE Chinese_PRC_CI_AS NOT NULL,
	[date_time] [datetime] NOT NULL,
	[deduct] [float] NOT NULL,
	[getmoney] [float] NOT NULL,
	[FallInDate] [datetime] NOT NULL,
	[PlatformPayment] [float] NOT NULL,
	[startDate] [datetime] NULL,
	[operateUserId] [int] NOT NULL CONSTRAINT [DF_tbl_restsignUpHistory_operateUserId]  DEFAULT ((0)),
	[updateTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_restsignUpHistory_updateTime]  DEFAULT (getdate())
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_restStyleCollections]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_restStyleCollections](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restSt__name__77CC4F37]  DEFAULT (''),
	[cssPath] [varchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restS__cssPa__78C07370]  DEFAULT (''),
	[cssHeadPath] [varchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restS__cssHe__79B497A9]  DEFAULT (''),
	[price] [float] NOT NULL CONSTRAINT [DF__tbl_restS__price__7AA8BBE2]  DEFAULT ((0.0)),
	[note] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_restSt__note__7B9CE01B]  DEFAULT (''),
	[state] [int] NOT NULL CONSTRAINT [DF__tbl_restS__state__7C910454]  DEFAULT ((0)),
	[isDelete] [int] NOT NULL CONSTRAINT [DF__tbl_restS__isDel__7D85288D]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_restUser]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_restUser](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL,
	[restID] [int] NOT NULL
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_runningOrder]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_runningOrder](
	[bID] [bigint] IDENTITY(1,1) NOT NULL,
	[id] [bigint] NOT NULL,
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_runni__userI__41F02CCA]  DEFAULT ((0)),
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_runni__restI__42E45103]  DEFAULT ((0)),
	[orderContent] [nvarchar](4000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_runni__order__43D8753C]  DEFAULT (''),
	[integralTotal] [int] NOT NULL CONSTRAINT [DF__tbl_runni__integ__44CC9975]  DEFAULT ((0)),
	[isUseIntegral] [smallint] NOT NULL CONSTRAINT [DF__tbl_runni__isUse__45C0BDAE]  DEFAULT ((0)),
	[total] [numeric](15, 2) NOT NULL CONSTRAINT [DF__tbl_runni__total__46B4E1E7]  DEFAULT ((0)),
	[DeliveryMoney] [float] NOT NULL CONSTRAINT [DF__tbl_runni__Deliv__47A90620]  DEFAULT ((0)),
	[name] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_runnin__name__489D2A59]  DEFAULT (''),
	[phone] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_runni__phone__49914E92]  DEFAULT (''),
	[addressID] [int] NOT NULL CONSTRAINT [DF__tbl_runni__addre__4A8572CB]  DEFAULT ((0)),
	[areaID] [bigint] NOT NULL CONSTRAINT [DF__tbl_runni__areaI__4B799704]  DEFAULT ((0)),
	[address] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_runni__addre__4C6DBB3D]  DEFAULT (''),
	[date_time] [datetime] NOT NULL CONSTRAINT [DF__tbl_runni__date___4D61DF76]  DEFAULT (getdate()),
	[IP] [varchar](16) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_runningO__IP__4E5603AF]  DEFAULT (''),
	[deliverDate] [datetime] NOT NULL CONSTRAINT [DF__tbl_runni__deliv__4F4A27E8]  DEFAULT (getdate()),
	[deliverTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_runni__deliv__503E4C21]  DEFAULT (getdate()),
	[state] [int] NOT NULL CONSTRAINT [DF__tbl_runni__state__5132705A]  DEFAULT ((0)),
	[note] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_runnin__note__52269493]  DEFAULT (''),
	[OperatorRole] [int] NOT NULL CONSTRAINT [DF__tbl_runni__Opera__531AB8CC]  DEFAULT ((0)),
	[OperatorUserId] [bigint] NOT NULL CONSTRAINT [DF__tbl_runni__Opera__540EDD05]  DEFAULT ((0)),
	[OperatorUserIp] [varchar](120) COLLATE Chinese_PRC_CI_AS NULL,
	[CancelType] [int] NOT NULL CONSTRAINT [DF__tbl_runni__Cance__5503013E]  DEFAULT ((0)),
	[CancelNote] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_runni__Cance__55F72577]  DEFAULT (''),
	[UpdateTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_runni__Updat__56EB49B0]  DEFAULT (getdate()),
	[OrderType] [int] NOT NULL CONSTRAINT [DF_tbl_runningOrder_OrderType]  DEFAULT ((0)),
	[Integral] [INT] NOT NULL DEFAULT ((0)) ,
	[OrderMode]  [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_serviceDept]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_serviceDept](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[note] [text] COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[deptManager] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_serviceUser]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_serviceUser](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[passWord] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[nickName] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[email] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[deptID] [int] NOT NULL DEFAULT ((0)),
	[phone] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[note] [text] COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_shieldIP]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_shieldIP](
	[ip] [varchar](15) COLLATE Chinese_PRC_CI_AS NOT NULL
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_shieldKeyWord]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_shieldKeyWord](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[word] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[replaceTo] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_shieldKeyWord_replaceTo]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_shop2Area]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_shop2Area](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[areaID] [int] NOT NULL CONSTRAINT [DF__tbl_resta__areaI__72C60C4A]  DEFAULT ((0)),
	[RestID] [int] NOT NULL CONSTRAINT [DF__tbl_resta__RestI__73BA3083]  DEFAULT ((0)),
	[DeliveryMoney] [int] NOT NULL CONSTRAINT [DF_tbl_shop2Area_DeliveryMoney]  DEFAULT ((0)),
	[ResponseTime] [int] NOT NULL CONSTRAINT [DF_tbl_shop2Area_ResponseTime]  DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_shop2area_tmp]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_shop2area_tmp](
	[id] [bigint] NOT NULL,
	[areaId] [int] NOT NULL CONSTRAINT [DF_tbl_shop2area_tmp_areaId]  DEFAULT ((0)),
	[restId] [int] NOT NULL CONSTRAINT [DF_tbl_shop2area_tmp_restId]  DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_ShopBusinessState]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_ShopBusinessState](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[ShopId] [bigint] NOT NULL DEFAULT ((0)),
	[State] [int] NOT NULL DEFAULT ((0)),
	[Content] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[UpdateUserId] [bigint] NOT NULL DEFAULT ((0)),
	[UpdateTime] [datetime] NOT NULL DEFAULT (getdate()),
	[RestoreTime] [datetime] NOT NULL DEFAULT (getdate())
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_ShopBusinessTime]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_ShopBusinessTime](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[ShopId] [bigint] NOT NULL DEFAULT ((0)),
	[StartClock] [numeric](10, 2) NOT NULL DEFAULT ((0)),
	[EndClock] [numeric](10, 2) NOT NULL DEFAULT ((0)),
	[SpanTime] [varchar](11) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_ShopComments]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_ShopComments](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_ShopComments_title]  DEFAULT (''),
	[shopID] [int] NOT NULL CONSTRAINT [DF__tbl_ShopC__shopI__1B1EE1BE]  DEFAULT ((0)),
	[KPoint] [int] NOT NULL CONSTRAINT [DF__tbl_ShopC__KPoin__1C1305F7]  DEFAULT ((0)),
	[HPoint] [int] NOT NULL CONSTRAINT [DF__tbl_ShopC__HPoin__1D072A30]  DEFAULT ((0)),
	[SPoint] [int] NOT NULL CONSTRAINT [DF__tbl_ShopC__SPoin__1DFB4E69]  DEFAULT ((0)),
	[FPoint] [int] NOT NULL CONSTRAINT [DF__tbl_ShopC__FPoin__1EEF72A2]  DEFAULT ((0)),
	[FMenu] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_ShopC__FMenu__1FE396DB]  DEFAULT (''),
	[personAvg] [numeric](18, 2) NOT NULL CONSTRAINT [DF_tbl_ShopComments_personAvg]  DEFAULT ((0)),
	[classLabel] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_ShopC__class__20D7BB14]  DEFAULT (''),
	[carStation] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_ShopC__carSt__21CBDF4D]  DEFAULT (''),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_ShopC__conte__22C00386]  DEFAULT (''),
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_ShopC__userI__23B427BF]  DEFAULT ((0)),
	[postTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_ShopC__postT__24A84BF8]  DEFAULT (getdate()),
	[IP] [varchar](15) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_ShopComm__IP__259C7031]  DEFAULT (''),
	[isDelete] [int] NOT NULL CONSTRAINT [DF_tbl_ShopComments_isDelete]  DEFAULT ((0)),
	[Auditing] [int] NOT NULL CONSTRAINT [DF_tbl_ShopComments_Auditing]  DEFAULT ((0)),
	[reply] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_ShopC__reply__40471023]  DEFAULT (''),
	[replySource] [int] NOT NULL CONSTRAINT [DF__tbl_ShopC__reply__48C7478B]  DEFAULT ((0)),
	[replyUserId] [bigint] NOT NULL CONSTRAINT [DF_tbl_ShopComments_replyUserId]  DEFAULT ((0)),
	[replyTime] [datetime] NOT NULL DEFAULT (getdate())
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_ShopSystemUser]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_ShopSystemUser](
	[userID] [bigint] NOT NULL DEFAULT ((0)),
	[shopID] [bigint] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_SMSHistory]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_SMSHistory](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[orderID] [int] NOT NULL CONSTRAINT [DF__tbl_SMSHi__order__04DA9AE4]  DEFAULT ((0)),
	[userID] [int] NOT NULL CONSTRAINT [DF_tbl_SMSHistory_userID]  DEFAULT ((0)),
	[mobile] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_SMSHi__mobil__05CEBF1D]  DEFAULT ('0000000000'),
	[message] [text] COLLATE Chinese_PRC_CI_AS NOT NULL,
	[sendTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_SMSHi__sendT__06C2E356]  DEFAULT (getdate()),
	[result] [int] NOT NULL CONSTRAINT [DF__tbl_SMSHi__resul__07B7078F]  DEFAULT ((-1)),
	[classID] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_smsResult]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_smsResult](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[messageID] [int] NOT NULL CONSTRAINT [DF_tbl_smsResult_messageID]  DEFAULT ((0)),
	[subID] [int] NOT NULL CONSTRAINT [DF_tbl_smsResult_subID]  DEFAULT ((0)),
	[mobile] [varchar](16) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_smsResult_moblie]  DEFAULT (''),
	[rTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_smsResult_rTime]  DEFAULT (getdate()),
	[result] [int] NOT NULL CONSTRAINT [DF_tbl_smsResult_result]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_smsStatus]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_smsStatus](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[msgid] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[mobile] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[subSn] [int] NOT NULL DEFAULT ((0)),
	[status] [int] NOT NULL DEFAULT ((0)),
	[date_time] [datetime] NOT NULL DEFAULT (getdate()),
	[state] [int] NOT NULL DEFAULT ((0)),
	[classID] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_spaceBrowseHistory]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_spaceBrowseHistory](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL DEFAULT ((0)),
	[toUserID] [bigint] NOT NULL DEFAULT ((0)),
	[browseTime] [datetime] NOT NULL DEFAULT (getdate())
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_spaceStar]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_spaceStar](
	[userID] [bigint] NOT NULL,
	[orderNumber] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_spreadDepthIntegralRule]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_spreadDepthIntegralRule](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[classID] [int] NOT NULL DEFAULT ((0)),
	[num] [int] NOT NULL DEFAULT ((0)),
	[rate] [float] NOT NULL DEFAULT ((0.0)),
	[isDelete] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_spreadDepthIntegralRuleClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_spreadDepthIntegralRuleClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[startTime] [datetime] NOT NULL DEFAULT (getdate()),
	[endTime] [datetime] NOT NULL DEFAULT (getdate()),
	[note] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[isDelete] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_spreadDepthRule]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_spreadDepthRule](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[depth] [int] NOT NULL DEFAULT ((0)),
	[startTime] [datetime] NOT NULL DEFAULT (getdate()),
	[endTime] [datetime] NOT NULL DEFAULT (getdate()),
	[note] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[isDelete] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_suiteMenuClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_suiteMenuClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_suite__restI__42C2BEC4]  DEFAULT ((0)),
	[name] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suiteM__name__43B6E2FD]  DEFAULT (''),
	[dayID] [int] NOT NULL CONSTRAINT [DF__tbl_suite__dayID__44AB0736]  DEFAULT ((0)),
	[note] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suiteM__note__459F2B6F]  DEFAULT (''),
	[orderNumber] [int] NOT NULL CONSTRAINT [DF__tbl_suite__order__46934FA8]  DEFAULT ((0)),
	[isDelete] [int] NOT NULL CONSTRAINT [DF__tbl_suite__isDel__478773E1]  DEFAULT ((0)),
	[isReserve] [int] NOT NULL CONSTRAINT [DF__tbl_suite__isRes__1650D657]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_suiteMenuConfig]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_suiteMenuConfig](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_suite__restI__0E19EC5B]  DEFAULT ((0)),
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_suite__class__0F0E1094]  DEFAULT ((0)),
	[menuID] [int] NOT NULL CONSTRAINT [DF__tbl_suite__menuI__100234CD]  DEFAULT ((0)),
	[name] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suiteM__name__10F65906]  DEFAULT (''),
	[price] [numeric](18, 2) NOT NULL CONSTRAINT [DF__tbl_suite__price__11EA7D3F]  DEFAULT ((0.0)),
	[discount] [float] NOT NULL CONSTRAINT [DF_tbl_suiteMenuConfig_discount]  DEFAULT ((1.00)),
	[integral] [int] NOT NULL CONSTRAINT [DF_tbl_suiteMenuConfig_integral]  DEFAULT ((0)),
	[orderNumber] [int] NOT NULL CONSTRAINT [DF__tbl_suite__order__17A35695]  DEFAULT ((0)),
	[isDelete] [int] NOT NULL CONSTRAINT [DF__tbl_suite__isDel__18977ACE]  DEFAULT ((0)),
	[RuleMark]            [int]                not null default ((0)),
	[IntegralCount]        [bigint]               not null default ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_suiteMenuContent]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_suiteMenuContent](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[restID] [int] NOT NULL CONSTRAINT [DF_tbl_suiteMenuContent_restID]  DEFAULT ((0)),
	[configID] [int] NOT NULL CONSTRAINT [DF__tbl_suite__confi__2BAA4F42]  DEFAULT ((0)),
	[elementID] [int] NOT NULL CONSTRAINT [DF__tbl_suite__eleme__2C9E737B]  DEFAULT ((0)),
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_suite__class__2D9297B4]  DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_suiteMenuContentClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_suiteMenuContentClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[note] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_suiteMenuElement]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_suiteMenuElement](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suiteM__name__66CB1510]  DEFAULT (''),
	[amount] [int] NOT NULL CONSTRAINT [DF_tbl_suiteMenuElement_amount]  DEFAULT ((0)),
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_suite__class__67BF3949]  DEFAULT ((0)),
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_suite__restI__68B35D82]  DEFAULT ((0)),
	[note] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suiteM__note__69A781BB]  DEFAULT (''),
	[isDelete] [int] NOT NULL CONSTRAINT [DF_tbl_suiteMenuElement_isDelete]  DEFAULT ((0)),
	[spy] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suiteMe__spy__18F838D8]  DEFAULT (''),
	[qpy] [varchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suiteMe__qpy__19EC5D11]  DEFAULT ('')
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_suiteMenuElementClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_suiteMenuElementClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[note] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_suiteMenuElementExpend]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_suiteMenuElementExpend](
	[elementID] [bigint] NOT NULL,
	[expendAmount] [int] NOT NULL,
	[expendDate] [datetime] NOT NULL DEFAULT (getdate())
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_suiteMenuList]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_suiteMenuList](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[classID] [int] NOT NULL,
	[MenuID] [int] NOT NULL
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_suiteMenuOrder]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_suiteMenuOrder](
	[Bid] [bigint] IDENTITY(1,1) NOT NULL,
	[id] [bigint] NOT NULL,
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_suite__userI__08EB22EA]  DEFAULT ((0)),
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_suite__restI__09DF4723]  DEFAULT ((0)),
	[orderContent] [nvarchar](4000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suite__order__0AD36B5C]  DEFAULT (''),
	[integralTotal] [int] NOT NULL CONSTRAINT [DF_tbl_suiteMenuOrder_integralTotal]  DEFAULT ((0)),
	[isUseIntegral] [smallint] NOT NULL CONSTRAINT [DF_tbl_suiteMenuOrder_isUseIntegral]  DEFAULT ((0)),
	[total] [numeric](15, 2) NOT NULL CONSTRAINT [DF__tbl_suite__total__0BC78F95]  DEFAULT ((0)),
	[DeliveryMoney] [float] NOT NULL CONSTRAINT [DF_tbl_suiteMenuOrder_DeliveryMoney]  DEFAULT ((0)),
	[name] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suiteM__name__0CBBB3CE]  DEFAULT (''),
	[phone] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suite__phone__0DAFD807]  DEFAULT (''),
	[addressID] [int] NOT NULL CONSTRAINT [DF_tbl_suiteMenuOrder_addressID]  DEFAULT ((0)),
	[areaID] [bigint] NOT NULL CONSTRAINT [DF_tbl_suiteMenuOrder_areaID]  DEFAULT ((0)),
	[address] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suite__addre__0EA3FC40]  DEFAULT (''),
	[date_time] [datetime] NOT NULL CONSTRAINT [DF__tbl_suite__date___0F982079]  DEFAULT (getdate()),
	[IP] [varchar](16) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suiteMen__IP__108C44B2]  DEFAULT (''),
	[deliverDate] [datetime] NOT NULL CONSTRAINT [DF__tbl_suite__deliv__118068EB]  DEFAULT (getdate()),
	[deliverTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_suite__deliv__12748D24]  DEFAULT (getdate()),
	[state] [int] NOT NULL CONSTRAINT [DF__tbl_suite__state__1368B15D]  DEFAULT ((0)),
	[note] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suiteM__note__145CD596]  DEFAULT (''),
	[OperatorRole] [int] NOT NULL CONSTRAINT [DF__tbl_suite__Opera__5D2345F3]  DEFAULT ((0)),
	[OperatorUserId] [bigint] NOT NULL CONSTRAINT [DF__tbl_suite__Opera__5E176A2C]  DEFAULT ((0)),
	[OperatorUserIp] [varchar](120) COLLATE Chinese_PRC_CI_AS NULL,
	[CancelType] [int] NOT NULL CONSTRAINT [DF__tbl_suite__Cance__5F0B8E65]  DEFAULT ((0)),
	[CancelNote] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suite__Cance__5FFFB29E]  DEFAULT (''),
	[UpdateTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_suite__Updat__60F3D6D7]  DEFAULT (getdate()),
	[Integral] [INT] NOT NULL DEFAULT ((0)),
	[OrderMode]  [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_suiteMenuOrderDetail]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_suiteMenuOrderDetail](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[orderID] [bigint] NOT NULL CONSTRAINT [DF__tbl_suite__order__675524F5]  DEFAULT ((0)),
	[menuID] [int] NOT NULL CONSTRAINT [DF__tbl_suite__menuI__6849492E]  DEFAULT ((0)),
	[menuContent] [nvarchar](4000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suite__menuC__693D6D67]  DEFAULT (''),
	[configID] [int] NOT NULL CONSTRAINT [DF__tbl_suite__confi__6A3191A0]  DEFAULT ((0)),
	[m1] [int] NOT NULL CONSTRAINT [DF__tbl_suiteMen__m1__6B25B5D9]  DEFAULT ((0)),
	[m2] [int] NOT NULL CONSTRAINT [DF__tbl_suiteMen__m2__6C19DA12]  DEFAULT ((0)),
	[m3] [int] NOT NULL CONSTRAINT [DF__tbl_suiteMen__m3__6D0DFE4B]  DEFAULT ((0)),
	[m4] [int] NOT NULL CONSTRAINT [DF__tbl_suiteMen__m4__6E022284]  DEFAULT ((0)),
	[m5] [int] NOT NULL CONSTRAINT [DF__tbl_suiteMen__m5__6EF646BD]  DEFAULT ((0)),
	[m6] [int] NOT NULL CONSTRAINT [DF__tbl_suiteMen__m6__6FEA6AF6]  DEFAULT ((0)),
	[m7] [int] NOT NULL CONSTRAINT [DF__tbl_suiteMen__m7__70DE8F2F]  DEFAULT ((0)),
	[m8] [int] NOT NULL CONSTRAINT [DF_tbl_suiteMenuOrderDetail_m8]  DEFAULT ((0)),
	[m9] [int] NOT NULL CONSTRAINT [DF_tbl_suiteMenuOrderDetail_m9]  DEFAULT ((0)),
	[m10] [int] NOT NULL CONSTRAINT [DF_tbl_suiteMenuOrderDetail_m10]  DEFAULT ((0)),
	[amount] [int] NOT NULL CONSTRAINT [DF__tbl_suite__amoun__71D2B368]  DEFAULT ((0)),
	[price] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_suite__price__72C6D7A1]  DEFAULT ((0)),
	[integral] [int] NOT NULL CONSTRAINT [DF_tbl_suiteMenuOrderDetail_integral]  DEFAULT ((0)),
	[menuSum] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_suite__menuS__73BAFBDA]  DEFAULT ((0)),
	[MenuName] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_suiteMenuShopTop10]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_suiteMenuShopTop10](
	[id] [int] NOT NULL DEFAULT ((1)),
	[restID] [int] NOT NULL DEFAULT ((0)),
	[addTime] [datetime] NOT NULL DEFAULT (getdate()),
	[addUserID] [int] NOT NULL DEFAULT ((0)),
	[color] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_suiteMenuTable]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_suiteMenuTable](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_suite__restI__33807B34]  DEFAULT ((0)),
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_suite__class__34749F6D]  DEFAULT ((0)),
	[name] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suiteM__name__3568C3A6]  DEFAULT (''),
	[url] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suiteMe__url__365CE7DF]  DEFAULT (''),
	[mainNote] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suite__mainN__37510C18]  DEFAULT (''),
	[photoID] [bigint] NOT NULL CONSTRAINT [DF_tbl_suiteMenuTable_photoID]  DEFAULT ((0)),
	[photoAddr] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suite__photo__38453051]  DEFAULT (''),
	[orderNumber] [int] NOT NULL CONSTRAINT [DF__tbl_suite__order__3939548A]  DEFAULT ((0)),
	[note] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suiteM__note__3A2D78C3]  DEFAULT (''),
	[calorie] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suite__calor__3B219CFC]  DEFAULT (''),
	[pabulum] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suite__pabul__3C15C135]  DEFAULT (''),
	[taste] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suite__taste__3D09E56E]  DEFAULT (''),
	[deliverDay] [int] NOT NULL CONSTRAINT [DF_tbl_suiteMenuTable_deliverDay]  DEFAULT ((0)),
	[startTime] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_suite__start__3DFE09A7]  DEFAULT ((0)),
	[endTime] [numeric](10, 2) NOT NULL CONSTRAINT [DF__tbl_suite__endTi__3EF22DE0]  DEFAULT ((24)),
	[isDelete] [int] NOT NULL CONSTRAINT [DF__tbl_suite__isDel__3FE65219]  DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_supply]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_supply](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_suppl__userI__467E410F]  DEFAULT ((0)),
	[title] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suppl__title__47726548]  DEFAULT (''),
	[regionID] [int] NOT NULL CONSTRAINT [DF_tbl_supply_regionID]  DEFAULT ((0)),
	[company] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suppl__compa__48668981]  DEFAULT (''),
	[contactPerson] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suppl__conta__495AADBA]  DEFAULT (''),
	[address] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suppl__addre__4A4ED1F3]  DEFAULT (''),
	[phone] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suppl__phone__4B42F62C]  DEFAULT (''),
	[email] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_suppl__email__4C371A65]  DEFAULT (''),
	[amount] [int] NOT NULL CONSTRAINT [DF__tbl_suppl__amoun__4D2B3E9E]  DEFAULT ((0)),
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_suppl__class__4E1F62D7]  DEFAULT ((0)),
	[note] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_supply__note__4F138710]  DEFAULT (''),
	[state] [int] NOT NULL CONSTRAINT [DF__tbl_suppl__state__5007AB49]  DEFAULT ((0)),
	[postTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_supply_postTime]  DEFAULT (getdate())
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_supplyClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_supplyClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[note] [varchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_systemErrorLog]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_systemErrorLog](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[url] [varchar](200) COLLATE Chinese_PRC_CI_AS NULL,
	[errorType] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('0'),
	[detail] [varchar](8000) COLLATE Chinese_PRC_CI_AS NULL,
	[IP] [varchar](15) COLLATE Chinese_PRC_CI_AS NULL,
	[ServerIP] [varchar](15) COLLATE Chinese_PRC_CI_AS NULL,
	[errorTime] [datetime] NOT NULL DEFAULT (getdate())
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_SystemHeadPortrait]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_SystemHeadPortrait](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[classID] [int] NOT NULL DEFAULT ((0)),
	[name] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[photoID] [bigint] NOT NULL DEFAULT ((0)),
	[note] [varchar](250) COLLATE Chinese_PRC_CI_AS NULL
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_systemLabel]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_systemLabel](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[labelString] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_syste__label__09160B73]  DEFAULT (''),
	[type] [smallint] NOT NULL CONSTRAINT [DF__tbl_system__type__0A0A2FAC]  DEFAULT ((0)),
	[note] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_system__note__0AFE53E5]  DEFAULT (''),
	[amount] [bigint] NOT NULL CONSTRAINT [DF_tbl_systemLabel_amount]  DEFAULT ((1))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_systemLog]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_systemLog](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userID] [int] NULL CONSTRAINT [DF__tbl_syste__userI__18C19800]  DEFAULT ((0)),
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_syste__class__19B5BC39]  DEFAULT ((0)),
	[date_time] [datetime] NULL CONSTRAINT [DF__tbl_syste__date___1AA9E072]  DEFAULT (getdate()),
	[content] [text] COLLATE Chinese_PRC_CI_AS NULL CONSTRAINT [DF__tbl_syste__conte__1B9E04AB]  DEFAULT (''),
	[historyRecord] [text] NOT NULL CONSTRAINT [DF_tbl_systemLog_historyRecord]  DEFAULT (''),
	[AdminId] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_systemModel]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_systemModel](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[modelName] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[modelPath] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[isDelete] [smallint] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_systemPower]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_systemPower](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_system__name__284DF453]  DEFAULT (''),
	[note] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_system__note__2942188C]  DEFAULT (''),
	[Code] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_systemPowerDetail]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_systemPowerDetail](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[powerID] [int] NOT NULL CONSTRAINT [DF__tbl_syste__power__515009E6]  DEFAULT ((0)),
	[moduleID] [int] NOT NULL,
	[addTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_syste__addTi__52442E1F]  DEFAULT (getdate())
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_systemPowerModule]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_systemPowerModule](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[CNName] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_syste__CNNam__4B973090]  DEFAULT (''),
	[ENName] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_syste__ENNam__4C8B54C9]  DEFAULT (''),
	[path] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_system__path__4D7F7902]  DEFAULT (''),
	[note] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_system__note__4E739D3B]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_SystemStyle]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_SystemStyle](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_Sytem__class__5C786F26]  DEFAULT ((0)),
	[previewPhoto] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_SystemStyle_previewPhoto]  DEFAULT (''),
	[bgColor] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Sytem__bgCol__5D6C935F]  DEFAULT (''),
	[bgPhoto] [bigint] NOT NULL CONSTRAINT [DF__tbl_Sytem__bgPho__5E60B798]  DEFAULT (''),
	[bgTile] [varchar](12) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_SystemStyle_bgTile]  DEFAULT (''),
	[bgPosition] [varchar](15) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_SystemStyle_bgPosition]  DEFAULT (''),
	[isFixed] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_SystemStyle_isFixed]  DEFAULT (''),
	[BorderColor] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Sytem__Borde__5F54DBD1]  DEFAULT (''),
	[borderStyle] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Sytem__borde__6049000A]  DEFAULT (''),
	[borderWidth] [int] NOT NULL CONSTRAINT [DF_tbl_SystemStyle_borderWidth]  DEFAULT ((0)),
	[titleBGColor] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Sytem__title__613D2443]  DEFAULT (''),
	[titleBGPhoto] [bigint] NOT NULL CONSTRAINT [DF__tbl_Sytem__title__6231487C]  DEFAULT ((0)),
	[titleBGPhotoTran] [int] NOT NULL CONSTRAINT [DF__tbl_Sytem__title__63256CB5]  DEFAULT ((0)),
	[titleFontColor] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Sytem__title__641990EE]  DEFAULT (''),
	[contentBGColor] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Sytem__conte__650DB527]  DEFAULT (''),
	[contentBGPhoto] [bigint] NOT NULL CONSTRAINT [DF__tbl_Sytem__conte__6601D960]  DEFAULT ((0)),
	[contentFontColor] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Sytem__conte__66F5FD99]  DEFAULT (''),
	[contentLinkColor] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Sytem__conte__67EA21D2]  DEFAULT (''),
	[contentLinkActive] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Sytem__conte__68DE460B]  DEFAULT (''),
	[contentBGPhotoTran] [int] NOT NULL CONSTRAINT [DF_tbl_SystemStyle_contentBGPhotoTran]  DEFAULT ((0)),
	[mouseStyle] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Sytem__mouse__69D26A44]  DEFAULT (''),
	[addTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_Sytem__addTi__6AC68E7D]  DEFAULT (getdate())
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_systemStyleClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_systemStyleClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_systemUser]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_systemUser](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](16) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[password] [varchar](32) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[role] [int] NOT NULL CONSTRAINT [DF__tbl_syste__power__09C96D33]  DEFAULT ((0)),
	[trueName] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[nickName] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_systemUser_nickName]  DEFAULT (''),
	[deptName] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_systemUser_deptName]  DEFAULT (''),
	[nposition] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_systemUser_nposition]  DEFAULT (''),
	[contact] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_systemUser_contact]  DEFAULT (''),
	[addTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_systemUser_addTime]  DEFAULT (getdate()),
	[note] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_system__note__0ABD916C]  DEFAULT (''),
	[state] [int] NOT NULL CONSTRAINT [DF__tbl_syste__state__0BB1B5A5]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_SystemUserLog]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_SystemUserLog](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userID] [int] NOT NULL CONSTRAINT [DF__tbl_Syste__userI__7E57BA87]  DEFAULT ((0)),
	[errorClass] [int] NOT NULL CONSTRAINT [DF__tbl_Syste__error__7F4BDEC0]  DEFAULT ((0)),
	[errorMessage] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_Syste__error__004002F9]  DEFAULT (''),
	[loginTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_Syste__login__01342732]  DEFAULT (getdate()),
	[IP] [varchar](20) COLLATE Chinese_PRC_CI_AS NULL CONSTRAINT [DF__tbl_SystemUs__IP__02284B6B]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_topPerson]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_topPerson](
	[userID] [bigint] NOT NULL,
	[orderNumber] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_topSubZone]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_topSubZone](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[zoneID] [int] NOT NULL DEFAULT ((0)),
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[num] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_topUserPhoto]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_topUserPhoto](
	[photoID] [bigint] NOT NULL,
	[orderNumber] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_topZone]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_topZone](
	[zoneID] [int] NOT NULL,
	[orderNumber] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_user]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_user](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[Name] [varchar](16) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[password] [varchar](32) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[sex] [int] NOT NULL CONSTRAINT [DF_tbl_user_sex]  DEFAULT ((0)),
	[email] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_user__email__214BF109]  DEFAULT (''),
	[nickName] [varchar](16) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_user__nickNa__22401542]  DEFAULT (''),
	[photo] [bigint] NOT NULL CONSTRAINT [DF_tbl_user_photo]  DEFAULT ((0)),
	[photo2] [bigint] NOT NULL   DEFAULT ((0)),
	[photo3] [bigint] NOT NULL   DEFAULT ((0)),
	[userClass] [int] NOT NULL CONSTRAINT [DF__tbl_user__userCl__2334397B]  DEFAULT ((0)),
	[regionID] [int] NOT NULL CONSTRAINT [DF_tbl_user_regionID]  DEFAULT ((0)),
	[provinceID] [int] NOT NULL CONSTRAINT [DF__tbl_user__provin__24285DB4]  DEFAULT ((0)),
	[cityID] [int] NOT NULL CONSTRAINT [DF__tbl_user__cityID__251C81ED]  DEFAULT ((0)),
	[addFrieldClass] [int] NOT NULL CONSTRAINT [DF_tbl_user_addFrield]  DEFAULT ((0)),
	[reClass] [int] NOT NULL CONSTRAINT [DF_tbl_user_reClass]  DEFAULT ((0)),
	[ip] [varchar](16) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_user_ip]  DEFAULT (''),
	[countryID] [int] NOT NULL CONSTRAINT [DF__tbl_user__countr__2610A626]  DEFAULT ((0)),
	[regTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_user_regTime]  DEFAULT (getdate()),
	[state] [int] NOT NULL CONSTRAINT [DF_tbl_user_state]  DEFAULT ((0)),
	[pass] [int] NOT NULL DEFAULT ((0)),
	[adminID] [int] NOT NULL DEFAULT ((0)),
	[callNote] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[UserRate] [int] NOT NULL DEFAULT ((0)),
	[IsCs] [int] NOT NULL CONSTRAINT [DF__tbl_user__IsCs__1CBC4616]  DEFAULT ((1)),
	[Question] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[Key] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_User_Commend_Area]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_User_Commend_Area](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[UserId] [bigint] NOT NULL DEFAULT ((0)),
	[AreaName] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[RegionId] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('0'),
	[PhotoId] [bigint] NOT NULL DEFAULT ((0)),
	[Address] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[Feedback] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[SysCommendAreaId] [bigint] NOT NULL DEFAULT ((0)),
	[State] [int] NOT NULL DEFAULT ((0)),
	[PostTime] [datetime] NOT NULL DEFAULT (getdate()),
	[AuditingTime] [datetime] NOT NULL DEFAULT (getdate()),
	[AuditingAdminId] [bigint] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

EXEC dbo.sp_addextendedproperty N'MS_Description', N'0：待审核，1：审核通过，-1：审核不通过' ,N'user', N'dbo', N'TABLE', N'tbl_User_Commend_Area', @level2type=N'COLUMN', @level2name=N'State'


/****** 对象:  Table [dbo].[tbl_User_Commend_Restaurant]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_User_Commend_Restaurant](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[UserId] [bigint] NOT NULL DEFAULT ((0)),
	[RestName] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[ContactTel] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[Address] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[ContactPerson] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[DeliveryInfo] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[MultipleShopInfo] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[Feedback] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[SysCommendRestId] [bigint] NOT NULL DEFAULT ((0)),
	[State] [int] NOT NULL DEFAULT ((0)),
	[PostTime] [datetime] NOT NULL DEFAULT (getdate()),
	[AuditingTime] [datetime] NOT NULL DEFAULT (getdate()),
	[AuditingAdminId] [bigint] NOT NULL DEFAULT ((0)),
	[Remark] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_User_Commend_Restaurant_Remark]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

EXEC dbo.sp_addextendedproperty N'MS_Description', N'0：待审核，1：审核通过，-1：审核不通过' ,N'user', N'dbo', N'TABLE', N'tbl_User_Commend_Restaurant', @level2type=N'COLUMN', @level2name=N'State'


/****** 对象:  Table [dbo].[tbl_userAddress]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userAddress](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL DEFAULT ((0)),
	[addressClass] [int] NOT NULL DEFAULT ((0)),
	[address] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[note] [varchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[regionID] [int] NOT NULL DEFAULT ((0)),
	[zoneID] [int] NOT NULL DEFAULT ((0)),
	[areaID] [int] NOT NULL DEFAULT ((0)),
	[ContactPerson] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[ContactPhone] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[ContactMobile] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[PostTime] [datetime] NOT NULL DEFAULT (getdate()),
	[TypeName] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userClass](
	[id] [int] NOT NULL,
	[name] [varchar](15) COLLATE Chinese_PRC_CI_AS NULL,
	[note] [varchar](50) COLLATE Chinese_PRC_CI_AS NULL CONSTRAINT [DF__tbl_userCl__note__78D3EB5B]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userComplain]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userComplain](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[restID] [bigint] NOT NULL DEFAULT ((0)),
	[classID] [int] NOT NULL DEFAULT ((0)),
	[userID] [bigint] NOT NULL DEFAULT ((0)),
	[title] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[content] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[postTime] [datetime] NOT NULL DEFAULT (getdate()),
	[state] [int] NOT NULL DEFAULT ((0)),
	[isDelete] [int] NOT NULL DEFAULT ((0)),
	[ClassName] [varchar](255) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[OrderId] [bigint] NOT NULL DEFAULT ((0)),
	[UserEmail] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[TrackLog] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userDetail]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userDetail](
	[Bid] [bigint] IDENTITY(1,1) NOT NULL,
	[id] [bigint] NOT NULL,
	[trueName] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userD__trueN__07020F21]  DEFAULT (''),
	[school] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userDetail_school]  DEFAULT (''),
	[speciality] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userDetail_speciality]  DEFAULT (''),
	[enrollmentTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_userDetail_enrollmentTime]  DEFAULT (getdate()),
	[graduateTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_userDetail_graduateTime]  DEFAULT (getdate()),
	[company] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userDetail_company]  DEFAULT (''),
	[workContent] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userDetail_workContent]  DEFAULT (''),
	[duty] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userDetail_duty]  DEFAULT (''),
	[privacyClass] [int] NOT NULL CONSTRAINT [DF_tbl_userDetail_privacyClass]  DEFAULT ((0)),
	[cardID] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userDetail_cardID]  DEFAULT (''),
	[phone] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userD__phone__07F6335A]  DEFAULT (''),
	[mobile] [varchar](15) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userD__mobil__08EA5793]  DEFAULT (''),
	[fax] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userDet__fax__09DE7BCC]  DEFAULT (''),
	[msn] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userDet__msn__0BC6C43E]  DEFAULT (''),
	[qq] [varchar](15) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userDeta__qq__0CBAE877]  DEFAULT (''),
	[netContact] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userD__netCo__0DAF0CB0]  DEFAULT (''),
	[birthDay] [datetime] NOT NULL CONSTRAINT [DF_tbl_userDetail_birthDay]  DEFAULT (getdate()),
	[address] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userD__addre__0EA330E9]  DEFAULT (''),
	[postcode] [varchar](6) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userDetail_postcode]  DEFAULT ('0'),
	[question] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userD__quest__0F975522]  DEFAULT (''),
	[answer] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userD__answe__108B795B]  DEFAULT (''),
	[interest] [varchar](50) NOT NULL CONSTRAINT [DF_tbl_userDetail_interest]  DEFAULT (''),
	[smoking] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userDetail_smoking]  DEFAULT (''),
	[drinking] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userDetail_drinking]  DEFAULT (''),
	[faith] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userDetail_faith]  DEFAULT (''),
	[note] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userDe__note__117F9D94]  DEFAULT (''),
	[browseAmount] [bigint] NOT NULL CONSTRAINT [DF_tbl_userDetail_browseAmount]  DEFAULT ((0)),
	[uploadSize] [bigint] NOT NULL CONSTRAINT [DF_tbl_userDetail_uploadSize]  DEFAULT ((0)),
	[MarryState] [smallint] NOT NULL CONSTRAINT [DF_tbl_userDetail_isMarry]  DEFAULT ((0)),
	[frieldTarget] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userDetail_frieldTarget]  DEFAULT (''),
	[spaceName] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userDetail_blogName]  DEFAULT (''),
	[myExercise] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userD__myExe__33EB5ADF]  DEFAULT (''),
	[myPlay] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userD__myPla__34DF7F18]  DEFAULT (''),
	[myTour] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userD__myTou__35D3A351]  DEFAULT (''),
	[myMusics] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userD__myMus__61B2258F]  DEFAULT (''),
	[accountName] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userD__accou__42B7D1CC]  DEFAULT (''),
	[bankName] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userD__bankN__43ABF605]  DEFAULT (''),
	[account] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userD__accou__44A01A3E]  DEFAULT (''),
	[OpenBank] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userD__OpenB__45943E77]  DEFAULT ('')
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userFavorite]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userFavorite](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL,
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_userF__class__68536ACF]  DEFAULT ((0)),
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userFa__name__69478F08]  DEFAULT (''),
	[restID] [int] NOT NULL CONSTRAINT [DF_tbl_userFavorite_restID]  DEFAULT ((0)),
	[url] [varchar](150) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userFav__url__6A3BB341]  DEFAULT (''),
	[addTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_userF__addTi__6B2FD77A]  DEFAULT (getdate())
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userHistory]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_userHistory](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL,
	[operation] [text] COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[date_time] [datetime] NOT NULL DEFAULT (getdate())
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_userIntegral]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userIntegral](
    [ID] [bigint] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL,
	[integral] [bigint] NOT NULL CONSTRAINT [DF__tbl_userI__integ__7E8CC4B1]  DEFAULT ((0)),
	[VCode] [varchar](32) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userIntegral_VCode]  DEFAULT (''),
	[expendIntegral] [bigint] NOT NULL CONSTRAINT [DF__tbl_userI__expen__3AF84B21]  DEFAULT ((0)),
	[spreadIntegral] [bigint] NOT NULL CONSTRAINT [DF__tbl_userI__sprea__3BEC6F5A]  DEFAULT ((0)),
	[usedIntegral] [bigint] NOT NULL default ((0)),
	[leaveAmount] [bigint] NOT NULL default ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userIntegralDetail]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_userIntegralDetail](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_userI__userI__18E19391]  DEFAULT ((0)),
	[source] [int] NOT NULL CONSTRAINT [DF__tbl_userI__sourc__19D5B7CA]  DEFAULT ((0)),
	[amount] [bigint] NOT NULL CONSTRAINT [DF__tbl_userI__amoun__1AC9DC03]  DEFAULT ((0)),
	[note] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userIn__note__1BBE003C]  DEFAULT (''),
	[getTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_userIntegralDetail_getTime]  DEFAULT (getdate()),
	[orderID] [bigint] NOT NULL CONSTRAINT [DF_tbl_userIntegralDetail_orderID]  DEFAULT ((0)),
	[Adminid] [int] NOT NULL CONSTRAINT [DF__tbl_userI__Admin__425A411E]  DEFAULT ((0)),
	[leaveAmount] [bigint] NOT NULL default ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_userIP]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userIP](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_userI__userI__7B905C75]  DEFAULT ((0)),
	[IP] [varchar](16) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userIP__IP__7C8480AE]  DEFAULT (''),
	[loginTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_userI__login__7D78A4E7]  DEFAULT (getdate())
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userLeaveBoard]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userLeaveBoard](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[title] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userLeaveBoard_title]  DEFAULT (''),
	[postTime] [datetime] NOT NULL DEFAULT (getdate()),
	[userName] [varchar](20) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('0'),
	[postUserID] [bigint] NOT NULL DEFAULT ((0)),
	[class] [int] NOT NULL DEFAULT ((0)),
	[photoID] [bigint] NOT NULL DEFAULT ((0)),
	[userID] [bigint] NOT NULL DEFAULT ((0)),
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[isDelete] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userLoginLog]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userLoginLog](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userName] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userL__userI__00551192]  DEFAULT ((0)),
	[errorClass] [int] NOT NULL CONSTRAINT [DF__tbl_userL__error__014935CB]  DEFAULT ((0)),
	[errorMessage] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userL__error__023D5A04]  DEFAULT (''),
	[loginTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_userL__login__03317E3D]  DEFAULT (getdate()),
	[IP] [varchar](16) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userLogi__IP__0425A276]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userMapInfo]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userMapInfo](
	[userID] [bigint] NOT NULL,
	[mapCity] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT ('beijing'),
	[mapX] [bigint] NOT NULL DEFAULT ((0)),
	[mapY] [bigint] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userOrderRate]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userOrderRate](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[RestId] [bigint] NOT NULL DEFAULT ((0)),
	[UserId] [bigint] NOT NULL DEFAULT ((0)),
	[OrderId] [bigint] NOT NULL DEFAULT ((0)),
	[UserEmail] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[Remark] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[UpdateTime] [datetime] NOT NULL DEFAULT (getdate()),
	[IsDelete] [int] NOT NULL DEFAULT ((0)),
	[Amount] [int] NOT NULL DEFAULT ((0)),
	[nickname] [varchar](100) COLLATE Chinese_PRC_CI_AS NULL CONSTRAINT [DF_tbl_userOrderRate_nickname]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userPhoto]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userPhoto](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[label] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userPhoto_label]  DEFAULT (''),
	[name] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_userPhoto_name]  DEFAULT (''),
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_userP__userI__2A01FDF2]  DEFAULT ((0)),
	[classID] [bigint] NOT NULL CONSTRAINT [DF__tbl_userP__class__2AF6222B]  DEFAULT ((0)),
	[note] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userPh__note__2BEA4664]  DEFAULT (''),
	[smallPhoto] [bigint] NOT NULL CONSTRAINT [DF__tbl_userP__small__2CDE6A9D]  DEFAULT ((0)),
	[photo] [bigint] NOT NULL CONSTRAINT [DF__tbl_userP__photo__2DD28ED6]  DEFAULT ((0)),
	[uploadTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_userP__uploa__2EC6B30F]  DEFAULT (getdate())
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userPhotoClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userPhotoClass](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL,
	[name] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[note] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userPh__note__2883C9D4]  DEFAULT (''),
	[photo] [bigint] NOT NULL CONSTRAINT [DF__tbl_userP__photo__2977EE0D]  DEFAULT ((0)),
	[createTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_userP__creat__2A6C1246]  DEFAULT (getdate()),
	[CreateType] [smallint] NOT NULL CONSTRAINT [DF_tbl_userPhotoClass_CreateType]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userPlan]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userPlan](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[content] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[Detail] [text] COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[userID] [bigint] NOT NULL DEFAULT ((0)),
	[startTime] [datetime] NOT NULL DEFAULT (getdate()),
	[endTime] [datetime] NOT NULL DEFAULT (getdate()),
	[isBusy] [smallint] NOT NULL DEFAULT ((0)),
	[isAwoke] [smallint] NOT NULL DEFAULT ((0)),
	[awokeTime] [datetime] NOT NULL DEFAULT (getdate()),
	[isAllDay] [smallint] NOT NULL DEFAULT ((0)),
	[isOpen] [smallint] NOT NULL DEFAULT ((0)),
	[state] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_UserQuestionClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_UserQuestionClass](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[Position] [int] NOT NULL DEFAULT ((0)),
	[IsPublic] [int] NOT NULL DEFAULT ((0)),
	[IsDelete] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

EXEC dbo.sp_addextendedproperty N'MS_Description', N'默认为0，保留字段，方便以后增加排序功能' ,N'user', N'dbo', N'TABLE', N'tbl_UserQuestionClass', @level2type=N'COLUMN', @level2name=N'Position'


/****** 对象:  Table [dbo].[tbl_UserQuestionContent]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_UserQuestionContent](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[TopicId] [bigint] NOT NULL DEFAULT ((0)),
	[SourceId] [int] NOT NULL DEFAULT ((0)),
	[Content] [varchar](8000) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[PostTime] [datetime] NOT NULL DEFAULT (getdate()),
	[adminID] [bigint] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

EXEC dbo.sp_addextendedproperty N'MS_Description', N'0：用户问题，1：客服回复' ,N'user', N'dbo', N'TABLE', N'tbl_UserQuestionContent', @level2type=N'COLUMN', @level2name=N'SourceId'


/****** 对象:  Table [dbo].[tbl_UserQuestionTopic]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_UserQuestionTopic](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[Title] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[UserId] [bigint] NOT NULL DEFAULT ((0)),
	[ClassId] [int] NOT NULL DEFAULT ((0)),
	[PostTime] [datetime] NOT NULL DEFAULT (getdate()),
	[UpdateTime] [datetime] NOT NULL DEFAULT (getdate()),
	[State] [int] NOT NULL DEFAULT ((0)),
	[IsPublic] [int] NOT NULL DEFAULT ((0)),
	[IsDelete] [int] NOT NULL DEFAULT ((0)),
	[Remark] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[adminID] [bigint] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

EXEC dbo.sp_addextendedproperty N'MS_Description', N'0：未回复，1：已回复' ,N'user', N'dbo', N'TABLE', N'tbl_UserQuestionTopic', @level2type=N'COLUMN', @level2name=N'State'


EXEC dbo.sp_addextendedproperty N'MS_Description', N'作废原因' ,N'user', N'dbo', N'TABLE', N'tbl_UserQuestionTopic', @level2type=N'COLUMN', @level2name=N'Remark'


/****** 对象:  Table [dbo].[tbl_userRegError]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userRegError](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[sql] [text] COLLATE Chinese_PRC_CI_AS NULL CONSTRAINT [DF__tbl_userReg__sql__4959E263]  DEFAULT (''),
	[ip] [varchar](16) COLLATE Chinese_PRC_CI_AS NULL CONSTRAINT [DF__tbl_userRegE__ip__4A4E069C]  DEFAULT (''),
	[errorCode] [int] NULL CONSTRAINT [DF__tbl_userR__error__4B422AD5]  DEFAULT ((0)),
	[errorTime] [datetime] NOT NULL CONSTRAINT [DF_tbl_userRegError_errorTime]  DEFAULT (getdate())
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userRestIntegral]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_userRestIntegral](
	[userID] [bigint] NOT NULL,
	[RestID] [bigint] NOT NULL DEFAULT ((0)),
	[integral] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


/****** 对象:  Table [dbo].[tbl_userRestPact]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userRestPact](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL,
	[restID] [int] NOT NULL,
	[rDate] [datetime] NOT NULL CONSTRAINT [DF__tbl_userR__rDate__532343BF]  DEFAULT (getdate()),
	[pactTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_userR__pactT__541767F8]  DEFAULT (getdate()),
	[revenueP] [int] NOT NULL CONSTRAINT [DF__tbl_userR__reven__550B8C31]  DEFAULT ((0)),
	[costP] [int] NOT NULL CONSTRAINT [DF__tbl_userR__costP__55FFB06A]  DEFAULT ((0)),
	[note] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userRe__note__56F3D4A3]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userSign]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userSign](
	[userID] [bigint] NOT NULL DEFAULT ((0)),
	[sign] [varchar](100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT (''),
	[note] [varchar](200) COLLATE Chinese_PRC_CI_AS NULL DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userSpaceModel]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userSpaceModel](
	[userID] [bigint] NOT NULL,
	[modelID] [int] NOT NULL DEFAULT ((0)),
	[modelTitle] [varchar](30) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT (''),
	[modelPosition] [int] NOT NULL DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_userUploadFile]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_userUploadFile](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_userU__userI__470850F4]  DEFAULT ((0)),
	[filePath] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userU__fileP__47FC752D]  DEFAULT (''),
	[fileSize] [bigint] NOT NULL CONSTRAINT [DF_tbl_userUploadFile_fileSize]  DEFAULT ((0)),
	[domain] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_userU__domai__48F09966]  DEFAULT (''),
	[uploadTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_userU__uploa__49E4BD9F]  DEFAULT (getdate()),
	[isDelete] [int] NOT NULL CONSTRAINT [DF_tbl_userUploadFile_isDelete]  DEFAULT ((0))
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_wantAd]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_wantAd](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_wantA__restI__253C7D7E]  DEFAULT ((0)),
	[userID] [bigint] NOT NULL CONSTRAINT [DF__tbl_wantA__userI__2630A1B7]  DEFAULT ((0)),
	[title] [varchar](100) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_wantA__conte__2724C5F0]  DEFAULT (''),
	[postTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_wantA__postT__2818EA29]  DEFAULT (getdate()),
	[startTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_wantA__start__290D0E62]  DEFAULT (getdate()),
	[endTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_wantA__endTi__2A01329B]  DEFAULT (getdate()),
	[isPost] [int] NOT NULL CONSTRAINT [DF__tbl_wantA__isPos__2AF556D4]  DEFAULT ((1)),
	[classID] [int] NOT NULL CONSTRAINT [DF__tbl_wantA__class__2BE97B0D]  DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_wantAdClass]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_wantAdClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[note] [varchar](200) COLLATE Chinese_PRC_CI_AS NULL CONSTRAINT [DF__tbl_wantAd__note__3296789C]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_webMessage]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_webMessage](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[receiveUserID] [bigint] NOT NULL,
	[sendUserID] [bigint] NOT NULL,
	[title] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
	[content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL,
	[sendTime] [datetime] NOT NULL DEFAULT (getdate()),
	[isRead] [bit] NOT NULL DEFAULT ((0)),
	[state] [int] NOT NULL DEFAULT ((0)),
	[senderState] [int] NOT NULL CONSTRAINT [DF_tbl_webMessage_senderState]  DEFAULT ((0))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_weekTop10]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_weekTop10](
	[id] [int] NOT NULL CONSTRAINT [DF__tbl_weekTop1__id__392E6792]  DEFAULT ((1)),
	[restID] [int] NOT NULL CONSTRAINT [DF__tbl_weekT__restI__3A228BCB]  DEFAULT ((0)),
	[addTime] [datetime] NOT NULL CONSTRAINT [DF__tbl_weekT__addTi__3B16B004]  DEFAULT (getdate()),
	[addUserID] [int] NOT NULL CONSTRAINT [DF__tbl_weekT__addUs__3C0AD43D]  DEFAULT ((0)),
	[color] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_weekTop10_color]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF

/****** 对象:  Table [dbo].[tbl_zone]    脚本日期: 02/01/2010 14:32:19 ******/
go
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

SET ANSI_PADDING ON

CREATE TABLE [dbo].[tbl_zone](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [varchar](40) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_zone__name__6383C8BA]  DEFAULT (''),
	[provinceID] [int] NOT NULL CONSTRAINT [DF__tbl_zone__provin__6477ECF3]  DEFAULT ((0)),
	[cityID] [int] NOT NULL CONSTRAINT [DF__tbl_zone__cityID__656C112C]  DEFAULT ((0)),
	[regionID] [int] NOT NULL CONSTRAINT [DF__tbl_zone__region__66603565]  DEFAULT ((0)),
	[note] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF__tbl_zone__note__6754599E]  DEFAULT (''),
	[color] [varchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_tbl_zone_color]  DEFAULT ('')
) ON [PRIMARY]


SET ANSI_PADDING OFF


go
/******************************************修改***************************************/
if exists (select 1
            from  sysobjects
           where  id = object_id('tbl_RestIntegralScale')
            and   type = 'U')
   drop table tbl_RestIntegralScale
go

/*==============================================================*/
/* Table: tbl_RestIntegralScale                                 */
/*==============================================================*/
create table [dbo].tbl_RestIntegralScale (
   ID                   bigint       IDENTITY(1,1)        not null,
   RestId               bigint               not null default 0,
   IntegralCount        bigint               not null default 0,
   constraint PK_TBL_RESTINTEGRALSCALE primary key (ID)
)
go
if exists (select 1
            from  sysobjects
           where  id = object_id('tbl_RestIntegral')
            and   type = 'U')
   drop table tbl_RestIntegral
go

/*==============================================================*/
/* Table: tbl_RestIntegral                                      */
/*==============================================================*/
create table [dbo].tbl_RestIntegral (
   ID                   bigint     IDENTITY(1,1)           not null,
   RestId               bigint               not null default 0,
   RuleId               int                  not null default 0,
   Integral             bigint               not null default 0,
   constraint PK_TBL_RESTINTEGRAL primary key (ID)
)
go




SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[tbl_RestTemplate](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[fileName] [varchar](255)  not NULL DEFAULT (('Default'))
) ON [PRIMARY]

go



/****** 对象:  Table [dbo].[tbl_OrderUserInfo]    脚本日期: 01/10/2011 17:00:06 ******/
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON
CREATE TABLE [dbo].[tbl_OrderUserInfo](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[mobile] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL  DEFAULT (''),
	[phone] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL   DEFAULT (''),
	[name] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL   DEFAULT (''),
	[address] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL  DEFAULT (''),
	[areaId] [int] NOT NULL  DEFAULT ((0))
) ON [PRIMARY]

GO