/****** Object:  Table [dbo].[iwms_uploadLog]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_uploadLog](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userid] [int] NULL,
	[uploadDate] [datetime] NULL,
	[num] [int] NULL,
 CONSTRAINT [PK_uploadLog] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_upload]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_upload](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[path] [nvarchar](255) NULL,
	[rId] [int] NULL,
	[rType] [bit] NULL,
 CONSTRAINT [PK_upload] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_topic]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_topic](
	[topicid] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
	[topic] [nvarchar](200) NULL,
	[topicTime] [datetime] NULL,
	[newsNum] [int] NULL,
	[styleId] [int] NULL,
	[pid] [int] NULL,
	[child] [int] NULL,
	[discription] [ntext] NULL,
	[tempId] [int] NULL,
	[pagesize] [int] NULL,
	[sDir] [nvarchar](50) NULL,
 CONSTRAINT [PK_Atopic] PRIMARY KEY CLUSTERED 
(
	[topicid] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_template]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_template](
	[templateid] [int] IDENTITY(1,1) NOT NULL,
	[tName] [nvarchar](50) NULL,
	[tSort] [nvarchar](50) NULL,
	[tFile] [nvarchar](255) NULL,
	[tDefault] [bit] NULL,
	[cType] [int] NULL,
 CONSTRAINT [PK_aTemplate_nc] PRIMARY KEY CLUSTERED 
(
	[templateid] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_style]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_style](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](50) NULL,
	[isdefault] [bit] NULL,
	[path] [nvarchar](255) NULL,
	[picsAndCss] [text] NULL,
 CONSTRAINT [PK_style] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_Spage]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_Spage](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](100) NULL,
	[content] [ntext] NULL,
 CONSTRAINT [PK_iwms_Spage] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_softLink]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_softLink](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[softId] [int] NULL,
	[orderid] [int] NULL,
	[pname] [nvarchar](20) NULL,
	[url] [nvarchar](255) NULL,
	[pLimit] [int] NULL,
 CONSTRAINT [PK_iwms_softLink] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [softId] ON [dbo].[iwms_softLink] 
(
	[softId] ASC,
	[orderid] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_soft]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_soft](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[newsId] [int] NULL,
	[filesize] [nvarchar](10) NULL,
	[Enviroment] [nvarchar](255) NULL,
	[License] [int] NULL,
	[Demo] [nvarchar](255) NULL,
 CONSTRAINT [PK_iwms_soft] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [newsId] ON [dbo].[iwms_soft] 
(
	[newsId] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_signIn]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_signIn](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[articleId] [int] NULL,
	[senderId] [int] NULL,
	[receiverId] [int] NULL,
	[appraisal] [nvarchar](255) NULL,
	[seen] [bit] NULL,
	[signDate] [datetime] NULL,
 CONSTRAINT [PK_aSignIn] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [articleid] ON [dbo].[iwms_signIn] 
(
	[articleId] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [receiverId] ON [dbo].[iwms_signIn] 
(
	[receiverId] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [senderId] ON [dbo].[iwms_signIn] 
(
	[senderId] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_remark_nc]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_remark_nc](
	[remarkid] [int] IDENTITY(1,1) NOT NULL,
	[articleid] [int] NULL,
	[username] [nvarchar](50) NULL,
	[body] [ntext] NULL,
	[face] [int] NULL,
	[dateAndTime] [datetime] NULL,
	[ip] [nvarchar](20) NULL,
	[memberId] [int] NULL,
	[pid] [int] NULL,
 CONSTRAINT [PK_remark_nc] PRIMARY KEY CLUSTERED 
(
	[remarkid] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_remark]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_remark](
	[remarkID] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
	[articleID] [int] NULL,
	[username] [nvarchar](50) NULL,
	[body] [ntext] NULL,
	[face] [int] NULL,
	[dateAndTime] [datetime] NULL,
	[ip] [nvarchar](20) NULL,
	[memberId] [int] NULL,
	[pid] [int] NULL,
	[support] [int] NULL,
	[discourage] [int] NULL,
 CONSTRAINT [PK_remark] PRIMARY KEY CLUSTERED 
(
	[remarkID] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ip] ON [dbo].[iwms_remark] 
(
	[ip] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [support] ON [dbo].[iwms_remark] 
(
	[support] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_relateNews]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_relateNews](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[keyid] [int] NULL,
	[articleid] [int] NULL,
 CONSTRAINT [PK_aRelateNews] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [articleid] ON [dbo].[iwms_relateNews] 
(
	[articleid] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [keyId] ON [dbo].[iwms_relateNews] 
(
	[keyid] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_relateKey]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_relateKey](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](100) NULL,
	[num] [int] NULL,
	[hits] [int] NULL,
 CONSTRAINT [PK_aRelateKey] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [name] ON [dbo].[iwms_relateKey] 
(
	[name] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_postSort]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_postSort](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](250) NULL,
	[intro] [ntext] NULL,
	[postNum] [int] NULL,
	[postRootNum] [int] NULL,
	[orderId] [int] NULL,
 CONSTRAINT [PK_iwms_postSort] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [orderId] ON [dbo].[iwms_postSort] 
(
	[orderId] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_postFix]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_postFix](
	[fid] [int] IDENTITY(1,1) NOT NULL,
	[postId] [int] NULL,
	[sortId] [int] NULL,
 CONSTRAINT [PK_iwms_postFix] PRIMARY KEY CLUSTERED 
(
	[fid] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [postId] ON [dbo].[iwms_postFix] 
(
	[postId] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [sortId] ON [dbo].[iwms_postFix] 
(
	[sortId] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_post]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_post](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](250) NULL,
	[content] [ntext] NULL,
	[sortId] [int] NULL,
	[postDate] [datetime] NULL,
	[rootId] [int] NULL,
	[pid] [int] NULL,
	[ppath] [ntext] NULL,
	[depth] [int] NULL,
	[replyNum] [int] NULL,
	[replyDate] [datetime] NULL,
	[ip] [nvarchar](15) NULL,
	[support] [int] NULL,
	[discourage] [int] NULL,
	[hits] [int] NULL,
	[memberId] [int] NULL,
 CONSTRAINT [PK_iwms_post] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [hits] ON [dbo].[iwms_post] 
(
	[hits] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [memberId] ON [dbo].[iwms_post] 
(
	[memberId] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [pId] ON [dbo].[iwms_post] 
(
	[pid] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [postDate] ON [dbo].[iwms_post] 
(
	[postDate] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [replyDate] ON [dbo].[iwms_post] 
(
	[replyDate] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [replyNum] ON [dbo].[iwms_post] 
(
	[replyNum] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [rootId] ON [dbo].[iwms_post] 
(
	[rootId] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [sortId] ON [dbo].[iwms_post] 
(
	[sortId] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_poll]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_poll](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](255) NULL,
	[vote] [ntext] NULL,
	[multiple] [bit] NULL,
	[inIndex] [bit] NULL,
	[maxCheck] [int] NULL,
	[items] [ntext] NULL,
 CONSTRAINT [PK_aPoll] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_paid]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_paid](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[articleid] [int] NULL,
	[memberid] [int] NULL,
	[paySum] [int] NULL,
	[payDate] [datetime] NULL,
 CONSTRAINT [PK_aPaid] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [memberid] ON [dbo].[iwms_paid] 
(
	[memberid] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [payDate] ON [dbo].[iwms_paid] 
(
	[payDate] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_pages]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_pages](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[newsid] [int] NULL,
	[pageIndex] [int] NULL,
	[pageContent] [ntext] NULL,
 CONSTRAINT [PK_aPages] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [newsid] ON [dbo].[iwms_pages] 
(
	[newsid] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [pageIndex] ON [dbo].[iwms_pages] 
(
	[pageIndex] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_news]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_news](
	[articleid] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
	[content] [ntext] NULL,
	[title] [nvarchar](200) NULL,
	[classid] [int] NULL,
	[Nkey] [nvarchar](255) NULL,
	[hits] [int] NOT NULL,
	[dateandtime] [datetime] NULL,
	[dayHits] [int] NULL,
	[weekHits] [int] NULL,
	[remarkNum] [int] NULL,
	[imgNews] [bit] NOT NULL,
	[titleImg] [nvarchar](200) NULL,
	[topicid] [int] NULL,
	[summary] [ntext] NULL,
	[highlight] [bit] NOT NULL,
	[permitGroups] [nvarchar](255) NULL,
	[memberid] [int] NULL,
	[checkUserid] [int] NULL,
	[aUrl] [nvarchar](255) NULL,
	[author] [nvarchar](50) NULL,
	[source] [nvarchar](50) NULL,
	[authorEmail] [nvarchar](100) NULL,
	[sourceUrl] [nvarchar](255) NULL,
	[remarkLink] [bit] NULL,
	[allowRemark] [bit] NULL,
	[outerImg] [bit] NULL,
	[price] [int] NULL,
	[markLimit] [int] NULL,
	[pageTitle] [ntext] NULL,
	[pollIds] [nvarchar](255) NULL,
	[digg] [int] NULL,
	[diggWeek] [int] NULL,
	[editor] [nvarchar](100) NULL,
 CONSTRAINT [PK_article] PRIMARY KEY CLUSTERED 
(
	[articleid] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [checkuserid] ON [dbo].[iwms_news] 
(
	[checkUserid] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [classid] ON [dbo].[iwms_news] 
(
	[classid] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [dateandtime] ON [dbo].[iwms_news] 
(
	[dateandtime] ASC,
	[articleid] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [dateandtime2] ON [dbo].[iwms_news] 
(
	[classid] ASC,
	[dateandtime] ASC,
	[articleid] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [dayhits] ON [dbo].[iwms_news] 
(
	[dayHits] ASC,
	[articleid] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [dayhits2] ON [dbo].[iwms_news] 
(
	[classid] ASC,
	[dayHits] ASC,
	[articleid] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [digg] ON [dbo].[iwms_news] 
(
	[digg] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [diggWeek] ON [dbo].[iwms_news] 
(
	[diggWeek] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [hits] ON [dbo].[iwms_news] 
(
	[hits] ASC,
	[articleid] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [hits2] ON [dbo].[iwms_news] 
(
	[classid] ASC,
	[hits] ASC,
	[articleid] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [imgnews] ON [dbo].[iwms_news] 
(
	[imgNews] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [memberid] ON [dbo].[iwms_news] 
(
	[memberid] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [title] ON [dbo].[iwms_news] 
(
	[title] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [weekhits] ON [dbo].[iwms_news] 
(
	[weekHits] ASC,
	[articleid] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [weekhits2] ON [dbo].[iwms_news] 
(
	[classid] ASC,
	[weekHits] ASC,
	[articleid] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_msg]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_msg](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[senderId] [int] NULL,
	[receiverId] [int] NULL,
	[body] [ntext] NULL,
	[sendDate] [datetime] NULL,
	[unread] [bit] NULL,
 CONSTRAINT [PK_iwms_msg] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [receiverId] ON [dbo].[iwms_msg] 
(
	[receiverId] ASC,
	[unread] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [senderId] ON [dbo].[iwms_msg] 
(
	[senderId] ASC,
	[unread] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_member_nc]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_member_nc](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](100) NULL,
	[password] [nvarchar](100) NULL,
	[email] [nvarchar](100) NULL,
	[groupid] [nvarchar](255) NULL,
	[remarks] [nvarchar](100) NULL,
	[addDate] [datetime] NULL,
	[qq] [nvarchar](20) NULL,
	[icq] [nvarchar](20) NULL,
	[msn] [nvarchar](100) NULL,
	[question] [nvarchar](255) NULL,
	[answer] [nvarchar](255) NULL,
	[male] [bit] NULL,
	[birthday] [datetime] NULL,
	[realname] [nvarchar](100) NULL,
	[country] [nvarchar](100) NULL,
	[province] [nvarchar](100) NULL,
	[city] [nvarchar](100) NULL,
	[phone] [nvarchar](100) NULL,
	[address] [nvarchar](100) NULL,
	[postcode] [nvarchar](10) NULL,
	[bloodType] [nvarchar](10) NULL,
	[job] [nvarchar](100) NULL,
	[edu] [nvarchar](100) NULL,
	[school] [nvarchar](100) NULL,
	[passDate] [datetime] NULL,
	[activeCode] [nvarchar](10) NULL,
	[hideEmail] [bit] NULL,
	[photo] [nvarchar](255) NULL,
	[introduction] [nvarchar](255) NULL,
	[rssTitle] [nvarchar](255) NULL,
	[vMoney] [int] NULL,
	[totalMark] [int] NULL,
 CONSTRAINT [PK_member_nc] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [email] ON [dbo].[iwms_member_nc] 
(
	[email] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [name] ON [dbo].[iwms_member_nc] 
(
	[name] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_member]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_member](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](100) NULL,
	[password] [nvarchar](100) NULL,
	[email] [nvarchar](100) NULL,
	[groupid] [nvarchar](255) NULL,
	[remarks] [nvarchar](100) NULL,
	[addDate] [datetime] NULL,
	[addNum] [int] NULL,
	[qq] [nvarchar](20) NULL,
	[icq] [nvarchar](20) NULL,
	[msn] [nvarchar](100) NULL,
	[question] [nvarchar](255) NULL,
	[answer] [nvarchar](255) NULL,
	[male] [bit] NULL,
	[birthday] [datetime] NULL,
	[realname] [nvarchar](100) NULL,
	[country] [nvarchar](100) NULL,
	[province] [nvarchar](100) NULL,
	[city] [nvarchar](100) NULL,
	[phone] [nvarchar](100) NULL,
	[address] [nvarchar](100) NULL,
	[postcode] [nvarchar](10) NULL,
	[bloodType] [nvarchar](2) NULL,
	[job] [nvarchar](100) NULL,
	[edu] [nvarchar](100) NULL,
	[school] [nvarchar](100) NULL,
	[hideEmail] [bit] NULL,
	[lastLog] [datetime] NULL,
	[logTimes] [int] NULL,
	[photo] [nvarchar](255) NULL,
	[introduction] [nvarchar](255) NULL,
	[rssTitle] [nvarchar](255) NULL,
	[vMoney] [int] NULL,
	[totalMark] [int] NULL,
	[nSignIn] [int] NULL,
	[addSignIn] [int] NULL,
	[expireDate] [datetime] NULL,
	[postNum] [int] NULL,
	[postRootNum] [int] NULL,
	[lastIp] [nvarchar](15) NULL,
	[gotMessage] [bit] NULL,
 CONSTRAINT [PK_member] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [email] ON [dbo].[iwms_member] 
(
	[email] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [groupid] ON [dbo].[iwms_member] 
(
	[groupid] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [name] ON [dbo].[iwms_member] 
(
	[name] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_logs]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_logs](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[memberid] [int] NULL,
	[ip] [nvarchar](20) NULL,
	[logTime] [datetime] NULL,
 CONSTRAINT [PK_aLogs] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_linkSort]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_linkSort](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](50) NULL,
 CONSTRAINT [PK_aLinkSort] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_link]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_link](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](50) NULL,
	[url] [nvarchar](255) NULL,
	[remark] [nvarchar](255) NULL,
	[logo] [nvarchar](255) NULL,
	[addDate] [datetime] NULL,
	[memberID] [int] NULL,
	[sortID] [int] NULL,
	[inIndex] [bit] NULL,
	[passed] [bit] NULL,
	[orderId] [int] NULL,
 CONSTRAINT [PK_aLink] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_key]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_key](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](50) NULL,
	[url] [nvarchar](255) NULL,
	[alt] [nvarchar](255) NULL,
 CONSTRAINT [PK_aKey] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_groups]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_groups](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](100) NULL,
	[memberNum] [int] NULL,
	[remarks] [nvarchar](100) NULL,
	[allowSorts] [ntext] NULL,
	[checkAdd] [bit] NULL,
	[uploadPerday] [int] NULL,
	[editNews] [bit] NULL,
 CONSTRAINT [PK_groups] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_gatherUserRule]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_gatherUserRule](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](100) NULL,
	[dbString] [nvarchar](255) NULL,
	[tableName] [nvarchar](100) NULL,
	[nameColumn] [nvarchar](100) NULL,
	[passwordColumn] [nvarchar](100) NULL,
	[realnameColumn] [nvarchar](100) NULL,
	[addDateColumn] [nvarchar](100) NULL,
	[birthdayColumn] [nvarchar](100) NULL,
	[maleColumn] [nvarchar](100) NULL,
	[emailColumn] [nvarchar](100) NULL,
	[qqColumn] [nvarchar](100) NULL,
	[phoneColumn] [nvarchar](100) NULL,
	[provinceColumn] [nvarchar](100) NULL,
	[cityColumn] [nvarchar](100) NULL,
	[orderColumn] [nvarchar](100) NULL,
	[orderAsc] [bit] NULL,
	[filter] [nvarchar](100) NULL,
	[passMd5] [bit] NULL,
 CONSTRAINT [PK_aGatherUserRule] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_gatherRule]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_gatherRule](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](100) NULL,
	[startUrl] [nvarchar](250) NULL,
	[sortId] [int] NULL,
	[downNum] [int] NULL,
	[downImg] [bit] NULL,
	[imgMark] [bit] NULL,
	[autoTitleImg] [bit] NULL,
	[passed] [bit] NULL,
	[titleInclude] [nvarchar](250) NULL,
	[titleExclude] [nvarchar](250) NULL,
	[inverted] [bit] NULL,
	[linkOut] [bit] NULL,
	[allowRemark] [bit] NULL,
	[rules] [image] NULL,
	[charset] [nvarchar](50) NULL,
	[contentOut] [bit] NULL,
	[proxy] [nvarchar](100) NULL,
	[proxyUsername] [nvarchar](100) NULL,
	[proxyPassword] [nvarchar](100) NULL,
	[orderId] [int] NULL,
	[checkduplicate] [bit] NULL,
	[makeSummary] [bit] NULL,
	[rRules] [image] NULL,
	[ads] [image] NULL,
 CONSTRAINT [PK_aGatherRule] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [orderId] ON [dbo].[iwms_gatherRule] 
(
	[orderId] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_gatherDbRule]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_gatherDbRule](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](100) NULL,
	[dbString] [nvarchar](255) NULL,
	[tableName] [nvarchar](100) NULL,
	[titleColumn] [nvarchar](100) NULL,
	[contentColumn] [nvarchar](100) NULL,
	[dateColumn] [nvarchar](100) NULL,
	[authorColumn] [nvarchar](100) NULL,
	[sourceColumn] [nvarchar](100) NULL,
	[hitColumn] [nvarchar](100) NULL,
	[orderColumn] [nvarchar](100) NULL,
	[gatherNum] [int] NULL,
	[pageTag] [nvarchar](100) NULL,
	[filter] [nvarchar](100) NULL,
	[orderAsc] [bit] NULL,
	[passed] [bit] NULL,
	[htmlDecode] [bit] NULL,
 CONSTRAINT [PK_aGatherDbRule] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_friends]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_friends](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userId] [int] NULL,
	[friendId] [int] NULL,
 CONSTRAINT [PK_iwms_friends] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [friendId] ON [dbo].[iwms_friends] 
(
	[friendId] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [userId] ON [dbo].[iwms_friends] 
(
	[userId] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_fixNews]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_fixNews](
	[fid] [int] IDENTITY(1,1) NOT NULL,
	[fNewsId] [int] NULL,
	[fSortId] [int] NULL,
	[fType] [int] NULL,
 CONSTRAINT [PK_iwms_fixNews] PRIMARY KEY CLUSTERED 
(
	[fid] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [fNewsId] ON [dbo].[iwms_fixNews] 
(
	[fNewsId] ASC
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [fSortId] ON [dbo].[iwms_fixNews] 
(
	[fSortId] ASC,
	[fType] ASC
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_const]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_const](
	[hitDay] [datetime] NULL,
	[hitWeek] [datetime] NULL,
	[articleNum] [int] NULL,
	[imgNewsNum] [int] NULL,
	[hiddenNum] [int] NULL,
	[memberNum] [int] NULL,
	[ncMemberNum] [int] NULL,
	[remarkNum] [int] NULL,
	[topicNum] [int] NULL,
	[ncRemarkNum] [int] NULL,
	[signInNum] [int] NULL,
	[softNum] [int] NULL,
	[ncSoftNum] [int] NULL,
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[postNum] [int] NULL,
	[postRootNum] [int] NULL,
	[ncPostNum] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_config]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_config](
	[config] [image] NULL,
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[configs] [image] NULL,
	[langBase] [image] NULL,
	[payConfig] [image] NULL,
 CONSTRAINT [PrimaryKey] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_class]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_class](
	[classID] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
	[class] [nvarchar](50) NULL,
	[orderID] [int] NULL,
	[articleNum] [int] NULL,
	[imgNewsNum] [int] NULL,
	[newsAd] [ntext] NULL,
	[headAd] [ntext] NULL,
	[logo] [ntext] NULL,
	[styleid] [int] NULL,
	[lastupdate] [datetime] NULL,
	[parentID] [int] NULL,
	[pPath] [nvarchar](255) NULL,
	[depth] [int] NULL,
	[child] [int] NULL,
	[canAdd] [bit] NULL,
	[cTempid] [int] NULL,
	[newsTempID] [int] NULL,
	[cUrl] [nvarchar](255) NULL,
	[LastNode] [bit] NULL,
	[cInBar] [bit] NULL,
	[cInNav] [bit] NULL,
	[cBindNum] [int] NULL,
	[color] [nvarchar](10) NULL,
	[newWin] [bit] NULL,
	[allowGroups] [nvarchar](255) NULL,
	[addMark] [int] NULL,
	[inLeft] [bit] NULL,
	[pageSize] [int] NULL,
	[metaDescription] [nvarchar](255) NULL,
	[sDir] [nvarchar](50) NULL,
	[rssFeed] [nvarchar](255) NULL,
	[staticPages] [int] NULL,
	[sideAd] [ntext] NULL,
	[topAd] [ntext] NULL,
	[footAd] [ntext] NULL,
	[newsSideAd] [ntext] NULL,
	[newsTopAd] [ntext] NULL,
	[newsFootAd] [ntext] NULL,
	[addVMoney] [int] NULL,
	[ipLimited] [ntext] NULL,
	[ipLimit] [bit] NULL,
	[cType] [int] NULL,
	[cssInBar] [nvarchar](20) NULL,
	[picFrame] [nvarchar](100) NULL,
	[cssFrame] [nvarchar](20) NULL,
	[metaKeyword] [nvarchar](255) NULL,
	[headlineSummary] [ntext] NULL,
	[cBindSorts] [nvarchar](255) NULL,
 CONSTRAINT [PK_Aclass] PRIMARY KEY CLUSTERED 
(
	[classID] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_charge]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_charge](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[memberid] [int] NULL,
	[chargeSum] [decimal](9, 2) NULL,
	[chargeDate] [datetime] NULL,
	[received] [bit] NULL,
 CONSTRAINT [PK_iwms_charge] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_bulletin]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_bulletin](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](50) NULL,
	[body] [ntext] NULL,
	[memberId] [int] NULL,
	[addDate] [datetime] NULL,
	[endDate] [datetime] NULL,
	[classIds] [ntext] NULL,
	[bUrl] [nvarchar](255) NULL,
 CONSTRAINT [PK_aBulletin] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_advs]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_advs](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](100) NULL,
	[code] [ntext] NULL,
	[weight] [int] NULL,
	[groupid] [int] NULL,
	[hits] [int] NULL,
 CONSTRAINT [PK_aAdvs] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_advGroup]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_advGroup](
	[gid] [int] IDENTITY(1,1) NOT NULL,
	[gname] [nvarchar](100) NULL,
	[width] [int] NULL,
	[height] [int] NULL,
	[css] [ntext] NULL,
 CONSTRAINT [PK_aAdvGroup] PRIMARY KEY CLUSTERED 
(
	[gid] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[iwms_admin]    Script Date: 11/29/2011 20:44:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[iwms_admin](
	[id] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
	[flag] [int] NULL,
	[power] [nvarchar](255) NULL,
	[memberid] [int] NULL,
	[sortPower] [ntext] NULL,
 CONSTRAINT [PK_admin] PRIMARY KEY CLUSTERED 
(
	[id] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Default [DF_admin_flag]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_admin] ADD  CONSTRAINT [DF_admin_flag]  DEFAULT ((0)) FOR [flag]
GO
/****** Object:  Default [DF__aAdvGroup__width__4BD7F309]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_advGroup] ADD  CONSTRAINT [DF__aAdvGroup__width__4BD7F309]  DEFAULT ((0)) FOR [width]
GO
/****** Object:  Default [DF__aAdvGroup__heigh__4CCC1742]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_advGroup] ADD  CONSTRAINT [DF__aAdvGroup__heigh__4CCC1742]  DEFAULT ((0)) FOR [height]
GO
/****** Object:  Default [DF__aAdvs__weight__4FA883ED]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_advs] ADD  CONSTRAINT [DF__aAdvs__weight__4FA883ED]  DEFAULT ((0)) FOR [weight]
GO
/****** Object:  Default [DF__aAdvs__groupid__509CA826]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_advs] ADD  CONSTRAINT [DF__aAdvs__groupid__509CA826]  DEFAULT ((0)) FOR [groupid]
GO
/****** Object:  Default [DF__aAdvs__hits__5190CC5F]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_advs] ADD  CONSTRAINT [DF__aAdvs__hits__5190CC5F]  DEFAULT ((0)) FOR [hits]
GO
/****** Object:  Default [DF__aBulletin__membe__08211BE3]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_bulletin] ADD  CONSTRAINT [DF__aBulletin__membe__08211BE3]  DEFAULT ((0)) FOR [memberId]
GO
/****** Object:  Default [DF__aBulletin__addDa__0915401C]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_bulletin] ADD  CONSTRAINT [DF__aBulletin__addDa__0915401C]  DEFAULT (getdate()) FOR [addDate]
GO
/****** Object:  Default [DF__aBulletin__endDa__0A096455]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_bulletin] ADD  CONSTRAINT [DF__aBulletin__endDa__0A096455]  DEFAULT (getdate()) FOR [endDate]
GO
/****** Object:  Default [DF__iwms_char__membe__062DE679]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_charge] ADD  DEFAULT ((0)) FOR [memberid]
GO
/****** Object:  Default [DF__iwms_char__charg__07220AB2]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_charge] ADD  DEFAULT ((0)) FOR [chargeSum]
GO
/****** Object:  Default [DF__iwms_char__charg__08162EEB]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_charge] ADD  DEFAULT (getdate()) FOR [chargeDate]
GO
/****** Object:  Default [DF__iwms_char__recei__090A5324]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_charge] ADD  DEFAULT ((0)) FOR [received]
GO
/****** Object:  Default [DF_Aclass_orderID]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF_Aclass_orderID]  DEFAULT ((0)) FOR [orderID]
GO
/****** Object:  Default [DF_Aclass_articleNum]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF_Aclass_articleNum]  DEFAULT ((0)) FOR [articleNum]
GO
/****** Object:  Default [DF_Aclass_imgNewsNum]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF_Aclass_imgNewsNum]  DEFAULT ((0)) FOR [imgNewsNum]
GO
/****** Object:  Default [DF__Aclass__styleid__787EE5A0]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__Aclass__styleid__787EE5A0]  DEFAULT ((0)) FOR [styleid]
GO
/****** Object:  Default [DF__Aclass__lastupda__7A672E12]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__Aclass__lastupda__7A672E12]  DEFAULT (getdate()) FOR [lastupdate]
GO
/****** Object:  Default [DF__Aclass__parentID__5A4F643B]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__Aclass__parentID__5A4F643B]  DEFAULT ((0)) FOR [parentID]
GO
/****** Object:  Default [DF__Aclass__depth__5B438874]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__Aclass__depth__5B438874]  DEFAULT ((0)) FOR [depth]
GO
/****** Object:  Default [DF__Aclass__child__5C37ACAD]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__Aclass__child__5C37ACAD]  DEFAULT ((0)) FOR [child]
GO
/****** Object:  Default [DF__Aclass__canAdd__5D2BD0E6]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__Aclass__canAdd__5D2BD0E6]  DEFAULT ((0)) FOR [canAdd]
GO
/****** Object:  Default [DF__Aclass__cTempid__5E1FF51F]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__Aclass__cTempid__5E1FF51F]  DEFAULT ((0)) FOR [cTempid]
GO
/****** Object:  Default [DF__Aclass__newsTemp__5F141958]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__Aclass__newsTemp__5F141958]  DEFAULT ((0)) FOR [newsTempID]
GO
/****** Object:  Default [DF__Aclass__LastNode__60083D91]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__Aclass__LastNode__60083D91]  DEFAULT ((0)) FOR [LastNode]
GO
/****** Object:  Default [DF__Aclass__cInBar__60FC61CA]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__Aclass__cInBar__60FC61CA]  DEFAULT ((0)) FOR [cInBar]
GO
/****** Object:  Default [DF__Aclass__cInNav__61F08603]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__Aclass__cInNav__61F08603]  DEFAULT ((0)) FOR [cInNav]
GO
/****** Object:  Default [DF__Aclass__cBindNum__63D8CE75]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__Aclass__cBindNum__63D8CE75]  DEFAULT ((0)) FOR [cBindNum]
GO
/****** Object:  Default [DF__aclass__newWin__28F7FFC9]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__aclass__newWin__28F7FFC9]  DEFAULT ((0)) FOR [newWin]
GO
/****** Object:  Default [DF__aclass__addMark__18C26357]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__aclass__addMark__18C26357]  DEFAULT ((0)) FOR [addMark]
GO
/****** Object:  Default [DF__aclass__inLeft__19B68790]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__aclass__inLeft__19B68790]  DEFAULT ((0)) FOR [inLeft]
GO
/****** Object:  Default [DF__aclass__pageSize__1AAAABC9]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__aclass__pageSize__1AAAABC9]  DEFAULT ((0)) FOR [pageSize]
GO
/****** Object:  Default [DF__aclass__staticPa__48FB865E]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__aclass__staticPa__48FB865E]  DEFAULT ((0)) FOR [staticPages]
GO
/****** Object:  Default [DF__aclass__addVMone__4773309F]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__aclass__addVMone__4773309F]  DEFAULT ((0)) FOR [addVMoney]
GO
/****** Object:  Default [DF__iwms_clas__ipLim__17793963]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__iwms_clas__ipLim__17793963]  DEFAULT ((0)) FOR [ipLimit]
GO
/****** Object:  Default [DF__iwms_clas__cType__1A55A60E]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_class] ADD  CONSTRAINT [DF__iwms_clas__cType__1A55A60E]  DEFAULT ((0)) FOR [cType]
GO
/****** Object:  Default [DF__const__hitday]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_const] ADD  CONSTRAINT [DF__const__hitday]  DEFAULT (getdate()) FOR [hitDay]
GO
/****** Object:  Default [DF__const__hitweek]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_const] ADD  CONSTRAINT [DF__const__hitweek]  DEFAULT (getdate()) FOR [hitWeek]
GO
/****** Object:  Default [DF_const_articleNum]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_const] ADD  CONSTRAINT [DF_const_articleNum]  DEFAULT ((0)) FOR [articleNum]
GO
/****** Object:  Default [DF_const_imgNewsNum]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_const] ADD  CONSTRAINT [DF_const_imgNewsNum]  DEFAULT ((0)) FOR [imgNewsNum]
GO
/****** Object:  Default [DF_const_hiddenNum]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_const] ADD  CONSTRAINT [DF_const_hiddenNum]  DEFAULT ((0)) FOR [hiddenNum]
GO
/****** Object:  Default [DF__const__memberNum__534D60F1]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_const] ADD  CONSTRAINT [DF__const__memberNum__534D60F1]  DEFAULT ((0)) FOR [memberNum]
GO
/****** Object:  Default [DF__const__ncMemberN__00200768]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_const] ADD  CONSTRAINT [DF__const__ncMemberN__00200768]  DEFAULT ((0)) FOR [ncMemberNum]
GO
/****** Object:  Default [DF__const__remarkNum__01142BA1]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_const] ADD  CONSTRAINT [DF__const__remarkNum__01142BA1]  DEFAULT ((0)) FOR [remarkNum]
GO
/****** Object:  Default [DF__const__topicNum__67A95F59]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_const] ADD  CONSTRAINT [DF__const__topicNum__67A95F59]  DEFAULT ((0)) FOR [topicNum]
GO
/****** Object:  Default [DF__const__signInNum__17CE3F1E]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_const] ADD  CONSTRAINT [DF__const__signInNum__17CE3F1E]  DEFAULT ((0)) FOR [signInNum]
GO
/****** Object:  Default [DF__iwms_cons__softN__24D33481]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_const] ADD  CONSTRAINT [DF__iwms_cons__softN__24D33481]  DEFAULT ((0)) FOR [softNum]
GO
/****** Object:  Default [DF__iwms_cons__ncSof__25C758BA]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_const] ADD  CONSTRAINT [DF__iwms_cons__ncSof__25C758BA]  DEFAULT ((0)) FOR [ncSoftNum]
GO
/****** Object:  Default [DF__iwms_cons__postN__747321A4]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_const] ADD  CONSTRAINT [DF__iwms_cons__postN__747321A4]  DEFAULT ((0)) FOR [postNum]
GO
/****** Object:  Default [DF__iwms_cons__postR__756745DD]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_const] ADD  CONSTRAINT [DF__iwms_cons__postR__756745DD]  DEFAULT ((0)) FOR [postRootNum]
GO
/****** Object:  Default [DF__iwms_cons__ncPos__7908F585]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_const] ADD  DEFAULT ((0)) FOR [ncPostNum]
GO
/****** Object:  Default [DF__iwms_fixN__fNews__3EDDEA9E]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_fixNews] ADD  CONSTRAINT [DF__iwms_fixN__fNews__3EDDEA9E]  DEFAULT ((0)) FOR [fNewsId]
GO
/****** Object:  Default [DF__iwms_fixN__fSort__40C63310]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_fixNews] ADD  CONSTRAINT [DF__iwms_fixN__fSort__40C63310]  DEFAULT ((0)) FOR [fSortId]
GO
/****** Object:  Default [DF__iwms_fixN__fType__41BA5749]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_fixNews] ADD  CONSTRAINT [DF__iwms_fixN__fType__41BA5749]  DEFAULT ((0)) FOR [fType]
GO
/****** Object:  Default [DF__iwms_frie__userI__7CD98669]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_friends] ADD  DEFAULT ((0)) FOR [userId]
GO
/****** Object:  Default [DF__iwms_frie__frien__7DCDAAA2]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_friends] ADD  DEFAULT ((0)) FOR [friendId]
GO
/****** Object:  Default [DF__aGatherDb__gathe__60D30FEF]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherDbRule] ADD  CONSTRAINT [DF__aGatherDb__gathe__60D30FEF]  DEFAULT ((0)) FOR [gatherNum]
GO
/****** Object:  Default [DF__aGatherDb__order__61C73428]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherDbRule] ADD  CONSTRAINT [DF__aGatherDb__order__61C73428]  DEFAULT ((0)) FOR [orderAsc]
GO
/****** Object:  Default [DF__aGatherDb__passe__62BB5861]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherDbRule] ADD  CONSTRAINT [DF__aGatherDb__passe__62BB5861]  DEFAULT ((0)) FOR [passed]
GO
/****** Object:  Default [DF__iwms_gath__htmlD__186D5D9C]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherDbRule] ADD  CONSTRAINT [DF__iwms_gath__htmlD__186D5D9C]  DEFAULT ((0)) FOR [htmlDecode]
GO
/****** Object:  Default [DF__aGatherRu__sortI__1E7B3CAD]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherRule] ADD  CONSTRAINT [DF__aGatherRu__sortI__1E7B3CAD]  DEFAULT ((0)) FOR [sortId]
GO
/****** Object:  Default [DF__aGatherRu__downN__1F6F60E6]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherRule] ADD  CONSTRAINT [DF__aGatherRu__downN__1F6F60E6]  DEFAULT ((0)) FOR [downNum]
GO
/****** Object:  Default [DF__aGatherRu__downI__2063851F]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherRule] ADD  CONSTRAINT [DF__aGatherRu__downI__2063851F]  DEFAULT ((0)) FOR [downImg]
GO
/****** Object:  Default [DF__aGatherRu__imgMa__2157A958]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherRule] ADD  CONSTRAINT [DF__aGatherRu__imgMa__2157A958]  DEFAULT ((0)) FOR [imgMark]
GO
/****** Object:  Default [DF__aGatherRu__autoT__224BCD91]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherRule] ADD  CONSTRAINT [DF__aGatherRu__autoT__224BCD91]  DEFAULT ((0)) FOR [autoTitleImg]
GO
/****** Object:  Default [DF__aGatherRu__passe__233FF1CA]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherRule] ADD  CONSTRAINT [DF__aGatherRu__passe__233FF1CA]  DEFAULT ((0)) FOR [passed]
GO
/****** Object:  Default [DF__aGatherRu__inver__24341603]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherRule] ADD  CONSTRAINT [DF__aGatherRu__inver__24341603]  DEFAULT ((0)) FOR [inverted]
GO
/****** Object:  Default [DF__aGatherRu__linkO__25283A3C]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherRule] ADD  CONSTRAINT [DF__aGatherRu__linkO__25283A3C]  DEFAULT ((0)) FOR [linkOut]
GO
/****** Object:  Default [DF__aGatherRu__allow__261C5E75]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherRule] ADD  CONSTRAINT [DF__aGatherRu__allow__261C5E75]  DEFAULT ((0)) FOR [allowRemark]
GO
/****** Object:  Default [DF__aGatherRu__conte__6EEB59C5]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherRule] ADD  CONSTRAINT [DF__aGatherRu__conte__6EEB59C5]  DEFAULT ((0)) FOR [contentOut]
GO
/****** Object:  Default [DF__aGatherRu__order__5DF6A344]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherRule] ADD  CONSTRAINT [DF__aGatherRu__order__5DF6A344]  DEFAULT ((0)) FOR [orderId]
GO
/****** Object:  Default [DF__aGatherRu__check__467F0C66]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherRule] ADD  CONSTRAINT [DF__aGatherRu__check__467F0C66]  DEFAULT ((0)) FOR [checkduplicate]
GO
/****** Object:  Default [DF__iwms_gath__makeS__0E04126B]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherRule] ADD  DEFAULT ((0)) FOR [makeSummary]
GO
/****** Object:  Default [DF__iwms_Gath__order__4496C3F4]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherUserRule] ADD  CONSTRAINT [DF__iwms_Gath__order__4496C3F4]  DEFAULT ((0)) FOR [orderAsc]
GO
/****** Object:  Default [DF__iwms_Gath__passM__458AE82D]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_gatherUserRule] ADD  CONSTRAINT [DF__iwms_Gath__passM__458AE82D]  DEFAULT ((0)) FOR [passMd5]
GO
/****** Object:  Default [DF__groups__memberNu__60A75C0F]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_groups] ADD  CONSTRAINT [DF__groups__memberNu__60A75C0F]  DEFAULT ((0)) FOR [memberNum]
GO
/****** Object:  Default [DF__groups__checkAdd__1B9ED002]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_groups] ADD  CONSTRAINT [DF__groups__checkAdd__1B9ED002]  DEFAULT ((1)) FOR [checkAdd]
GO
/****** Object:  Default [DF__groups__uploadPe__5284F098]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_groups] ADD  CONSTRAINT [DF__groups__uploadPe__5284F098]  DEFAULT ((0)) FOR [uploadPerday]
GO
/****** Object:  Default [DF__groups__editNews__486754D8]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_groups] ADD  CONSTRAINT [DF__groups__editNews__486754D8]  DEFAULT ((0)) FOR [editNews]
GO
/****** Object:  Default [DF__aLink__addDate__2FA4FD58]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_link] ADD  CONSTRAINT [DF__aLink__addDate__2FA4FD58]  DEFAULT (getdate()) FOR [addDate]
GO
/****** Object:  Default [DF__aLink__memberID__30992191]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_link] ADD  CONSTRAINT [DF__aLink__memberID__30992191]  DEFAULT ((0)) FOR [memberID]
GO
/****** Object:  Default [DF__aLink__sortID__318D45CA]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_link] ADD  CONSTRAINT [DF__aLink__sortID__318D45CA]  DEFAULT ((0)) FOR [sortID]
GO
/****** Object:  Default [DF__aLink__inIndex__32816A03]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_link] ADD  CONSTRAINT [DF__aLink__inIndex__32816A03]  DEFAULT ((0)) FOR [inIndex]
GO
/****** Object:  Default [DF__aLink__passed__33758E3C]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_link] ADD  CONSTRAINT [DF__aLink__passed__33758E3C]  DEFAULT ((0)) FOR [passed]
GO
/****** Object:  Default [DF__aLink__orderId__03C74671]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_link] ADD  CONSTRAINT [DF__aLink__orderId__03C74671]  DEFAULT ((0)) FOR [orderId]
GO
/****** Object:  Default [DF__aLogs__memberid__77809FC6]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_logs] ADD  CONSTRAINT [DF__aLogs__memberid__77809FC6]  DEFAULT ((0)) FOR [memberid]
GO
/****** Object:  Default [DF__aLogs__logTime__7874C3FF]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_logs] ADD  CONSTRAINT [DF__aLogs__logTime__7874C3FF]  DEFAULT (getdate()) FOR [logTime]
GO
/****** Object:  Default [DF__member__groupid__5CD6CB2B]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member] ADD  CONSTRAINT [DF__member__groupid__5CD6CB2B]  DEFAULT ((0)) FOR [groupid]
GO
/****** Object:  Default [DF__member__adddate]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member] ADD  CONSTRAINT [DF__member__adddate]  DEFAULT (getdate()) FOR [addDate]
GO
/****** Object:  Default [DF__member__addNum__7C4F7684]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member] ADD  CONSTRAINT [DF__member__addNum__7C4F7684]  DEFAULT ((0)) FOR [addNum]
GO
/****** Object:  Default [DF_member_male]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member] ADD  CONSTRAINT [DF_member_male]  DEFAULT ((1)) FOR [male]
GO
/****** Object:  Default [DF__member__hideEmai__2BD46C74]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member] ADD  CONSTRAINT [DF__member__hideEmai__2BD46C74]  DEFAULT ((0)) FOR [hideEmail]
GO
/****** Object:  Default [DF__member__lastLog__7BBB44FE]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member] ADD  CONSTRAINT [DF__member__lastLog__7BBB44FE]  DEFAULT (getdate()) FOR [lastLog]
GO
/****** Object:  Default [DF__member__logTimes__7CAF6937]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member] ADD  CONSTRAINT [DF__member__logTimes__7CAF6937]  DEFAULT ((0)) FOR [logTimes]
GO
/****** Object:  Default [DF__member__vMoney__04BB6AAA]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member] ADD  CONSTRAINT [DF__member__vMoney__04BB6AAA]  DEFAULT ((0)) FOR [vMoney]
GO
/****** Object:  Default [DF__member__totalMar__05AF8EE3]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member] ADD  CONSTRAINT [DF__member__totalMar__05AF8EE3]  DEFAULT ((0)) FOR [totalMark]
GO
/****** Object:  Default [DF__member__nSignIn__06A3B31C]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member] ADD  CONSTRAINT [DF__member__nSignIn__06A3B31C]  DEFAULT ((0)) FOR [nSignIn]
GO
/****** Object:  Default [DF__member__addSignI__0797D755]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member] ADD  CONSTRAINT [DF__member__addSignI__0797D755]  DEFAULT ((0)) FOR [addSignIn]
GO
/****** Object:  Default [DF__iwms_memb__postN__765B6A16]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member] ADD  CONSTRAINT [DF__iwms_memb__postN__765B6A16]  DEFAULT ((0)) FOR [postNum]
GO
/****** Object:  Default [DF__iwms_memb__postR__774F8E4F]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member] ADD  CONSTRAINT [DF__iwms_memb__postR__774F8E4F]  DEFAULT ((0)) FOR [postRootNum]
GO
/****** Object:  Default [DF__iwms_memb__gotMe__28B808A7]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member] ADD  DEFAULT ((0)) FOR [gotMessage]
GO
/****** Object:  Default [DF__member_nc__addDa__7F2BE32F]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member_nc] ADD  CONSTRAINT [DF__member_nc__addDa__7F2BE32F]  DEFAULT (getdate()) FOR [addDate]
GO
/****** Object:  Default [DF_member_nc_male]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member_nc] ADD  CONSTRAINT [DF_member_nc_male]  DEFAULT ((1)) FOR [male]
GO
/****** Object:  Default [DF__member_nc__hideE__2CC890AD]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member_nc] ADD  CONSTRAINT [DF__member_nc__hideE__2CC890AD]  DEFAULT ((0)) FOR [hideEmail]
GO
/****** Object:  Default [DF__member_nc__vMone__088BFB8E]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member_nc] ADD  CONSTRAINT [DF__member_nc__vMone__088BFB8E]  DEFAULT ((0)) FOR [vMoney]
GO
/****** Object:  Default [DF__member_nc__total__09801FC7]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_member_nc] ADD  CONSTRAINT [DF__member_nc__total__09801FC7]  DEFAULT ((0)) FOR [totalMark]
GO
/****** Object:  Default [DF__iwms_msg__sender__2E70E1FD]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_msg] ADD  DEFAULT ((0)) FOR [senderId]
GO
/****** Object:  Default [DF__iwms_msg__receiv__2F650636]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_msg] ADD  DEFAULT ((0)) FOR [receiverId]
GO
/****** Object:  Default [DF__iwms_msg__sendDa__30592A6F]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_msg] ADD  DEFAULT (getdate()) FOR [sendDate]
GO
/****** Object:  Default [DF__iwms_msg__unread__314D4EA8]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_msg] ADD  DEFAULT ((0)) FOR [unread]
GO
/****** Object:  Default [DF_article_classid]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF_article_classid]  DEFAULT ((0)) FOR [classid]
GO
/****** Object:  Default [DF_article_hits]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF_article_hits]  DEFAULT ((0)) FOR [hits]
GO
/****** Object:  Default [DF__article__dateandtime]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF__article__dateandtime]  DEFAULT (getdate()) FOR [dateandtime]
GO
/****** Object:  Default [DF_article_dayHits]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF_article_dayHits]  DEFAULT ((0)) FOR [dayHits]
GO
/****** Object:  Default [DF_article_weekHits]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF_article_weekHits]  DEFAULT ((0)) FOR [weekHits]
GO
/****** Object:  Default [DF_article_remarkNum]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF_article_remarkNum]  DEFAULT ((0)) FOR [remarkNum]
GO
/****** Object:  Default [DF_article_imgNews]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF_article_imgNews]  DEFAULT ((0)) FOR [imgNews]
GO
/****** Object:  Default [DF_article_topicid]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF_article_topicid]  DEFAULT ((0)) FOR [topicid]
GO
/****** Object:  Default [DF_article_highlight]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF_article_highlight]  DEFAULT ((0)) FOR [highlight]
GO
/****** Object:  Default [DF__article__memberi__02084FDA]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF__article__memberi__02084FDA]  DEFAULT ((0)) FOR [memberid]
GO
/****** Object:  Default [DF__article__checkUs__02FC7413]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF__article__checkUs__02FC7413]  DEFAULT ((0)) FOR [checkUserid]
GO
/****** Object:  Default [DF__article__remarkL__0268428D]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF__article__remarkL__0268428D]  DEFAULT ((0)) FOR [remarkLink]
GO
/****** Object:  Default [DF__article__allowRe__53ED4AC6]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF__article__allowRe__53ED4AC6]  DEFAULT ((1)) FOR [allowRemark]
GO
/****** Object:  Default [DF__article__outerIm__271082AE]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF__article__outerIm__271082AE]  DEFAULT ((0)) FOR [outerImg]
GO
/****** Object:  Default [DF__article__price__2804A6E7]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF__article__price__2804A6E7]  DEFAULT ((0)) FOR [price]
GO
/****** Object:  Default [DF__article__markLim__28F8CB20]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF__article__markLim__28F8CB20]  DEFAULT ((0)) FOR [markLimit]
GO
/****** Object:  Default [DF__iwms_news__digg__6BDDDBA3]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF__iwms_news__digg__6BDDDBA3]  DEFAULT ((0)) FOR [digg]
GO
/****** Object:  Default [DF__iwms_news__diggW__6CD1FFDC]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_news] ADD  CONSTRAINT [DF__iwms_news__diggW__6CD1FFDC]  DEFAULT ((0)) FOR [diggWeek]
GO
/****** Object:  Default [DF__aPages__newsid__7B5130AA]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_pages] ADD  CONSTRAINT [DF__aPages__newsid__7B5130AA]  DEFAULT ((0)) FOR [newsid]
GO
/****** Object:  Default [DF__aPages__pageInde__7D39791C]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_pages] ADD  CONSTRAINT [DF__aPages__pageInde__7D39791C]  DEFAULT ((0)) FOR [pageIndex]
GO
/****** Object:  Default [DF__aPaid__articleid__7FF6B58D]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_paid] ADD  CONSTRAINT [DF__aPaid__articleid__7FF6B58D]  DEFAULT ((0)) FOR [articleid]
GO
/****** Object:  Default [DF__aPaid__memberid__00EAD9C6]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_paid] ADD  CONSTRAINT [DF__aPaid__memberid__00EAD9C6]  DEFAULT ((0)) FOR [memberid]
GO
/****** Object:  Default [DF__aPaid__paySum__01DEFDFF]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_paid] ADD  CONSTRAINT [DF__aPaid__paySum__01DEFDFF]  DEFAULT ((0)) FOR [paySum]
GO
/****** Object:  Default [DF__aPaid__payDate__02D32238]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_paid] ADD  CONSTRAINT [DF__aPaid__payDate__02D32238]  DEFAULT (getdate()) FOR [payDate]
GO
/****** Object:  Default [DF__aPoll__multiple__0ECE1972]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_poll] ADD  CONSTRAINT [DF__aPoll__multiple__0ECE1972]  DEFAULT ((0)) FOR [multiple]
GO
/****** Object:  Default [DF__aPoll__inIndex__0FC23DAB]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_poll] ADD  CONSTRAINT [DF__aPoll__inIndex__0FC23DAB]  DEFAULT ((0)) FOR [inIndex]
GO
/****** Object:  Default [DF__iwms_poll__maxCh__196181D5]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_poll] ADD  CONSTRAINT [DF__iwms_poll__maxCh__196181D5]  DEFAULT ((0)) FOR [maxCheck]
GO
/****** Object:  Default [DF__iwms_post__sortI__7A2BFAFA]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_post] ADD  CONSTRAINT [DF__iwms_post__sortI__7A2BFAFA]  DEFAULT ((0)) FOR [sortId]
GO
/****** Object:  Default [DF__iwms_post__postD__7B201F33]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_post] ADD  CONSTRAINT [DF__iwms_post__postD__7B201F33]  DEFAULT (getdate()) FOR [postDate]
GO
/****** Object:  Default [DF__iwms_post__rootI__7C14436C]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_post] ADD  CONSTRAINT [DF__iwms_post__rootI__7C14436C]  DEFAULT ((0)) FOR [rootId]
GO
/****** Object:  Default [DF__iwms_post__pid__7D0867A5]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_post] ADD  CONSTRAINT [DF__iwms_post__pid__7D0867A5]  DEFAULT ((0)) FOR [pid]
GO
/****** Object:  Default [DF__iwms_post__depth__7DFC8BDE]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_post] ADD  CONSTRAINT [DF__iwms_post__depth__7DFC8BDE]  DEFAULT ((0)) FOR [depth]
GO
/****** Object:  Default [DF__iwms_post__reply__7EF0B017]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_post] ADD  CONSTRAINT [DF__iwms_post__reply__7EF0B017]  DEFAULT ((0)) FOR [replyNum]
GO
/****** Object:  Default [DF__iwms_post__reply__7FE4D450]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_post] ADD  CONSTRAINT [DF__iwms_post__reply__7FE4D450]  DEFAULT (getdate()) FOR [replyDate]
GO
/****** Object:  Default [DF__iwms_post__suppo__00D8F889]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_post] ADD  CONSTRAINT [DF__iwms_post__suppo__00D8F889]  DEFAULT ((0)) FOR [support]
GO
/****** Object:  Default [DF__iwms_post__disco__01CD1CC2]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_post] ADD  CONSTRAINT [DF__iwms_post__disco__01CD1CC2]  DEFAULT ((0)) FOR [discourage]
GO
/****** Object:  Default [DF__iwms_post__hits__02C140FB]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_post] ADD  CONSTRAINT [DF__iwms_post__hits__02C140FB]  DEFAULT ((0)) FOR [hits]
GO
/****** Object:  Default [DF__iwms_post__membe__03B56534]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_post] ADD  CONSTRAINT [DF__iwms_post__membe__03B56534]  DEFAULT ((0)) FOR [memberId]
GO
/****** Object:  Default [DF__iwms_post__postI__0691D1DF]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_postFix] ADD  CONSTRAINT [DF__iwms_post__postI__0691D1DF]  DEFAULT ((0)) FOR [postId]
GO
/****** Object:  Default [DF__iwms_post__sortI__0785F618]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_postFix] ADD  CONSTRAINT [DF__iwms_post__sortI__0785F618]  DEFAULT ((0)) FOR [sortId]
GO
/****** Object:  Default [DF__iwms_post__postN__7196B4F9]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_postSort] ADD  CONSTRAINT [DF__iwms_post__postN__7196B4F9]  DEFAULT ((0)) FOR [postNum]
GO
/****** Object:  Default [DF__iwms_post__postR__728AD932]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_postSort] ADD  CONSTRAINT [DF__iwms_post__postR__728AD932]  DEFAULT ((0)) FOR [postRootNum]
GO
/****** Object:  Default [DF__iwms_post__order__737EFD6B]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_postSort] ADD  CONSTRAINT [DF__iwms_post__order__737EFD6B]  DEFAULT ((0)) FOR [orderId]
GO
/****** Object:  Default [DF__aRelateKey__num__13098A01]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_relateKey] ADD  CONSTRAINT [DF__aRelateKey__num__13098A01]  DEFAULT ((0)) FOR [num]
GO
/****** Object:  Default [DF__iwms_relat__hits__6EBA484E]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_relateKey] ADD  CONSTRAINT [DF__iwms_relat__hits__6EBA484E]  DEFAULT ((0)) FOR [hits]
GO
/****** Object:  Default [DF__aRelateNe__keyid__15E5F6AC]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_relateNews] ADD  CONSTRAINT [DF__aRelateNe__keyid__15E5F6AC]  DEFAULT ((0)) FOR [keyid]
GO
/****** Object:  Default [DF__aRelateNe__artic__16DA1AE5]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_relateNews] ADD  CONSTRAINT [DF__aRelateNe__artic__16DA1AE5]  DEFAULT ((0)) FOR [articleid]
GO
/****** Object:  Default [DF_remark_articleID]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_remark] ADD  CONSTRAINT [DF_remark_articleID]  DEFAULT ((0)) FOR [articleID]
GO
/****** Object:  Default [DF_remark_face]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_remark] ADD  CONSTRAINT [DF_remark_face]  DEFAULT ((0)) FOR [face]
GO
/****** Object:  Default [DF__remark__dateandtime]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_remark] ADD  CONSTRAINT [DF__remark__dateandtime]  DEFAULT (getdate()) FOR [dateAndTime]
GO
/****** Object:  Default [DF__remark__memberId__0AFD888E]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_remark] ADD  CONSTRAINT [DF__remark__memberId__0AFD888E]  DEFAULT ((0)) FOR [memberId]
GO
/****** Object:  Default [DF__iwms_remark__pid__680D4ABF]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_remark] ADD  CONSTRAINT [DF__iwms_remark__pid__680D4ABF]  DEFAULT ((0)) FOR [pid]
GO
/****** Object:  Default [DF__iwms_rema__suppo__69016EF8]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_remark] ADD  CONSTRAINT [DF__iwms_rema__suppo__69016EF8]  DEFAULT ((0)) FOR [support]
GO
/****** Object:  Default [DF__iwms_rema__disco__69F59331]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_remark] ADD  CONSTRAINT [DF__iwms_rema__disco__69F59331]  DEFAULT ((0)) FOR [discourage]
GO
/****** Object:  Default [DF__remark_nc__artic__7F8BD5E2]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_remark_nc] ADD  CONSTRAINT [DF__remark_nc__artic__7F8BD5E2]  DEFAULT ((0)) FOR [articleid]
GO
/****** Object:  Default [DF__remark_nc__face__007FFA1B]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_remark_nc] ADD  CONSTRAINT [DF__remark_nc__face__007FFA1B]  DEFAULT ((0)) FOR [face]
GO
/****** Object:  Default [DF__remark_nc__dateA__01741E54]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_remark_nc] ADD  CONSTRAINT [DF__remark_nc__dateA__01741E54]  DEFAULT (getdate()) FOR [dateAndTime]
GO
/****** Object:  Default [DF__remark_nc__membe__0BF1ACC7]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_remark_nc] ADD  CONSTRAINT [DF__remark_nc__membe__0BF1ACC7]  DEFAULT ((0)) FOR [memberId]
GO
/****** Object:  Default [DF__iwms_remark__pid__6AE9B76A]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_remark_nc] ADD  CONSTRAINT [DF__iwms_remark__pid__6AE9B76A]  DEFAULT ((0)) FOR [pid]
GO
/****** Object:  Default [DF__aSignIn__article__0C5C8C72]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_signIn] ADD  CONSTRAINT [DF__aSignIn__article__0C5C8C72]  DEFAULT ((0)) FOR [articleId]
GO
/****** Object:  Default [DF__aSignIn__senderI__0D50B0AB]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_signIn] ADD  CONSTRAINT [DF__aSignIn__senderI__0D50B0AB]  DEFAULT ((0)) FOR [senderId]
GO
/****** Object:  Default [DF__aSignIn__receive__0E44D4E4]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_signIn] ADD  CONSTRAINT [DF__aSignIn__receive__0E44D4E4]  DEFAULT ((0)) FOR [receiverId]
GO
/****** Object:  Default [DF__aSignIn__seen__102D1D56]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_signIn] ADD  CONSTRAINT [DF__aSignIn__seen__102D1D56]  DEFAULT ((0)) FOR [seen]
GO
/****** Object:  Default [DF__asignin__signDat__60132A89]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_signIn] ADD  CONSTRAINT [DF__asignin__signDat__60132A89]  DEFAULT (getdate()) FOR [signDate]
GO
/****** Object:  Default [DF__iwms_soft__newsI__1D3212B9]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_soft] ADD  CONSTRAINT [DF__iwms_soft__newsI__1D3212B9]  DEFAULT ((0)) FOR [newsId]
GO
/****** Object:  Default [DF__iwms_soft__Licen__1F1A5B2B]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_soft] ADD  CONSTRAINT [DF__iwms_soft__Licen__1F1A5B2B]  DEFAULT ((0)) FOR [License]
GO
/****** Object:  Default [DF__iwms_soft__softI__21F6C7D6]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_softLink] ADD  CONSTRAINT [DF__iwms_soft__softI__21F6C7D6]  DEFAULT ((0)) FOR [softId]
GO
/****** Object:  Default [DF__iwms_soft__order__22EAEC0F]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_softLink] ADD  CONSTRAINT [DF__iwms_soft__order__22EAEC0F]  DEFAULT ((0)) FOR [orderid]
GO
/****** Object:  Default [DF__iwms_soft__pLimi__23DF1048]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_softLink] ADD  CONSTRAINT [DF__iwms_soft__pLimi__23DF1048]  DEFAULT ((0)) FOR [pLimit]
GO
/****** Object:  Default [DF__style__isdefault__75A278F5]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_style] ADD  CONSTRAINT [DF__style__isdefault__75A278F5]  DEFAULT ((0)) FOR [isdefault]
GO
/****** Object:  Default [DF__aTemplate__tDefa__66B53B20]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_template] ADD  CONSTRAINT [DF__aTemplate__tDefa__66B53B20]  DEFAULT ((0)) FOR [tDefault]
GO
/****** Object:  Default [DF__iwms_temp__cType__26BB7CF3]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_template] ADD  CONSTRAINT [DF__iwms_temp__cType__26BB7CF3]  DEFAULT ((0)) FOR [cType]
GO
/****** Object:  Default [DF__atopic__topictime]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_topic] ADD  CONSTRAINT [DF__atopic__topictime]  DEFAULT (getdate()) FOR [topicTime]
GO
/****** Object:  Default [DF_Atopic_newsNum]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_topic] ADD  CONSTRAINT [DF_Atopic_newsNum]  DEFAULT ((0)) FOR [newsNum]
GO
/****** Object:  Default [DF__aTopic__styleId__70D3A237]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_topic] ADD  CONSTRAINT [DF__aTopic__styleId__70D3A237]  DEFAULT ((0)) FOR [styleId]
GO
/****** Object:  Default [DF__aTopic__pid__71C7C670]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_topic] ADD  CONSTRAINT [DF__aTopic__pid__71C7C670]  DEFAULT ((0)) FOR [pid]
GO
/****** Object:  Default [DF__aTopic__child__72BBEAA9]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_topic] ADD  CONSTRAINT [DF__aTopic__child__72BBEAA9]  DEFAULT ((0)) FOR [child]
GO
/****** Object:  Default [DF__aTopic__tempId__73B00EE2]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_topic] ADD  CONSTRAINT [DF__aTopic__tempId__73B00EE2]  DEFAULT ((0)) FOR [tempId]
GO
/****** Object:  Default [DF__aTopic__pagesize__74A4331B]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_topic] ADD  CONSTRAINT [DF__aTopic__pagesize__74A4331B]  DEFAULT ((0)) FOR [pagesize]
GO
/****** Object:  Default [DF__iwms_upload__rId__7D98A078]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_upload] ADD  DEFAULT ((0)) FOR [rId]
GO
/****** Object:  Default [DF__iwms_uplo__rType__7E8CC4B1]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_upload] ADD  DEFAULT ((0)) FOR [rType]
GO
/****** Object:  Default [DF__uploadLog__useri__55615D43]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_uploadLog] ADD  CONSTRAINT [DF__uploadLog__useri__55615D43]  DEFAULT ((0)) FOR [userid]
GO
/****** Object:  Default [DF__uploadLog__uploa__5655817C]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_uploadLog] ADD  CONSTRAINT [DF__uploadLog__uploa__5655817C]  DEFAULT (getdate()) FOR [uploadDate]
GO
/****** Object:  Default [DF__uploadLog__num__5749A5B5]    Script Date: 11/29/2011 20:44:45 ******/
ALTER TABLE [dbo].[iwms_uploadLog] ADD  CONSTRAINT [DF__uploadLog__num__5749A5B5]  DEFAULT ((0)) FOR [num]
GO
