/****** Object:  Table [dbo].[KS_Comment]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_Comment](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ChannelID] [int] NULL,
	[ClassID] [int] NULL,
	[InfoID] [int] NULL,
	[UserIP] [nvarchar](20) NULL,
	[Content] [ntext] NULL,
	[Support] [int] NULL,
	[Opposition] [int] NULL,
	[AddDate] [datetime] NULL,
	[Verify] [int] NULL,
	[Anonymous] [int] NULL,
	[UserName] [nvarchar](50) NULL,
	[Viewpoint] [int] NULL,
	[Reports] [int] NULL,
	[UserID] [int] NULL,
 CONSTRAINT [PK_KS_Comment] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  StoredProcedure [dbo].[KS_CollectionItemUpdate3]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_CollectionItemUpdate3]
  @FieldsRuleXml Ntext ,
  @ItemID int
 AS
  Update [KS_CollectionItem] SET  [FieldsRuleXml]=@FieldsRuleXml Where ItemID=@ItemID
GO
/****** Object:  StoredProcedure [dbo].[KS_CollectionItemUpdate2]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_CollectionItemUpdate2]
  @ListBeginTag ntext,
  @ListEndTag ntext,
  @LinkBeginTag ntext,
  @LinkEndTag ntext,
  @PageType int=0,
  @PageUrl varchar(255),
  @PageStartID int,
  @PageEndID int,
  @PageListUrl ntext,
  @ItemID int
 AS
  Update [KS_CollectionItem] SET 
    ListBeginTag=@ListBeginTag,
ListEndTag=@ListEndTag, 
LinkBeginTag=@LinkBeginTag,
LinkEndTag=@LinkEndTag,
PageType=@PageType,
PageUrl=@PageUrl,
PageStartID=@PageStartID,
PageEndID=@PageEndID,
PageListUrl=@PageListUrl
   WHERE ItemID=@ItemID
GO
/****** Object:  StoredProcedure [dbo].[KS_CollectionItemUpdate1]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_CollectionItemUpdate1]
  @ItemName varchar(255),
  @ClassID int,
  @SpecialID nvarchar(255),
  @ProvinceID int=0,
  @CityID int=0,
  @CountyID int=0,
  @SiteName varchar(255),
  @CollectUrl varchar(255),
  @Encoding varchar(50),
  @Attribute varchar(50),
  @CollectOption varchar(50),
  @CollectListNum int=0,
  @CollectInfoNum int=0,
  @PausePerNum int=0,
  @PauseTime int=0,
  @Remark varchar(255),
  @ItemID int
 AS
  Update [KS_CollectionItem] SET 
      [ItemName]=@ItemName,
      [ClassID]=@ClassID,
      [SpecialID]=@SpecialID,
      [ProvinceID]=@ProvinceID,
      [CityID]=@CityID,
      [CountyID]=@CountyID,
      [SiteName]=@SiteName,
      [CollectUrl]=@CollectUrl,
      [Encoding]=@Encoding,
      [Attribute]=@Attribute,
      [CollectOption]=@CollectOption,
      [CollectListNum]=@CollectListNum,
      [CollectInfoNum]=@CollectInfoNum,
      [PausePerNum]=@PausePerNum,
      [PauseTime]=@PauseTime,
      [Remark]=@Remark
   WHERE ItemID=@ItemID
GO
/****** Object:  StoredProcedure [dbo].[KS_CollectionItemCopy]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_CollectionItemCopy]
@ItemName nvarchar(255),
@ModelID int=0,
@ClassID int ,
@SpecialID nvarchar(255),
@ProvinceID int=0,
@CityID int=0,
@CountyID int=0,
@SiteName nvarchar(255),
@CollectUrl nvarchar(255),
@Encoding nvarchar(100),
@Attribute nvarchar(100),
@CollectOption nvarchar(100),
@CollectListNum int=0,
@CollectInfoNum int=0,
@PausePerNum int=0,
@PauseTime int=0,
@Remark nvarchar(255),
@Adddate datetime,
@ListBeginTag ntext,
@ListEndTag ntext,
@LinkBeginTag ntext,
@LinkEndTag ntext,
@PageType int,
@PageUrl ntext,
@PageStartID int,
@PageEndID int,
@PageListUrl nvarchar(255),
@FieldsRuleXml ntext,
@IsCanCollect int,
@LastCollectTime datetime
AS
	INSERT INTO KS_CollectionItem([ItemName],[ModelID],[ClassID],[SpecialID],[ProvinceID],[CityID],[CountyID],[SiteName],[CollectUrl],[Encoding],[Attribute],[CollectOption],[CollectListNum],[CollectInfoNum],[PausePerNum],[PauseTime],[Remark],[AddDate],[ListBeginTag],[ListEndTag],[LinkBeginTag],[LinkEndTag],[PageType],[PageUrl],[PageStartID],[PageEndID],[PageListUrl],[FieldsRuleXml],[IsCanCollect],[LastCollectTime]) VALUES(@ItemName,@ModelID,@ClassID,@SpecialID,@ProvinceID,@CityID,@CountyID,@SiteName,@CollectUrl,@Encoding,@Attribute,@CollectOption,@CollectListNum,@CollectInfoNum,@PausePerNum,@PauseTime,@Remark,@AddDate,@ListBeginTag,@ListEndTag,@LinkBeginTag,@LinkEndTag,@PageType,@PageUrl,@PageStartID,@PageEndID,@PageListUrl,@FieldsRuleXml,@IsCanCollect,@LastCollectTime)
GO
/****** Object:  StoredProcedure [dbo].[KS_CollectionItemAdd]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_CollectionItemAdd]
@itemname nvarchar(255),
@modelid int=0,
@classid int ,
@specialid nvarchar(255),
@provinceid int=0,
@cityid int=0,
@countyid int=0,
@sitename nvarchar(255),
@collecturl nvarchar(255),
@encoding nvarchar(100),
@attribute nvarchar(100),
@collectoption nvarchar(100),
@collectlistnum int=0,
@collectinfonum int=0,
@pausepernum int=0,
@pausetime int=0,
@remark nvarchar(255),
@adddate datetime,
@id int output
AS
	INSERT INTO KS_CollectionItem(ItemName,ModelID,ClassID,SpecialID,ProvinceID,CityID,CountyID,SiteName,CollectUrl,Encoding,Attribute,CollectOption,CollectListNum,CollectInfoNum,PausePerNum,PauseTime,Remark,AddDate) VALUES(@itemname,@modelid,@classid,@specialid,@provinceid,@cityid,@countyid,@sitename,@collecturl,@encoding,@attribute,@collectoption,@collectlistnum,@collectinfonum,@pausepernum,@pausetime,@remark,@adddate)
select @id=@@identity
GO
/****** Object:  StoredProcedure [dbo].[KS_CollectionHistoryInsert]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_CollectionHistoryInsert]
  @ItemID int,
  @ModelID int,
  @ClassID int,
  @InfoID int ,
  @Title varchar(255),
  @ItemUrl varchar(255),
  @Remark varchar(255),
  @IsSucceed tinyint,
  @RecordTime datetime
 AS
   INSERT INTO [KS_CollectionHistory] 
      ([ItemID],[ModelID],[ClassID],[InfoID],[Title],[ItemUrl],[Remark],[IsSucceed],[RecordTime])
      Values(@ItemID,@ModelID,@ClassID,@InfoID,@Title,@ItemUrl,@Remark,@IsSucceed,@RecordTime)
GO
/****** Object:  StoredProcedure [dbo].[KS_CollectionFilterInsert]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_CollectionFilterInsert]
@FilterName nvarchar(255),
@FilterType int=0,
@BeginTag ntext ,
@EndTag ntext,
@ReplaceBody Ntext,
@AddDate SmallDateTime,
@Status int=0
AS
	INSERT INTO KS_CollectionFilter
                (FilterName,FilterType,BeginTag,EndTag,ReplaceBody,AddDate,Status)
              VALUES(@FilterName,@FilterType,@BeginTag,@EndTag,@ReplaceBody,@AddDate,@Status)
GO
/****** Object:  Table [dbo].[KS_Class]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_Class](
	[ClassID] [int] NOT NULL,
	[ChannelID] [smallint] NULL,
	[ClassName] [nvarchar](100) NULL,
	[ClassEname] [nvarchar](150) NULL,
	[ParentID] [int] NULL,
	[Root] [int] NULL,
	[Depth] [tinyint] NULL,
	[OrderID] [int] NULL,
	[ParentIDPath] [varchar](1500) NULL,
	[Child] [int] NULL,
	[PrevID] [int] NULL,
	[NextID] [int] NULL,
	[ClassDir] [varchar](255) NULL,
	[ClassType] [tinyint] NULL,
	[UserName] [nvarchar](50) NULL,
	[AddDate] [datetime] NULL,
	[ClassTemplate] [nvarchar](255) NULL,
	[ContentTemplate] [nvarchar](255) NULL,
	[Class3GTemplate] [nvarchar](255) NULL,
	[Content3GTemplate] [nvarchar](255) NULL,
	[ShowInTop] [tinyint] NULL,
	[ShowOn3G] [tinyint] NULL,
	[ShowInCir] [tinyint] NULL,
	[AllowPubInfo] [tinyint] NULL,
	[PubFlag] [tinyint] NULL,
	[AllowPubGroupID] [varchar](255) NULL,
	[PubAddMoney] [int] NULL,
	[PubAddPoint] [int] NULL,
	[PubAddScore] [int] NULL,
	[CmtAddScore] [int] NULL,
	[ShareAddScore] [int] NULL,
	[CreateHtmlFlag] [tinyint] NULL,
	[AutoCreateType] [tinyint] NULL,
	[ClassFsoIndex] [varchar](50) NULL,
	[CreateInfoPath] [varchar](200) NULL,
	[CreateInfoFname] [varchar](150) NULL,
	[ClassDomain] [varchar](100) NULL,
	[ClassPurview] [smallint] NULL,
	[DefaultArrGroupID] [nvarchar](255) NULL,
	[DefaultReadPoint] [smallint] NULL,
	[DefaultChargeType] [smallint] NULL,
	[DefaultPitchTime] [smallint] NULL,
	[DefaultReadTimes] [smallint] NULL,
	[DefaultDividePercent] [smallint] NULL,
	[ClassBasicInfo] [ntext] NULL,
	[ClassDefineContent] [ntext] NULL,
	[AdminPurview] [ntext] NULL,
	[InfoNum] [int] NULL,
	[ProSpecialID] [int] NULL,
	[ClassFsoDirRule] [tinyint] NULL,
	[ClassFsoPre] [nvarchar](255) NULL,
	[DomainBindType] [tinyint] NULL,
 CONSTRAINT [PK_KS_Class] PRIMARY KEY CLUSTERED 
(
	[ClassID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CheckPackinfo]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CheckPackinfo](
	[InfoID] [int] IDENTITY(1,1) NOT NULL,
	[PackID] [int] NULL,
	[PackInfoID] [int] NULL,
	[Type] [int] NULL,
	[Score] [int] NULL,
	[OrderID] [int] NULL,
	[PackInfoName] [nvarchar](500) NULL,
	[AddTime] [datetime] NULL,
	[IsOrNo] [int] NULL,
	[StartTime] [datetime] NULL,
	[EndTime] [datetime] NULL,
	[Price] [money] NULL,
	[StudyTime] [int] NULL,
	[NeedScore] [int] NULL,
	[DateDtatus] [int] NULL,
 CONSTRAINT [PK_Ks_CheckPackinfo] PRIMARY KEY CLUSTERED 
(
	[InfoID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CheckPackageItem]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CheckPackageItem](
	[Orderid] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](50) NULL,
	[UserID] [int] NULL,
	[AddTime] [datetime] NULL,
	[PackID] [int] NULL,
	[Score] [int] NULL,
	[Price] [money] NULL,
	[StudyTime] [int] NULL,
	[IntegraTion] [int] NULL,
	[PackName] [nvarchar](200) NULL,
	[DateStatus] [int] NULL,
	[StartDate] [datetime] NULL,
	[EndDate] [datetime] NULL,
	[StudyCourse] [nvarchar](1000) NULL,
	[StudySj] [nvarchar](1000) NULL,
	[StudyLesson] [nvarchar](1000) NULL,
	[TypeID] [int] NULL,
	[Type] [int] NULL,
 CONSTRAINT [PK_KS_CheckPackageItem] PRIMARY KEY CLUSTERED 
(
	[Orderid] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CheckPackage]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CheckPackage](
	[PackID] [int] IDENTITY(1,1) NOT NULL,
	[PackName] [nvarchar](50) NULL,
	[Price] [money] NULL,
	[Sellprice] [money] NULL,
	[Status] [int] NULL,
	[Summary] [nvarchar](500) NULL,
	[Content] [nvarchar](1000) NULL,
	[UserName] [nvarchar](50) NULL,
	[Userid] [int] NULL,
	[Couponid] [int] NULL,
	[Addtime] [datetime] NULL,
	[Time] [int] NULL,
	[Endtime] [datetime] NULL,
	[Photo] [nvarchar](500) NULL,
	[Groupids] [nvarchar](50) NULL,
	[Departids] [nvarchar](50) NULL,
	[Score] [int] NULL,
	[System] [int] NULL,
	[DateStatus] [int] NULL,
	[EndDate] [datetime] NULL,
	[StartDate] [datetime] NULL,
	[IntegraTion] [int] NULL,
	[PassScore] [int] NULL,
	[SchoolID] [int] NULL,
	[SchoolName] [nvarchar](500) NULL,
 CONSTRAINT [PK_KS_CheckPackage] PRIMARY KEY CLUSTERED 
(
	[PackID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_Author]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_Author](
	[AuthorID] [int] IDENTITY(1,1) NOT NULL,
	[AuthorName] [nvarchar](50) NOT NULL,
	[Sex] [nvarchar](2) NULL,
	[Birthday] [nvarchar](100) NULL,
	[WorkUnits] [nvarchar](50) NULL,
	[Address] [nvarchar](50) NULL,
	[Telphone] [nvarchar](50) NULL,
	[ZipCode] [nvarchar](10) NULL,
	[Email] [nvarchar](100) NULL,
	[QQ] [nvarchar](15) NULL,
	[HomePage] [nvarchar](100) NULL,
	[Resume] [ntext] NULL,
	[AddDate] [datetime] NULL,
	[UserName] [nvarchar](50) NULL,
 CONSTRAINT [PK_KS_Author] PRIMARY KEY CLUSTERED 
(
	[AuthorID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_Area]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_Area](
	[ID] [int] NOT NULL,
	[City] [nvarchar](155) NULL,
	[E_City] [nvarchar](155) NULL,
	[ParentID] [int] NULL,
	[OrderID] [int] NULL,
	[Depth] [int] NULL,
	[Letter] [nvarchar](50) NULL,
	[WebUrl] [nvarchar](100) NULL,
	[WebTitle] [nvarchar](255) NULL,
	[WebLogo] [nvarchar](255) NULL,
	[MetaKeyWord] [nvarchar](255) NULL,
	[MetaDescript] [nvarchar](255) NULL,
	[CopyRight] [nvarchar](255) NULL,
	[ContactMan] [nvarchar](100) NULL,
	[Tel] [nvarchar](100) NULL,
	[Address] [nvarchar](200) NULL,
	[QQ] [nvarchar](100) NULL,
	[Email] [nvarchar](100) NULL,
	[IsShow] [tinyint] NULL,
	[eptotal] [int] NULL,
 CONSTRAINT [PK_KS_Area] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_AgYJ]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_AgYJ](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NULL,
	[UserName] [varchar](50) NULL,
	[OrderID] [nvarchar](50) NULL,
	[PicUrl] [varchar](255) NULL,
	[CourseID] [int] NULL,
	[Cname] [nvarchar](200) NULL,
	[Type] [int] NULL,
	[Status] [int] NULL,
	[AddDate] [datetime] NULL,
	[Price] [money] NULL,
	[Discount] [money] NULL,
	[Rate1] [float] NULL,
	[Rate2] [float] NULL,
	[AgYJ1] [money] NULL,
	[AgYJ2] [money] NULL,
	[Tag] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_AgUser]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_AgUser](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](100) NULL,
	[PhotoUrl] [nvarchar](255) NULL,
	[RealName] [nvarchar](50) NULL,
	[Mobile] [nvarchar](50) NULL,
	[Email] [nvarchar](50) NULL,
	[Status] [int] NULL,
	[BankName] [nvarchar](50) NULL,
	[BankCard] [nvarchar](50) NULL,
	[CardName] [nvarchar](50) NULL,
	[AlipayNo] [nvarchar](50) NULL,
	[WechatNo] [nvarchar](50) NULL,
	[Enterprise] [nvarchar](100) NULL,
	[EpCode] [nvarchar](100) NULL,
	[EpLicence] [nvarchar](255) NULL,
	[EpAddress] [nvarchar](100) NULL,
	[EpemployeeNum] [nvarchar](50) NULL,
	[ProvinceID] [int] NULL,
	[CityID] [int] NULL,
	[CountyID] [int] NULL,
	[IndustryID] [int] NULL,
	[CatetoryID] [int] NULL,
	[EpNature] [nvarchar](20) NULL,
	[ApplyDate] [datetime] NULL,
	[JoinDate] [datetime] NULL,
	[TotalYJ] [money] NULL,
	[TotalAgent] [int] NULL,
	[UserID] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_AgTX]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_AgTX](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Money] [money] NULL,
	[ApplyMoney] [money] NULL,
	[ShouxuFee] [money] NULL,
	[AddDate] [datetime] NULL,
	[Remark] [ntext] NULL,
	[Status] [int] NULL,
	[Flag] [int] NULL,
	[UserID] [int] NULL,
	[UserName] [nvarchar](50) NULL,
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_AgPYQView]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_AgPYQView](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[SourceID] [int] NULL,
	[AddDate] [datetime] NULL,
	[UserID] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_AgPYQ]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_AgPYQ](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Title] [nvarchar](255) NULL,
	[Intro] [text] NULL,
	[PicUrls] [text] NULL,
	[AddDate] [datetime] NULL,
	[UserName] [nvarchar](50) NULL,
	[Hits] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_AgentYJ]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_AgentYJ](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NULL,
	[UserName] [varchar](50) NULL,
	[OrderID] [nvarchar](50) NULL,
	[PicUrl] [varchar](255) NULL,
	[InfoID] [int] NULL,
	[Cname] [nvarchar](200) NULL,
	[Type] [int] NULL,
	[Status] [int] NULL,
	[AddDate] [datetime] NULL,
	[UnitPrice] [money] NULL,
	[Num] [int] NULL,
	[Price] [money] NULL,
	[Discount] [money] NULL,
	[YjType] [int] NULL,
	[Rate1] [float] NULL,
	[Rate2] [float] NULL,
	[Rate3] [float] NULL,
	[YjRate1] [money] NULL,
	[YjRate2] [money] NULL,
	[YjRate3] [money] NULL,
	[InPrice] [money] NULL,
	[Tag] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_AgentTX]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_AgentTX](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](50) NULL,
	[AddDate] [datetime] NULL,
	[Money] [money] NULL,
	[BankName] [nvarchar](255) NOT NULL,
	[XM] [nvarchar](50) NULL,
	[BankCard] [nvarchar](50) NULL,
	[Remark] [ntext] NULL,
	[Status] [int] NULL,
	[Reply] [ntext] NULL,
	[flag] [int] NULL,
	[AlipayNo] [nvarchar](50) NULL,
	[WeiPayNo] [nvarchar](50) NULL,
	[ShouxuFree] [money] NULL,
	[OriMoney] [money] NULL,
	[TxType] [tinyint] NULL,
	[UserID] [int] NULL,
	[OrderID] [varchar](50) NULL,
	[payment_no] [varchar](50) NULL,
 CONSTRAINT [PK_KS_AgentTX] PRIMARY KEY NONCLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_AgentShopProduct]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_AgentShopProduct](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NULL,
	[ProID] [int] NULL,
	[AddDate] [datetime] NULL,
 CONSTRAINT [PK_KS_AgentShopProduct] PRIMARY KEY NONCLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_AgentShop]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_AgentShop](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[Title] [nvarchar](255) NULL,
	[Intro] [ntext] NULL,
	[AddDate] [datetime] NULL,
	[Logo] [nvarchar](255) NULL,
	[UserName] [nvarchar](50) NULL,
	[UserId] [int] NULL,
	[SkinID] [int] NULL,
	[Status] [int] NULL,
	[RealName] [nvarchar](50) NULL,
	[Mobile] [nvarchar](50) NULL,
	[BankName] [nvarchar](100) NULL,
	[BankCard] [nvarchar](100) NULL,
	[AlipayNo] [nvarchar](100) NULL,
	[WeiPayNo] [nvarchar](100) NULL,
	[PhotoUrls] [text] NULL,
	[TotalYJ] [money] NULL,
	[TotalTX] [money] NULL,
	[TotalFXS] [int] NULL,
	[AgentType] [int] NULL,
	[CosSkinID] [int] NULL,
	[IsMyCosShop] [tinyint] NULL,
 CONSTRAINT [PK_KS_AgentShop] PRIMARY KEY NONCLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_AgentPYQView]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_AgentPYQView](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NULL,
	[PigID] [int] NULL,
	[AddDate] [datetime] NULL,
	[PYQViewType] [tinyint] NULL,
 CONSTRAINT [PK_KS_AgentPYQView] PRIMARY KEY NONCLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_AgentPYQ]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_AgentPYQ](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Title] [nvarchar](255) NULL,
	[PicUrls] [text] NULL,
	[AddDate] [datetime] NULL,
	[Intro] [text] NULL,
	[UserName] [nvarchar](50) NULL,
	[Hits] [int] NULL,
	[PYQType] [tinyint] NULL,
 CONSTRAINT [PK_KS_AgentPYQ] PRIMARY KEY NONCLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_AdminRole]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_AdminRole](
	[RoleID] [int] NULL,
	[RoleName] [nvarchar](255) NULL,
	[Remark] [ntext] NULL,
	[OrderID] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_AdminPlan]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_AdminPlan](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [varchar](100) NULL,
	[Content] [ntext] NULL,
	[AddDate] [datetime] NULL,
	[Status] [int] NULL,
	[TipsDays] [int] NULL,
 CONSTRAINT [PK_KS_AdminPlan] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CourseReplayChat]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CourseReplayChat](
	[replayid] [int] IDENTITY(1,1) NOT NULL,
	[ChatID] [int] NULL,
	[UserName] [nvarchar](50) NULL,
	[Userid] [int] NULL,
	[UserIP] [nvarchar](50) NULL,
	[ReplayData] [datetime] NULL,
	[ReplayContent] [ntext] NULL,
	[ChatStatus] [int] NULL,
	[AskContent] [ntext] NULL,
	[ParentID] [int] NULL,
	[ReplayType] [int] NULL,
	[ZanNum] [int] NULL,
 CONSTRAINT [PK_KS_CourseReplayChat] PRIMARY KEY CLUSTERED 
(
	[replayid] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CoursePJ]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CoursePJ](
	[PJID] [int] IDENTITY(1,1) NOT NULL,
	[parentID] [int] NULL,
	[CosContent] [ntext] NULL,
	[Cosnumber] [int] NULL,
	[username] [nvarchar](50) NULL,
	[CourseID] [int] NULL,
	[AddDate] [datetime] NULL,
	[status] [tinyint] NULL,
	[templateFile] [varchar](255) NULL,
	[EpID] [int] NULL,
	[EpStartNum] [int] NULL,
	[CmtType] [int] NULL,
	[OrderType] [int] NULL,
	[OrderId] [varchar](100) NULL,
	[UserID] [int] NULL,
	[UserIp] [varchar](50) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CourseFaceSign]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CourseFaceSign](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NULL,
	[UserName] [varchar](100) NULL,
	[CourseID] [int] NULL,
	[CourseName] [varchar](100) NULL,
	[IsSignIn] [int] NULL,
	[SignDate] [datetime] NULL,
 CONSTRAINT [PK_KS_CourseFaceSign] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CourseFacePeriod]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CourseFacePeriod](
	[PeriodID] [int] IDENTITY(1,1) NOT NULL,
	[OrderID] [int] NULL,
	[CourseID] [int] NULL,
	[PeriodName] [nvarchar](255) NULL,
	[UserName] [nvarchar](255) NULL,
	[UserID] [int] NULL,
	[Tcname] [nvarchar](255) NULL,
	[TcID] [int] NULL,
	[AddDate] [datetime] NULL,
	[StartTime] [datetime] NULL,
	[EndTime] [datetime] NULL,
	[Intro] [text] NULL,
	[Remark] [ntext] NULL,
	[ParentID] [int] NULL,
	[Depth] [int] NULL,
	[Child] [int] NULL,
	[ParentIDPath] [nvarchar](100) NULL,
	[AddType] [int] NULL,
	[IsFree] [tinyint] NULL,
	[Money] [money] NULL,
	[Score] [int] NULL,
 CONSTRAINT [PK_KS_CourseFacePeriod] PRIMARY KEY CLUSTERED 
(
	[PeriodID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CourseFace]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CourseFace](
	[CourseID] [int] IDENTITY(1,1) NOT NULL,
	[ClassID] [int] NULL,
	[Provinceid] [int] NULL,
	[Cityid] [int] NULL,
	[CountyId] [int] NULL,
	[Name] [varchar](200) NULL,
	[Intro] [text] NULL,
	[Target] [ntext] NULL,
	[Notice] [ntext] NULL,
	[PeriodID] [int] NULL,
	[ChargePeriod] [tinyint] NOT NULL,
	[TeacherName] [varchar](100) NULL,
	[Teacher] [nvarchar](250) NULL,
	[TCID] [varchar](100) NULL,
	[TeacherID] [int] NULL,
	[UserID] [int] NULL,
	[SchoolName] [nvarchar](255) NULL,
	[Money] [money] NULL,
	[Price_Member] [money] NULL,
	[zhekou] [varchar](50) NULL,
	[IsExam] [int] NULL,
	[examids] [varchar](1050) NULL,
	[examPleID] [varchar](255) NULL,
	[Recommend] [tinyint] NULL,
	[popular] [tinyint] NULL,
	[comment] [tinyint] NULL,
	[istop] [tinyint] NULL,
	[addTime] [datetime] NULL,
	[keytags] [varchar](255) NULL,
	[TeachWay] [tinyint] NULL,
	[SeoTitle] [varchar](255) NULL,
	[SeoKeywords] [varchar](255) NULL,
	[SeoDescription] [varchar](255) NULL,
	[Verify] [tinyint] NULL,
	[Huandeng] [tinyint] NULL,
	[templateFile] [varchar](255) NULL,
	[IsTemplate] [tinyint] NULL,
	[CountPid] [int] NULL,
	[photourl] [varchar](255) NULL,
	[templateFile1] [varchar](500) NULL,
	[tryout] [tinyint] NULL,
	[BeginTime] [varchar](50) NULL,
	[EndTime] [varchar](50) NULL,
	[faceadd] [varchar](500) NULL,
	[is3g] [tinyint] NULL,
	[IsFree] [int] NULL,
	[username] [varchar](50) NULL,
	[buycount] [int] NULL,
	[lookcount] [int] NULL,
	[coursepf] [float] NULL,
	[regulations] [int] NULL,
	[IsOtherTc] [tinyint] NULL,
	[isBind] [tinyint] NULL,
	[system] [tinyint] NULL,
	[refreshdate] [datetime] NULL,
	[schedule] [ntext] NULL,
	[number] [int] NULL,
	[Cashback] [money] NULL,
	[EffectiveDay] [int] NULL,
	[IsOff] [tinyint] NULL,
	[CollectCount] [int] NULL,
	[MaxPerson] [int] NULL,
	[pfnum] [int] NULL,
	[IsRefresh] [int] NULL,
	[FileName] [varchar](100) NULL,
	[jifen] [int] NULL,
	[PanicMoney] [money] NULL,
	[Promotion] [int] NULL,
	[shixian] [int] NULL,
	[OpenDate] [datetime] NULL,
	[PingTaiRate] [float] NULL,
	[ProviceRate] [float] NULL,
	[CityRate] [float] NULL,
	[SchoolID] [int] NULL,
	[TeacherNum] [int] NULL,
	[SjNum] [int] NULL,
	[PropNum] [int] NULL,
	[ChatNum] [int] NULL,
	[ZlNum] [int] NULL,
	[StudentNum] [int] NULL,
	[PjNum] [int] NULL,
	[totalc] [int] NULL,
	[totalz] [int] NULL,
	[mapID] [varchar](50) NULL,
	[tagsids] [varchar](1000) NULL,
	[receivedDay] [int] NULL,
	[IsSendNote] [tinyint] NULL,
	[NotePrice] [money] NULL,
	[NoteContent] [nvarchar](255) NULL,
	[IsContainTax] [tinyint] NULL,
 CONSTRAINT [PK_KS_CourseFace] PRIMARY KEY CLUSTERED 
(
	[CourseID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CourseChat]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CourseChat](
	[ChatID] [int] IDENTITY(1,1) NOT NULL,
	[ChatType] [int] NULL,
	[ChatInfoid] [int] NULL,
	[UserId] [int] NULL,
	[UserName] [nvarchar](500) NULL,
	[AddData] [datetime] NULL,
	[ReplayDate] [datetime] NULL,
	[Courseid] [int] NULL,
	[CourseName] [nvarchar](500) NULL,
	[CourseType] [int] NULL,
	[Periodid] [int] NULL,
	[ChatStatus] [int] NULL,
	[ChatContent] [ntext] NULL,
	[ChatImg] [nvarchar](500) NULL,
	[ChatReplayTable] [nvarchar](50) NULL,
	[TcID] [int] NULL,
	[TcName] [nvarchar](500) NULL,
	[SchoolID] [int] NULL,
	[Status] [int] NULL,
	[ParentID] [int] NULL,
	[IsPublic] [int] NULL,
	[UserFace] [nvarchar](500) NULL,
	[Type] [int] NULL,
	[ZanNum] [int] NULL,
	[PostNum] [int] NULL,
 CONSTRAINT [PK_KS_CourseChat] PRIMARY KEY CLUSTERED 
(
	[ChatID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_Course]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_Course](
	[CourseID] [int] IDENTITY(1,1) NOT NULL,
	[ClassID] [int] NULL,
	[Provinceid] [int] NULL,
	[Cityid] [int] NULL,
	[CountyId] [int] NULL,
	[Name] [varchar](500) NULL,
	[Intro] [text] NULL,
	[Target] [ntext] NULL,
	[Notice] [ntext] NULL,
	[PeriodID] [int] NULL,
	[TeacherName] [varchar](100) NULL,
	[Teacher] [nvarchar](255) NULL,
	[TCID] [varchar](100) NULL,
	[TeacherID] [int] NULL,
	[Money] [money] NULL,
	[Price_Member] [money] NULL,
	[zhekou] [varchar](50) NULL,
	[IsExam] [int] NULL,
	[examPleID] [varchar](255) NULL,
	[Recommend] [tinyint] NULL,
	[popular] [tinyint] NULL,
	[comment] [tinyint] NULL,
	[istop] [tinyint] NULL,
	[addTime] [datetime] NULL,
	[keytags] [varchar](255) NULL,
	[TeachWay] [tinyint] NULL,
	[SeoTitle] [varchar](255) NULL,
	[SeoKeywords] [varchar](255) NULL,
	[SeoDescription] [varchar](255) NULL,
	[Verify] [tinyint] NULL,
	[Huandeng] [tinyint] NULL,
	[templateFile] [varchar](255) NULL,
	[IsTemplate] [tinyint] NULL,
	[CountPid] [int] NULL,
	[photourl] [varchar](255) NULL,
	[templateFile1] [varchar](500) NULL,
	[tryout] [tinyint] NULL,
	[BeginTime] [varchar](50) NULL,
	[EndTime] [varchar](50) NULL,
	[faceadd] [varchar](500) NULL,
	[is3g] [tinyint] NULL,
	[IsFree] [int] NULL,
	[username] [varchar](50) NULL,
	[buycount] [int] NULL,
	[lookcount] [int] NULL,
	[coursepf] [float] NULL,
	[GoldMemberID] [varchar](255) NULL,
	[OrdinaryMemberID] [varchar](255) NULL,
	[regulations] [int] NULL,
	[IsOtherTc] [tinyint] NULL,
	[isBind] [tinyint] NULL,
	[ISLoad] [int] NULL,
	[Loadzhekou] [varchar](10) NULL,
	[FixedPrice] [money] NULL,
	[GradeId] [int] NULL,
	[listeningID] [varchar](1500) NULL,
	[Promotion] [tinyint] NULL,
	[Limited] [int] NULL,
	[PanicMoney] [money] NULL,
	[jifen] [int] NULL,
	[shixian] [int] NULL,
	[buylimit] [int] NULL,
	[system] [tinyint] NULL,
	[pfnum] [int] NULL,
	[ShortName] [varchar](100) NULL,
	[MoreClass] [varchar](500) NULL,
	[Cashback] [money] NULL,
	[IsOff] [tinyint] NULL,
	[EffectiveDay] [int] NULL,
	[CollectCount] [int] NULL,
	[FileName] [varchar](100) NULL,
	[IsRefresh] [int] NULL,
	[IsPeriod] [tinyint] NULL,
	[Uid] [varchar](250) NULL,
	[liveid] [varchar](250) NULL,
	[ChannelPasswd] [varchar](250) NULL,
	[LearnLimitDate] [datetime] NULL,
	[LimitLearn] [int] NULL,
	[RecScore] [int] NULL,
	[PingTaiRate] [float] NULL,
	[ProviceRate] [float] NULL,
	[CityRate] [float] NULL,
	[LiveType] [int] NULL,
	[AccountID] [int] NULL,
	[UserID] [int] NULL,
	[SchoolName] [nvarchar](250) NULL,
	[LiveState] [tinyint] NULL,
	[wlink] [tinyint] NULL,
	[limithours] [int] NULL,
	[departIds] [nvarchar](1000) NULL,
	[IsReChargeSj] [tinyint] NULL,
	[SchoolID] [int] NULL,
	[TeacherNum] [int] NULL,
	[SjNum] [int] NULL,
	[PropNum] [int] NULL,
	[ChatNum] [int] NULL,
	[ZlNum] [int] NULL,
	[StudentNum] [int] NULL,
	[PjNum] [int] NULL,
	[totalz] [int] NULL,
	[totalc] [int] NULL,
	[chargeperiod] [int] NULL,
	[tagsids] [nvarchar](1000) NULL,
	[receivedDay] [int] NULL,
	[IsSendNote] [tinyint] NULL,
	[NotePrice] [money] NULL,
	[NoteContent] [nvarchar](255) NULL,
	[IsContainTax] [tinyint] NULL,
	[IsCommentPermit] [int] NULL,
	[IsRefund] [int] NULL,
	[CourseType] [tinyint] NULL,
	[BmBeginTime] [varchar](50) NULL,
	[BmEndTime] [varchar](50) NULL,
 CONSTRAINT [PK_KS_Course] PRIMARY KEY CLUSTERED 
(
	[CourseID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosZlLog]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosZlLog](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[ZlId] [int] NULL,
	[username] [varchar](100) NULL,
	[adddate] [datetime] NULL,
	[times] [int] NULL,
	[Inputer] [varchar](100) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosZl]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosZl](
	[ZLID] [int] IDENTITY(1,1) NOT NULL,
	[CourseName] [varchar](100) NULL,
	[CourseID] [int] NULL,
	[OrderID] [int] NULL,
	[ClassID] [nvarchar](255) NULL,
	[ZLName] [varchar](255) NULL,
	[tcName] [varchar](50) NULL,
	[photourl] [varchar](255) NULL,
	[ZLIntro] [ntext] NOT NULL,
	[DocType] [varchar](10) NULL,
	[IsPublic] [tinyint] NULL,
	[ZLAdd] [varchar](255) NULL,
	[swfUrl] [varchar](255) NULL,
	[payswfurl] [varchar](255) NULL,
	[AddDate] [datetime] NULL,
	[KeyTags] [varchar](50) NULL,
	[Username] [varchar](50) NULL,
	[hits] [int] NULL,
	[download] [int] NULL,
	[score] [float] NULL,
	[verify] [tinyint] NULL,
	[page] [int] NULL,
	[totalpage] [int] NULL,
	[prices] [money] NULL,
	[size] [float] NULL,
	[type] [tinyint] NULL,
 CONSTRAINT [PK_KS_CosZl] PRIMARY KEY CLUSTERED 
(
	[ZLID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosVideoAdvertise]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosVideoAdvertise](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[title] [varchar](500) NULL,
	[AdvertiseMaterial] [varchar](500) NULL,
	[AdvertiseType] [tinyint] NULL,
	[cataids] [varchar](50) NULL,
	[size] [int] NULL,
	[startDate] [datetime] NULL,
	[endDate] [datetime] NULL,
	[status] [tinyint] NULL,
	[VideoType] [tinyint] NULL,
	[AddUser] [varchar](50) NULL,
	[AddDate] [datetime] NULL,
	[adid] [varchar](50) NULL,
 CONSTRAINT [PK_KS_CosVideoAdvertise] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'视频广告标题' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_CosVideoAdvertise', @level2type=N'COLUMN',@level2name=N'title'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'广告素材' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_CosVideoAdvertise', @level2type=N'COLUMN',@level2name=N'AdvertiseMaterial'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'广告类型：1片头，2暂停,3片尾' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_CosVideoAdvertise', @level2type=N'COLUMN',@level2name=N'AdvertiseType'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'广告分类' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_CosVideoAdvertise', @level2type=N'COLUMN',@level2name=N'cataids'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'广告时长' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_CosVideoAdvertise', @level2type=N'COLUMN',@level2name=N'size'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'投放开始日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_CosVideoAdvertise', @level2type=N'COLUMN',@level2name=N'startDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'投放停止日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_CosVideoAdvertise', @level2type=N'COLUMN',@level2name=N'endDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'状态:10已上线,1待上线,0已下线' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_CosVideoAdvertise', @level2type=N'COLUMN',@level2name=N'status'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'播放器类型：5是保利卫视' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_CosVideoAdvertise', @level2type=N'COLUMN',@level2name=N'VideoType'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'添加者' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_CosVideoAdvertise', @level2type=N'COLUMN',@level2name=N'AddUser'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'添加时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_CosVideoAdvertise', @level2type=N'COLUMN',@level2name=N'AddDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'保利卫视的广告ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_CosVideoAdvertise', @level2type=N'COLUMN',@level2name=N'adid'
GO
/****** Object:  Table [dbo].[KS_CosTeacherScore]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosTeacherScore](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [varchar](250) NULL,
	[UserID] [int] NULL,
	[Score] [int] NULL,
	[CurrentScore] [int] NULL,
	[Remark] [text] NULL,
	[AddDate] [datetime] NULL,
	[ItemID] [int] NULL,
	[CaozuoType] [int] NULL,
	[UserIP] [varchar](50) NULL,
	[RecordID] [int] NULL,
 CONSTRAINT [PK_KS_CosTeacherScore] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosTeacherPJ]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosTeacherPJ](
	[ID] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
	[UserID] [int] NULL,
	[username] [varchar](50) NULL,
	[PJcontent] [ntext] NULL,
	[PJstar] [float] NULL,
	[tcID] [int] NULL,
	[tcname] [varchar](100) NULL,
	[PJdate] [datetime] NULL,
	[status] [int] NULL,
	[del] [int] NULL,
 CONSTRAINT [PK_KS_TeacherPJ] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosTeacherCertificate]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosTeacherCertificate](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Title] [varchar](250) NULL,
	[IdCard] [varchar](50) NULL,
	[CertificateNumber] [varchar](50) NULL,
	[PhotoUrl] [varchar](350) NULL,
	[AddDate] [datetime] NULL,
	[Verify] [tinyint] NULL,
	[Flag] [tinyint] NULL,
	[UserID] [int] NULL,
	[TcID] [int] NULL,
	[Remarks] [text] NULL,
	[VerifyTime] [datetime] NULL,
 CONSTRAINT [PK_KS_CosTeacherCertificate] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosTeacher]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosTeacher](
	[TcID] [int] IDENTITY(1,1) NOT NULL,
	[TName] [varchar](100) NULL,
	[Tlxdh] [varchar](50) NULL,
	[Tadd] [varchar](200) NULL,
	[ClassID] [varchar](50) NULL,
	[Provinceid] [int] NULL,
	[Cityid] [int] NULL,
	[CourseID] [int] NULL,
	[sex] [tinyint] NULL,
	[photo] [varchar](255) NULL,
	[verify] [tinyint] NULL,
	[Tintro] [text] NULL,
	[adddate] [datetime] NULL,
	[Tlevel] [varchar](1000) NULL,
	[email] [varchar](100) NULL,
	[TeName] [varchar](100) NULL,
	[czdh] [varchar](500) NULL,
	[pxzc] [varchar](3000) NULL,
	[fwkh] [varchar](3000) NULL,
	[UserName] [varchar](50) NULL,
	[Field] [varchar](50) NULL,
	[UserID] [int] NULL,
	[SchoolID] [int] NULL,
	[Grade] [int] NULL,
	[OrderTotal] [int] NULL,
	[CourseTotal] [int] NULL,
	[AskTotal] [int] NULL,
	[AnswerTotal] [int] NULL,
	[CountyId] [int] NULL,
	[GradeId] [int] NULL,
	[SubjectId] [int] NULL,
	[system] [tinyint] NULL,
	[totalPJ] [float] NULL,
	[MessageCount] [int] NULL,
	[PJCount] [int] NULL,
	[PJRate] [float] NULL,
	[IsRecommend] [tinyint] NULL,
	[LookCount] [int] NULL,
	[totalc] [int] NULL,
	[totalz] [int] NULL,
	[midrate] [float] NULL,
	[badrate] [float] NULL,
	[IsRefresh] [int] NULL,
	[FileName] [varchar](100) NULL,
	[CreditScore] [int] NULL,
	[ScoreImg] [varchar](500) NULL,
	[ScoreItemID] [int] NULL,
	[ScoreName] [varchar](200) NULL,
	[FaceClass] [varchar](5000) NULL,
	[CourseClass] [varchar](5000) NULL,
	[ExamClass] [varchar](7000) NULL,
	[DuanXinTiaoShu] [int] NULL,
	[SMSTotal] [int] NULL,
	[TcPower] [varchar](1000) NULL,
	[SchoolName] [nvarchar](255) NULL,
	[XueLiNum] [int] NULL,
	[ZhiYeNum] [int] NULL,
	[TotalSale] [money] NULL,
	[DivideInto] [money] NULL,
	[Withdrawals] [money] NULL,
 CONSTRAINT [PK_KS_CosTeacher] PRIMARY KEY CLUSTERED 
(
	[TcID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosSMSLog]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosSMSLog](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Mobile] [varchar](50) NULL,
	[AddDate] [datetime] NULL,
	[IsSuccess] [tinyint] NULL,
	[UserName] [nvarchar](50) NULL,
	[Remark] [text] NULL,
	[Content] [text] NULL,
	[UserIP] [varchar](100) NULL,
	[Model] [varchar](100) NULL,
	[ContentLeng] [int] NULL,
	[Num] [int] NULL,
	[GroupID] [int] NULL,
	[Status] [int] NULL,
 CONSTRAINT [PK_KS_CosSMSLog] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosShoppingCart]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosShoppingCart](
	[CartID] [int] IDENTITY(1,1) NOT NULL,
	[CourseID] [int] NULL,
	[Price_Member] [money] NULL,
	[Price] [money] NULL,
	[AddDate] [datetime] NULL,
	[UserName] [varchar](255) NULL,
	[IsAnonymous] [tinyint] NULL,
	[IsChangeBuy] [tinyint] NULL,
	[IsLimitBuy] [tinyint] NULL,
	[LimitBuyTaskID] [int] NULL,
	[AttrID] [int] NULL,
	[flag] [int] NULL,
	[photourl] [varchar](255) NULL,
	[CName] [varchar](255) NULL,
	[templateFile] [varchar](255) NULL,
	[courseorder] [varchar](50) NULL,
	[remark] [varchar](500) NULL,
	[orderid] [varchar](50) NULL,
	[orderusername] [varchar](50) NULL,
	[realname] [varchar](50) NULL,
	[mobile] [varchar](50) NULL,
	[Address] [varchar](200) NULL,
	[shixian] [int] NULL,
	[IsNumber] [int] NULL,
	[banxin] [varchar](50) NULL,
	[cityid] [int] NULL,
	[BundleSaleCourseID] [int] NULL,
	[Cashback] [money] NULL,
	[faceinfo] [ntext] NULL,
	[EffectiveDay] [int] NULL,
	[orderScore] [float] NULL,
	[RecScore] [int] NULL,
	[PingTaiRate] [money] NULL,
	[ProviceRate] [money] NULL,
	[CityRate] [money] NULL,
	[proportionPT] [float] NULL,
	[proportionPr] [float] NULL,
	[proportionCt] [float] NULL,
	[bindtype] [int] NULL,
	[limitlearn] [tinyint] NULL,
	[SchoolID] [int] NULL,
	[OrderType] [int] NULL,
	[OrderFlag] [int] NULL,
	[OrderPromotion] [tinyint] NULL,
	[UserID] [int] NULL,
 CONSTRAINT [PK_KS_CosShoppingCart] PRIMARY KEY CLUSTERED 
(
	[CartID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosPropItem]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CosPropItem](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Courseid] [int] NULL,
	[Lessonid] [int] NULL,
	[Proptype] [int] NULL,
	[Remark] [nvarchar](500) NULL,
	[Propid] [int] NULL,
	[Propinfo] [nvarchar](500) NULL,
	[Times] [int] NULL,
	[Userid] [int] NULL,
	[Username] [nvarchar](50) NULL,
	[Award] [ntext] NULL,
	[QiangType] [int] NULL,
	[QiangConten] [nvarchar](50) NULL,
	[AddDate] [datetime] NULL,
	[GameType] [int] NULL,
	[CourseType] [int] NULL,
 CONSTRAINT [PK_KS_CosPropItem] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CosProp]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CosProp](
	[Propid] [int] IDENTITY(1,1) NOT NULL,
	[Courseid] [int] NULL,
	[Lessonids] [nvarchar](50) NULL,
	[Type] [int] NULL,
	[Bindid] [int] NULL,
	[Times] [int] NULL,
	[Worknum] [int] NULL,
	[Addtime] [datetime] NULL,
	[Username] [nvarchar](50) NULL,
	[Userid] [int] NULL,
	[Loadtype] [int] NULL,
	[Videostatus] [int] NULL,
	[Seekstatus] [int] NULL,
	[CourseType] [int] NULL,
 CONSTRAINT [PK_KS_CosProp] PRIMARY KEY CLUSTERED 
(
	[Propid] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CosPeriod]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosPeriod](
	[PeriodID] [int] IDENTITY(1,1) NOT NULL,
	[OrderID] [int] NULL,
	[CourseID] [int] NULL,
	[PeriodName] [varchar](255) NULL,
	[Url] [varchar](1000) NULL,
	[Image] [varchar](255) NULL,
	[IsFree] [tinyint] NULL,
	[templateFile] [nvarchar](255) NULL,
	[IsExample] [tinyint] NULL,
	[intro] [text] NULL,
	[adddate] [datetime] NULL,
	[remark] [varchar](255) NULL,
	[endtime] [datetime] NULL,
	[timeCount] [int] NULL,
	[username] [varchar](50) NULL,
	[parentid] [int] NULL,
	[addtype] [int] NULL,
	[root] [int] NULL,
	[child] [int] NULL,
	[depth] [int] NULL,
	[type] [int] NULL,
	[IsExam] [tinyint] NULL,
	[examPleID] [varchar](255) NULL,
	[jifen] [int] NULL,
	[IsRepeat] [int] NULL,
	[IsMobilePlayerJS] [ntext] NULL,
	[ParentIDPath] [varchar](50) NULL,
	[money] [money] NULL,
	[IsThreeScreen] [tinyint] NULL,
	[IsListening] [tinyint] NULL,
	[ListeningSeconds] [int] NULL,
	[ban_seek] [tinyint] NULL,
	[limitlearnTime] [int] NULL,
	[limitlearn] [int] NULL,
	[zlUrl] [nvarchar](1000) NULL,
 CONSTRAINT [PK_KS_Period] PRIMARY KEY CLUSTERED 
(
	[PeriodID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosOrderReturn]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosOrderReturn](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[OrderID] [nvarchar](50) NULL,
	[UserID] [int] NULL,
	[UserName] [nvarchar](100) NULL,
	[Money] [money] NULL,
	[MoneyType] [int] NULL,
	[Status] [int] NULL,
	[AddDate] [datetime] NULL,
	[BankName] [varchar](100) NULL,
	[BankCard] [varchar](150) NULL,
	[CardName] [varchar](100) NULL,
	[HandlerName] [nvarchar](50) NULL,
	[Remark] [ntext] NULL,
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosOrderLog]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CosOrderLog](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[OrderID] [nvarchar](50) NULL,
	[UserName] [nvarchar](100) NULL,
	[Inputer] [nvarchar](50) NULL,
	[AddDate] [datetime] NULL,
	[Remark] [nvarchar](255) NULL,
	[Status] [int] NULL,
	[LogID] [nvarchar](50) NULL,
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CosOrderItem]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosOrderItem](
	[ID] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
	[OrderID] [nvarchar](50) NOT NULL,
	[Cname] [nvarchar](200) NULL,
	[CourseID] [int] NULL,
	[Price_Market] [money] NULL,
	[Price] [money] NULL,
	[OrderTotalPrice] [money] NULL,
	[NotePrice] [money] NULL,
	[Freight] [money] NULL,
	[TaxPrice] [money] NULL,
	[num] [int] NULL,
	[TotalPrice] [money] NULL,
	[AttrID] [int] NULL,
	[OrderType] [tinyint] NULL,
	[IsNumber] [int] NULL,
	[shixian] [int] NULL,
	[UserID] [int] NULL,
	[UserName] [varchar](50) NULL,
	[photourl] [varchar](255) NULL,
	[banxin] [varchar](50) NULL,
	[IsPJ] [tinyint] NULL,
	[PayDiscountMoney] [money] NULL,
	[EffectiveDay] [int] NULL,
	[IsChangeBuy] [tinyint] NULL,
	[Remark] [nvarchar](255) NULL,
	[LimitBuyTaskID] [int] NULL,
	[IsLimitBuy] [int] NULL,
	[IsBundleSale] [int] NULL,
	[ChangeScore] [int] NULL,
	[FreightType] [int] NULL,
	[Business] [varchar](100) NULL,
	[CityID] [int] NULL,
	[BookCode] [varchar](100) NULL,
	[price_cost] [money] NULL,
	[IsCmt] [int] NULL,
	[Status] [tinyint] NULL,
	[RecScore] [int] NULL,
	[PingTaiRate] [money] NULL,
	[ProviceRate] [money] NULL,
	[CityRate] [money] NULL,
	[proportionPT] [float] NULL,
	[proportionPr] [float] NULL,
	[proportionCt] [float] NULL,
	[bindtype] [int] NULL,
	[limitlearn] [tinyint] NULL,
	[SchoolID] [int] NULL,
	[PeriodIDs] [varchar](500) NULL,
	[parentID] [int] NULL,
	[FreeOrder] [int] NULL,
	[EndDate] [datetime] NULL,
	[ItemType] [int] NULL,
	[IsBuyAllCos] [tinyint] NULL,
	[UserHongBaoNum] [varchar](150) NULL,
	[JiFen] [int] NULL,
 CONSTRAINT [PK_KS_CosOrderItem] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosOrder]    Script Date: 12/12/2018 20:03:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosOrder](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[CartID] [int] NULL,
	[OrderID] [varchar](500) NULL,
	[UserID] [int] NULL,
	[UserName] [nvarchar](50) NULL,
	[RealName] [varchar](50) NULL,
	[Mobile] [nvarchar](50) NULL,
	[QQ] [nvarchar](50) NULL,
	[Email] [nvarchar](50) NULL,
	[Remark] [nvarchar](500) NULL,
	[price] [money] NULL,
	[OrderTotalPrice] [money] NULL,
	[GoodsMoney] [money] NULL,
	[Freight] [money] NULL,
	[Taxes] [money] NULL,
	[UseCouponMoney] [money] NULL,
	[UserHongBaoMoney] [money] NULL,
	[UserCahseMoney] [money] NULL,
	[PayDiscountMoney] [money] NULL,
	[Invoice] [nvarchar](255) NULL,
	[IsInvoice] [tinyint] NULL,
	[Invoiced] [tinyint] NULL,
	[MoneyReceipt] [money] NULL,
	[NotePrice] [float] NULL,
	[InputTime] [datetime] NULL,
	[deliveryDate] [datetime] NULL,
	[SpecifiedDate] [nvarchar](100) NULL,
	[deliveryTime] [nvarchar](100) NULL,
	[PaymentID] [int] NULL,
	[DeliverID] [int] NULL,
	[Status] [int] NULL,
	[OrderScore] [int] NULL,
	[ScoreTF] [tinyint] NULL,
	[Address] [nvarchar](255) NULL,
	[ZipCode] [nvarchar](50) NULL,
	[ProvinceID] [int] NULL,
	[CityID] [int] NULL,
	[CountyID] [int] NULL,
	[DeliverStatus] [int] NULL,
	[IsAnonymous] [tinyint] NULL,
	[CouponUserID] [int] NULL,
	[PayTime] [datetime] NULL,
	[PaymentPlatId] [int] NULL,
	[PayStatus] [int] NULL,
	[alipaytradestatus] [varchar](50) NULL,
	[alipaytradeno] [varchar](50) NULL,
	[SmsNum] [int] NULL,
	[IsTips] [tinyint] NULL,
	[ChangeScore] [int] NULL,
	[GroupID] [int] NULL,
	[business] [nvarchar](50) NULL,
	[courseorder] [varchar](50) NULL,
	[orderusername] [varchar](50) NULL,
	[AttrID] [tinyint] NULL,
	[IsNumber] [int] NULL,
	[IsPJ] [tinyint] NULL,
	[faceinfo] [ntext] NULL,
	[EffectiveDay] [int] NULL,
	[OrderDevice] [int] NULL,
	[RecScore] [int] NULL,
	[AddressInfo] [varchar](1000) NULL,
	[MarkingWay] [int] NULL,
	[SettleTime] [datetime] NULL,
	[SettleInputer] [varchar](50) NULL,
	[ExpressNo] [nvarchar](250) NULL,
	[IsSendNote] [tinyint] NULL,
	[UserCouponNum] [varchar](150) NULL,
	[UserHongBaoNum] [nvarchar](50) NULL,
	[OrderFlag] [tinyint] NULL,
	[OrderPromotion] [tinyint] NULL,
 CONSTRAINT [PK_KS_CosOrder] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosNotice]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosNotice](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Courseid] [int] NULL,
	[TeacherId] [int] NULL,
	[Title] [varchar](200) NULL,
	[Content] [varchar](500) NULL,
	[adddate] [datetime] NULL,
	[publisher] [varchar](50) NULL,
	[State] [tinyint] NULL,
	[taskid] [int] NULL,
	[Address] [varchar](50) NULL,
 CONSTRAINT [PK_KS_CosNotice] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosLogInvoice]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CosLogInvoice](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[OrderID] [nvarchar](50) NULL,
	[ClientName] [nvarchar](50) NULL,
	[UserName] [nvarchar](100) NULL,
	[Inputer] [nvarchar](50) NULL,
	[InvoiceType] [nvarchar](100) NULL,
	[InvoiceNum] [nvarchar](50) NULL,
	[InvoiceTitle] [nvarchar](50) NULL,
	[InvoiceContent] [ntext] NULL,
	[InvoiceDate] [datetime] NULL,
	[MoneyTotal] [money] NULL,
	[HandlerName] [nvarchar](50) NULL,
	[InputTime] [datetime] NULL,
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CosLogDeliver]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CosLogDeliver](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[OrderID] [nvarchar](50) NULL,
	[ClientName] [nvarchar](50) NULL,
	[UserName] [nvarchar](100) NULL,
	[Inputer] [nvarchar](50) NULL,
	[HandlerName] [nvarchar](50) NULL,
	[DeliverDate] [datetime] NULL,
	[DeliverType] [int] NULL,
	[ExpressCorpID] [int] NULL,
	[ExpressNo] [nvarchar](50) NULL,
	[Status] [int] NULL,
	[Remark] [nvarchar](255) NULL,
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CosLiveServerItem]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosLiveServerItem](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](200) NULL,
	[serverID] [int] NULL,
	[type] [int] NULL,
	[maxchannel] [int] NULL,
	[channel] [int] NULL,
	[issys] [tinyint] NULL,
	[Uid] [varchar](100) NULL,
	[AppID] [varchar](100) NULL,
	[appkey] [varchar](200) NULL,
	[PlayDomain] [varchar](255) NULL,
	[liveDomain] [varchar](255) NULL,
	[username] [varchar](100) NULL,
	[Adddate] [datetime] NULL,
	[status] [tinyint] NULL,
	[Remark] [ntext] NULL,
 CONSTRAINT [PK_KS_CosLiveRoomItem] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CoslivePeriod]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CoslivePeriod](
	[PeriodID] [int] IDENTITY(1,1) NOT NULL,
	[OrderID] [int] NULL,
	[CourseID] [int] NULL,
	[PeriodName] [varchar](255) NULL,
	[Uid] [varchar](50) NULL,
	[liveID] [varchar](20) NULL,
	[channelPasswd] [varchar](50) NULL,
	[Url] [varchar](255) NULL,
	[IsFree] [tinyint] NULL,
	[IsExample] [tinyint] NULL,
	[intro] [text] NULL,
	[adddate] [datetime] NULL,
	[views] [int] NULL,
	[LiveTime] [datetime] NULL,
	[timeCount] [int] NULL,
	[username] [varchar](50) NULL,
	[parentid] [int] NULL,
	[addtype] [int] NULL,
	[root] [int] NULL,
	[child] [int] NULL,
	[depth] [int] NULL,
	[status] [tinyint] NULL,
	[IsPlayBack] [tinyint] NULL,
	[TemplateFile] [varchar](255) NULL,
	[IsExam] [tinyint] NULL,
	[examPleID] [varchar](255) NULL,
	[type] [int] NULL,
	[InvalidDate] [datetime] NULL,
	[OtherVideo] [varchar](500) NULL,
	[ID] [varchar](200) NULL,
	[Number] [varchar](200) NULL,
	[TeacherToken] [varchar](50) NULL,
	[StudentJoinUrl] [varchar](250) NULL,
	[KeJianUrl] [varchar](250) NULL,
	[IsMobilePlayerJS] [ntext] NULL,
	[IsMobileLivePlayerJS] [ntext] NULL,
	[ParentIdPath] [varchar](50) NULL,
	[IsOutsideLink] [tinyint] NULL,
	[SecretKey] [varchar](150) NULL,
	[IsLogIn] [tinyint] NULL,
	[zlUrl] [nvarchar](1000) NULL,
	[money] [money] NULL,
	[limitlearn] [int] NULL,
 CONSTRAINT [PK_KS_CoslivePeriod] PRIMARY KEY CLUSTERED 
(
	[PeriodID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosLiveManageRoom]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosLiveManageRoom](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[CourseID] [int] NULL,
	[periodID] [int] NULL,
	[title] [nvarchar](255) NULL,
	[Uid] [varchar](100) NULL,
	[RoomID] [varchar](100) NULL,
	[channelPasswd] [varchar](100) NULL,
	[secretkey] [varchar](50) NULL,
	[Livetype] [int] NULL,
	[accountid] [int] NULL,
	[AddDate] [datetime] NULL,
	[remark] [ntext] NULL,
	[userName] [nvarchar](50) NULL,
	[Status] [tinyint] NULL,
	[course_id] [int] NULL,
	[stuPass] [varchar](255) NULL,
	[authType] [tinyint] NULL,
 CONSTRAINT [PK_KS_CosLiveMangeRoom] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosLiveHold]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosLiveHold](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[userid] [int] NULL,
	[username] [varchar](50) NULL,
	[holdnum] [int] NULL,
	[acid] [int] NULL,
	[usertype] [int] NULL,
	[adddate] [datetime] NULL,
	[fasong] [int] NULL,
	[jieshou] [int] NULL,
	[lasttime] [datetime] NULL,
	[contribution] [int] NULL,
 CONSTRAINT [PK_KS_CosLiveHold] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosLiveCombo]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosLiveCombo](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[cbname] [varchar](50) NULL,
	[cbmoney] [money] NULL,
	[cbnum] [int] NULL,
	[acid] [int] NULL,
	[adddate] [datetime] NULL,
	[sellnum] [int] NULL,
 CONSTRAINT [PK_KS_CosLivecombo] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosLiveacOrder]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosLiveacOrder](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserId] [int] NULL,
	[UserName] [varchar](50) NULL,
	[AcId] [int] NULL,
	[ComboId] [int] NULL,
	[BuyCount] [int] NULL,
	[BuyDate] [datetime] NULL,
	[Price] [money] NULL,
	[AcNum] [int] NULL,
	[CourseId] [int] NULL,
	[Status] [int] NULL,
	[BuyType] [int] NULL,
	[HBType] [int] NULL,
	[HBName] [varchar](50) NULL,
	[OrderID] [varchar](50) NULL,
	[cbname] [nvarchar](200) NULL,
 CONSTRAINT [PK_KS_CosLiveacOrder] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosLiveacClass]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosLiveacClass](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[AcName] [nvarchar](50) NULL,
	[AddDate] [datetime] NULL,
	[AcImage] [varchar](255) NULL,
	[Accontent] [text] NULL,
	[IsXiala] [int] NULL,
	[Measure] [nvarchar](500) NULL,
	[Things] [nvarchar](500) NULL,
	[status] [int] NULL,
	[ContriBution] [int] NULL,
	[Type] [int] NULL,
	[CashMoneys] [money] NULL,
	[gametype] [int] NULL,
 CONSTRAINT [PK_KS_CosLiveacClass] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosLiveac]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosLiveac](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[senderid] [int] NULL,
	[sender] [varchar](50) NULL,
	[sendnum] [int] NULL,
	[senddate] [datetime] NULL,
	[sendertype] [int] NULL,
	[acepter] [varchar](50) NULL,
	[periodID] [int] NULL,
	[courseID] [int] NULL,
	[status] [int] NULL,
	[acid] [int] NULL,
	[contribution] [int] NULL,
 CONSTRAINT [PK_KS_CosLiveac] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosLearnTime]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosLearnTime](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[CourseID] [int] NOT NULL,
	[userid] [int] NOT NULL,
	[UserName] [nvarchar](50) NULL,
	[PeriodID] [int] NOT NULL,
	[TimeCount] [int] NULL,
	[LearnCount] [int] NULL,
	[MaxLearnCount] [int] NULL,
	[Learned] [int] NULL,
	[AddDate] [datetime] NULL,
	[LastDate] [datetime] NULL,
	[cosType] [tinyint] NULL,
	[status] [tinyint] NULL,
	[LastLearnIP] [varchar](100) NULL,
	[LastLearnDevice] [tinyint] NULL,
 CONSTRAINT [PK_KS_CosLearnTime] PRIMARY KEY CLUSTERED 
(
	[userid] ASC,
	[CourseID] ASC,
	[PeriodID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosLearnRecord]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosLearnRecord](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[CosType] [int] NULL,
	[UserId] [int] NULL,
	[UserName] [nvarchar](100) NULL,
	[CourseId] [int] NULL,
	[HasLearnTime] [float] NULL,
	[TotalTimeCount] [float] NULL,
	[AddDate] [datetime] NULL,
	[LastDate] [datetime] NULL,
	[FinishLearnTime] [datetime] NULL,
	[LastLearnPeriodID] [int] NULL,
	[LastLearnIP] [varchar](50) NULL,
	[Status] [int] NULL,
	[LastLearnDevice] [tinyint] NULL,
	[IsClose] [tinyint] NULL,
	[PayStatus] [int] NULL,
	[CardNum] [nvarchar](50) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
CREATE CLUSTERED INDEX [IX_KS_CosLearnRecord] ON [KS_CosLearnRecord] 
(
	[UserId] ASC,
	[CourseId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CosHomeWork]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosHomeWork](
	[WorkID] [int] IDENTITY(1,1) NOT NULL,
	[Title] [varchar](200) NULL,
	[Content] [text] NULL,
	[ClassRoomID] [int] NULL,
	[AddDate] [datetime] NULL,
	[UserID] [int] NULL,
	[Verify] [tinyint] NULL,
	[FjUrl] [varchar](2050) NULL,
	[IsExam] [tinyint] NULL,
	[examPleID] [varchar](2050) NULL,
	[IsAuto] [int] NULL,
	[endtime] [datetime] NULL,
	[IsWXNotice] [tinyint] NULL,
 CONSTRAINT [PK_KS_CosHomeWork] PRIMARY KEY CLUSTERED 
(
	[WorkID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosGroupPeriod]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosGroupPeriod](
	[PeriodID] [int] IDENTITY(1,1) NOT NULL,
	[OrderID] [int] NULL,
	[CourseID] [int] NULL,
	[PeriodName] [varchar](255) NULL,
	[Url] [varchar](255) NULL,
	[timeCount] [int] NULL,
	[IsFree] [tinyint] NULL,
	[IsExample] [tinyint] NULL,
	[intro] [text] NULL,
	[adddate] [datetime] NULL,
	[templateFile] [nvarchar](255) NULL,
	[username] [varchar](50) NULL,
	[parentid] [int] NULL,
	[addtype] [int] NULL,
	[root] [int] NULL,
	[child] [int] NULL,
	[depth] [int] NULL,
	[ParentIDPath] [varchar](50) NULL,
	[type] [int] NULL,
	[IsExam] [int] NULL,
	[examPleID] [varchar](255) NULL,
	[jifen] [int] NULL,
	[IsMobilePlayerJS] [ntext] NULL,
	[teachway] [tinyint] NULL,
	[LiveTime] [datetime] NULL,
	[InvalidDate] [datetime] NULL,
	[money] [money] NULL,
	[status] [int] NULL,
	[Setting] [text] NULL,
	[OtherVideo] [varchar](500) NULL,
	[ID] [varchar](200) NULL,
	[Number] [varchar](200) NULL,
	[TeacherToken] [varchar](50) NULL,
	[StudentJoinUrl] [varchar](250) NULL,
	[KeJianUrl] [varchar](250) NULL,
	[IsMobileLivePlayerJS] [ntext] NULL,
	[IsOutsideLink] [tinyint] NULL,
	[SecretKey] [varchar](150) NULL,
	[IsRepeat] [int] NULL,
	[IsThreeScreen] [tinyint] NULL,
	[IsListening] [tinyint] NULL,
	[ListeningSeconds] [int] NULL,
	[Uid] [varchar](50) NULL,
	[liveID] [varchar](20) NULL,
	[IsPlayBack] [tinyint] NULL,
	[ban_seek] [tinyint] NULL,
	[IsLogIn] [tinyint] NULL,
	[limitlearnTime] [int] NULL,
	[limitlearn] [int] NULL,
	[zlUrl] [nvarchar](1000) NULL,
 CONSTRAINT [PK_KS_CosGroupPeriod] PRIMARY KEY CLUSTERED 
(
	[PeriodID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosField]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosField](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[FieldModeType] [tinyint] NULL,
	[FieldName] [varchar](200) NULL,
	[FieldOrtherName] [varchar](200) NULL,
	[FieldType] [int] NULL,
	[InputItem] [tinyint] NULL,
	[IsDisabled] [tinyint] NULL,
	[FieldWidth] [int] NULL,
	[DefaultValue] [ntext] NULL,
	[Orderid] [int] NULL,
	[Tips] [ntext] NULL,
	[Toolbar] [varchar](100) NULL,
	[FieldHeight] [int] NULL,
	[AllowFileExt] [varchar](200) NULL,
	[MaxFileSize] [int] NULL,
	[AddDate] [datetime] NULL,
	[Options] [varchar](500) NULL,
	[DrpParentFieldID] [varchar](500) NULL,
	[ArrGroupID] [nvarchar](255) NULL,
 CONSTRAINT [PK_KS_CosField] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosFaceType]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosFaceType](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Title] [varchar](50) NULL,
	[Orderid] [int] NULL,
	[ParentId] [int] NULL,
	[Depth] [int] NULL,
	[adddate] [datetime] NULL,
 CONSTRAINT [PK_KS_CosFaceType] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CoseUserzan]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CoseUserzan](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NULL,
	[username] [varchar](50) NULL,
	[tcid] [int] NULL,
	[adddate] [datetime] NULL,
	[ChannelID] [int] NULL,
 CONSTRAINT [PK_KS_Userzan] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosContribution]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosContribution](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[userid] [int] NULL,
	[username] [varchar](50) NULL,
	[contribution] [int] NULL,
	[sendtime] [int] NULL,
	[lasttime] [datetime] NULL,
	[AcepterName] [nvarchar](50) NULL,
	[AcepterID] [int] NULL,
 CONSTRAINT [PK_KS_CosContribution] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosCollageDetail]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CosCollageDetail](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[CollageID] [int] NULL,
	[UserID] [int] NULL,
	[UserName] [nvarchar](50) NULL,
	[UserType] [int] NULL,
	[CollageNum] [int] NULL,
	[TotalNum] [int] NULL,
	[OrderID] [nvarchar](50) NULL,
	[PayOrder] [nvarchar](50) NULL,
	[CourseOrder] [nvarchar](50) NULL,
	[CourseID] [int] NULL,
	[Cname] [nvarchar](200) NULL,
	[PictureUrl] [nvarchar](150) NULL,
	[CourseType] [int] NULL,
	[Price] [money] NULL,
	[OrderPrice] [money] NULL,
	[NotePrice] [money] NULL,
	[TaxPrice] [money] NULL,
	[Status] [int] NULL,
	[AddDate] [datetime] NULL,
	[EndDate] [datetime] NULL,
 CONSTRAINT [PK__KS_CosCo__3214EC27714A3A31] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CosCollage]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CosCollage](
	[CollageID] [int] IDENTITY(1,1) NOT NULL,
	[CourseID] [int] NULL,
	[PictureUrl] [nvarchar](150) NULL,
	[Cname] [nvarchar](200) NULL,
	[CourseType] [int] NULL,
	[Price] [float] NULL,
	[Number] [int] NULL,
	[BeginDate] [datetime] NULL,
	[EndDate] [datetime] NULL,
	[LimitHours] [int] NULL,
	[HeaderPrice] [float] NULL,
	[CommonPrice] [float] NULL,
	[TotalCount] [int] NULL,
	[SuccessCount] [int] NULL,
	[Status] [int] NULL,
	[AddDate] [datetime] NULL,
 CONSTRAINT [PK__KS_CosCo__00881BCD428F4B48] PRIMARY KEY CLUSTERED 
(
	[CollageID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CosClassStudent]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CosClassStudent](
	[StudentID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NULL,
	[AddDate] [datetime] NULL,
	[Isdel] [tinyint] NULL,
	[IsPj] [tinyint] NULL,
	[RoomID] [int] NULL,
	[AskCount] [int] NULL,
	[verify] [int] NULL,
 CONSTRAINT [PK_KS_CosClassStudent] PRIMARY KEY CLUSTERED 
(
	[StudentID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CosClassRoom]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosClassRoom](
	[RoomID] [int] IDENTITY(1,1) NOT NULL,
	[Title] [varchar](150) NULL,
	[Verify] [tinyint] NULL,
	[IsBuy] [tinyint] NULL,
	[ClassID] [varchar](250) NULL,
	[Intro] [text] NULL,
	[DefaultPic] [varchar](250) NULL,
	[Money] [money] NULL,
	[Price_Member] [money] NULL,
	[zhekou] [varchar](50) NULL,
	[IsFree] [int] NULL,
	[OrdinaryMemberID] [varchar](255) NULL,
	[ISLoad] [int] NULL,
	[Loadzhekou] [varchar](50) NULL,
	[FixedPrice] [money] NULL,
	[TcID] [varchar](500) NULL,
	[Teacher] [nvarchar](50) NULL,
	[BanzhuRenID] [int] NULL,
	[Inputer] [nvarchar](50) NULL,
	[UserID] [int] NULL,
	[system] [tinyint] NULL,
	[addTime] [datetime] NULL,
	[Score] [float] NULL,
	[LookCount] [int] NULL,
	[BuyCount] [int] NULL,
	[CourseCount] [int] NULL,
	[IsExam] [int] NULL,
	[examPleID] [varchar](500) NULL,
	[pfnum] [int] NULL,
	[AskCount] [int] NULL,
	[IsPublic] [int] NULL,
	[Announce] [text] NULL,
	[AllowAdd] [int] NULL,
	[NoticeNum] [int] NULL,
	[SchoolID] [int] NULL,
	[SchoolName] [nvarchar](255) NULL,
	[SkinID] [int] NULL,
	[IsBindable] [tinyint] NULL,
	[BoardID] [varchar](255) NULL,
	[PackID] [varchar](255) NULL,
	[CourseIDs] [varchar](5000) NULL,
	[FaceCourseIDs] [text] NULL,
 CONSTRAINT [PK_KS_CosClassRoom] PRIMARY KEY CLUSTERED 
(
	[RoomID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosClassNotice]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosClassNotice](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[RoomID] [int] NULL,
	[Title] [varchar](200) NULL,
	[Contents] [varchar](5000) NULL,
	[UserID] [int] NULL,
	[AddDate] [datetime] NULL,
	[verify] [int] NULL,
 CONSTRAINT [PK_KS_CosClassNotice] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosClassManage]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CosClassManage](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[TaskName] [nvarchar](50) NULL,
	[Remark] [nvarchar](255) NULL,
	[RoomID] [int] NULL,
	[TcID] [int] NULL,
	[CourseID] [int] NULL,
	[TaskType] [int] NULL,
	[Inputer] [nvarchar](10) NULL,
	[AddDate] [datetime] NULL,
	[CourseType] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CosClass]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosClass](
	[ClassID] [int] NOT NULL,
	[Type] [tinyint] NULL,
	[ClassName] [nvarchar](100) NOT NULL,
	[ClassEname] [nvarchar](255) NULL,
	[ParentID] [int] NULL,
	[Root] [int] NULL,
	[Depth] [tinyint] NULL,
	[OrderID] [int] NULL,
	[ParentIDPath] [varchar](4000) NULL,
	[Child] [int] NULL,
	[PrevID] [int] NULL,
	[NextID] [int] NULL,
	[ClassDir] [varchar](255) NULL,
	[UserName] [nvarchar](50) NULL,
	[AddDate] [datetime] NULL,
	[ShowInTop] [tinyint] NULL,
	[ClassBasicInfo] [ntext] NULL,
	[ClassDefineContent] [ntext] NULL,
	[AdminPurview] [ntext] NULL,
	[AdminLivePurview] [ntext] NULL,
	[AdminCosPurview] [ntext] NULL,
	[IsHide] [tinyint] NULL,
	[AskId] [int] NULL,
	[Template] [nvarchar](500) NULL,
	[Template3G] [nvarchar](500) NULL,
	[ISTemplate] [int] NULL,
 CONSTRAINT [PK_KS_CosClass] PRIMARY KEY CLUSTERED 
(
	[ClassID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosCashback]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosCashback](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[courseid] [int] NULL,
	[OrderID] [varchar](50) NULL,
	[orderType] [tinyint] NULL,
	[type] [tinyint] NULL,
	[money] [money] NULL,
	[UserID] [int] NULL,
	[UserName] [varchar](50) NULL,
	[adddate] [datetime] NULL,
	[logdate] [datetime] NULL,
	[flag] [tinyint] NULL,
	[userDate] [datetime] NULL,
	[payOrderID] [varchar](50) NULL,
	[remark] [varchar](1000) NULL,
 CONSTRAINT [PK_KS_cosCashback;] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosBundleSale]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosBundleSale](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[courseid] [int] NULL,
	[bindcourseid] [int] NULL,
	[bindprice] [money] NULL,
	[bindname] [varchar](200) NULL,
	[type] [int] NULL,
	[orderid] [int] NULL,
	[AddDate] [datetime] NULL,
	[IsSelect] [int] NULL,
 CONSTRAINT [PK_KS_CosBundleSale] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosBj]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_CosBj](
	[BjID] [int] IDENTITY(1,1) NOT NULL,
	[Courseid] [int] NULL,
	[PeriodID] [int] NULL,
	[BjName] [varchar](255) NULL,
	[bjcontent] [ntext] NULL,
	[adddate] [datetime] NULL,
	[username] [varchar](255) NULL,
	[taskid] [int] NULL,
	[type] [tinyint] NULL,
	[share] [tinyint] NULL,
 CONSTRAINT [PK_KS_CosBj] PRIMARY KEY CLUSTERED 
(
	[BjID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_CosAgentShop]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CosAgentShop](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[Title] [nvarchar](255) NULL,
	[Intro] [ntext] NULL,
	[AddDate] [datetime] NULL,
	[Logo] [nvarchar](255) NULL,
	[UserName] [nvarchar](50) NULL,
	[UserId] [int] NULL,
	[SkinID] [int] NULL,
	[Status] [int] NULL,
	[RealName] [nvarchar](50) NULL,
	[Mobile] [nvarchar](50) NULL,
	[BankName] [nvarchar](100) NULL,
	[BankCard] [nvarchar](100) NULL,
	[AlipayNo] [nvarchar](100) NULL,
	[WeiPayNo] [nvarchar](100) NULL,
	[PhotoUrls] [text] NULL,
	[TotalYJ] [money] NULL,
	[TotalFXS] [int] NULL,
	[StoreSkinID] [int] NULL,
	[IsOnSkin] [tinyint] NULL,
 CONSTRAINT [PK_KS_CosAgentShop] PRIMARY KEY NONCLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CosAgentCourse]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CosAgentCourse](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NULL,
	[MyCourseID] [int] NULL,
	[MyClassID] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CosAgentClass]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CosAgentClass](
	[MyClassID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NULL,
	[ClassName] [nvarchar](50) NULL,
	[OrderID] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[MyClassID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_CopyFrom]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_CopyFrom](
	[CopyFromID] [int] IDENTITY(1,1) NOT NULL,
	[CopyFromName] [nvarchar](50) NOT NULL,
	[WebSite] [nvarchar](100) NULL,
	[Address] [nvarchar](255) NULL,
	[ContactMan] [nvarchar](50) NULL,
	[Telphone] [nvarchar](50) NULL,
	[Fax] [nvarchar](100) NULL,
	[ZipCode] [nvarchar](10) NULL,
	[Email] [nvarchar](100) NULL,
	[Class] [nvarchar](15) NULL,
	[Intro] [ntext] NULL,
	[AddDate] [datetime] NULL,
	[Status] [tinyint] NULL,
 CONSTRAINT [PK_KS_CopyFrom] PRIMARY KEY CLUSTERED 
(
	[CopyFromID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_FieldGroup]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_FieldGroup](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[GroupName] [varchar](255) NULL,
	[ChannelID] [int] NULL,
	[OrderId] [int] NULL,
	[IsSys] [tinyint] NULL,
 CONSTRAINT [PK_KS_FieldGroup] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_Favorite]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_Favorite](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](100) NULL,
	[ChannelID] [int] NULL,
	[InfoID] [int] NULL,
	[AddDate] [datetime] NULL,
	[FtType] [tinyint] NULL,
	[UserID] [int] NULL,
 CONSTRAINT [PK_KS_Favorite] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_EnterPriseTemplate]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterPriseTemplate](
	[SkinID] [int] IDENTITY(1,1) NOT NULL,
	[TemplateName] [varchar](255) NOT NULL,
	[templateMain] [varchar](255) NULL,
	[TemplateAuthor] [varchar](100) NULL,
	[TemplatePic] [varchar](255) NULL,
	[IsDefault] [tinyint] NOT NULL,
	[groupLevel] [varchar](255) NOT NULL,
	[Sharetag] [int] NULL,
	[UserTag] [int] NULL,
 CONSTRAINT [PK_KS_EnterPriseTemplate] PRIMARY KEY CLUSTERED 
(
	[SkinID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_EnterPriseSpread]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterPriseSpread](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Courseid] [int] NULL,
	[Type] [int] NULL,
	[Money] [money] NULL,
	[Status] [tinyint] NULL,
	[IsPay] [tinyint] NULL,
	[AddDate] [datetime] NULL,
	[BeginDate] [datetime] NULL,
	[EndDate] [datetime] NULL,
	[PassDate] [datetime] NULL,
	[PayDate] [datetime] NULL,
	[OrderID] [varchar](500) NULL,
	[inputer] [varchar](100) NULL,
	[Remarks] [text] NULL,
	[EffectiveDay] [int] NULL,
	[TotalMoney] [money] NULL,
	[ShowStatus] [int] NULL,
	[ShowData] [datetime] NULL,
	[ShowDay] [int] NULL,
	[PhotoUrl] [nvarchar](500) NULL,
 CONSTRAINT [PK_KS_EnterPriseSpread] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_EnterPriseScore]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterPriseScore](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [varchar](255) NULL,
	[UserID] [int] NULL,
	[Score] [int] NULL,
	[CurrentScore] [int] NULL,
	[Remark] [ntext] NULL,
	[AddDate] [datetime] NULL,
	[ItemID] [int] NULL,
	[CaozuoType] [int] NULL,
	[UserIP] [nvarchar](50) NULL,
	[RecordID] [int] NULL,
 CONSTRAINT [PK_KS_EnterPriseScore] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_EnterPriseRZ]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterPriseRZ](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[UserId] [int] NULL,
	[verify] [tinyint] NULL,
	[Status] [tinyint] NULL,
	[EpId] [int] NULL,
	[orderId] [int] NULL,
	[Year] [int] NULL,
	[license] [varchar](255) NULL,
	[Tax] [varchar](255) NULL,
	[Legal] [varchar](255) NULL,
	[Service] [varchar](255) NULL,
	[Applicant] [varchar](255) NULL,
	[ApplicantName] [varchar](100) NULL,
	[ApplicantID] [varchar](100) NULL,
	[Applicantphone] [varchar](50) NULL,
	[adddate] [datetime] NULL,
	[begindate] [datetime] NULL,
	[enddate] [datetime] NULL,
	[content] [text] NULL,
	[replay] [text] NULL,
	[LegalPeople] [varchar](50) NULL,
	[LicenseNumber] [varchar](100) NULL,
	[LegalPeopleNumber] [varchar](50) NULL,
	[Remark] [ntext] NULL,
	[AddPeople] [varchar](50) NULL,
	[IsRealRz] [tinyint] NULL,
	[IsBanxueRz] [tinyint] NULL,
	[username] [varchar](50) NULL,
 CONSTRAINT [PK_KS_EnterPriseRZ] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_EnterPrisePower]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterPrisePower](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Type] [tinyint] NULL,
	[Title] [varchar](100) NULL,
	[Num] [tinyint] NULL,
	[Money] [money] NULL,
	[Job] [int] NULL,
	[Resume] [int] NULL,
	[SLogoDate] [tinyint] NULL,
	[BLogoDate] [tinyint] NULL,
	[Remarks] [varchar](500) NULL,
	[Course] [int] NULL,
	[Face] [int] NULL,
	[Teacher] [int] NULL,
	[News] [int] NULL,
	[photo] [int] NULL,
	[Campus] [int] NULL,
	[ad] [int] NULL,
	[moban] [int] NULL,
	[duanxin] [int] NULL,
	[GradeLevel] [tinyint] NULL,
	[IsShowCopyRight] [tinyint] NULL,
	[IsShowNewsClass] [tinyint] NULL,
	[IsShowTwoCom] [tinyint] NULL,
	[IsShowSEO] [tinyint] NULL,
	[Live] [int] NULL,
	[YunVideo] [int] NULL,
	[DivideMoney] [float] NULL,
	[liveNum] [int] NULL,
	[LiveTime] [int] NULL,
	[priceverify] [tinyint] NULL,
	[addverify] [tinyint] NULL,
 CONSTRAINT [PK_KS_JobPower] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'权限id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'Id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'权限类型' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'Type'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'标题' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'Title'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员时间（月份）' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'Num'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'收费价格' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'Money'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'发布岗位数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'Job'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'查看简历数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'Resume'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'留用' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'SLogoDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'留用' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'BLogoDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'Remarks'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'发布网授个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'Course'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'发布面授个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'Face'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'发布教师位数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'Teacher'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'发布新闻个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'News'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'图片个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'photo'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分校个数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'Campus'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'模板(套)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'moban'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'短信条数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'duanxin'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'VIP排名等级' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'GradeLevel'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否是设置底部版权：1设置' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'IsShowCopyRight'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否设置新闻分类：1设置' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'IsShowNewsClass'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否是设置二级域名:0不设置' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'IsShowTwoCom'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否设置机构的主页的SEO：0不设置' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'IsShowSEO'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'直播' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'Live'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'云点播视频' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'YunVideo'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分成比例' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'DivideMoney'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'直播并发数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'liveNum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'直播时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'LiveTime'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'改价是否审核' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'priceverify'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'添加是否审核' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'KS_EnterPrisePower', @level2type=N'COLUMN',@level2name=N'addverify'
GO
/****** Object:  Table [dbo].[KS_EnterPrisePhoto]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterPrisePhoto](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[EPid] [int] NULL,
	[orderid] [int] NULL,
	[adddate] [datetime] NULL,
	[Pname] [varchar](50) NULL,
	[photo] [varchar](255) NULL,
	[class] [int] NULL,
	[status] [tinyint] NULL,
	[userid] [int] NULL,
	[username] [varchar](50) NULL,
	[SchoolID] [int] NULL,
	[SchoolName] [nvarchar](255) NULL,
 CONSTRAINT [PK_KS_EnterPrisePhoto] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_EnterPriseNewsClass]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterPriseNewsClass](
	[ClassID] [int] IDENTITY(1,1) NOT NULL,
	[ClassName] [varchar](200) NULL,
	[OrderID] [int] NULL,
	[IsShow] [tinyint] NULL,
	[UserId] [int] NULL,
	[AddDate] [datetime] NULL,
	[ClassEname] [nvarchar](100) NULL,
	[ParentID] [int] NULL,
	[Root] [int] NULL,
	[Depth] [int] NULL,
	[ParentIDPath] [varchar](1500) NULL,
	[Child] [int] NULL,
	[PrevID] [int] NULL,
	[NextID] [int] NULL,
 CONSTRAINT [PK_KS_EnterPriseNewsClass] PRIMARY KEY CLUSTERED 
(
	[ClassID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_EnterPriseNews]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterPriseNews](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[EPid] [int] NULL,
	[title] [varchar](200) NULL,
	[content] [text] NULL,
	[status] [tinyint] NULL,
	[photo] [varchar](255) NULL,
	[classid] [int] NULL,
	[adddate] [datetime] NULL,
	[username] [varchar](50) NULL,
	[userid] [int] NULL,
	[PassWord] [varchar](50) NULL,
	[Hits] [int] NULL,
	[IsRecommend] [tinyint] NULL,
	[Intro] [ntext] NULL,
	[IsFabu] [tinyint] NULL,
	[IsComment] [tinyint] NULL,
	[SchoolID] [int] NULL,
	[SchoolName] [nvarchar](255) NULL,
 CONSTRAINT [PK_KS_EnterPriseNews] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_EnterPriseNav]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterPriseNav](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[epid] [int] NULL,
	[UserId] [int] NULL,
	[UserName] [varchar](255) NULL,
	[NavName] [varchar](255) NULL,
	[NavId] [int] NULL,
	[NavAlias] [varchar](255) NULL,
	[NavOrderId] [int] NULL,
	[OwnSys] [tinyint] NULL,
	[CustomPage] [text] NULL,
	[Flag] [tinyint] NULL,
	[Marks] [text] NULL,
 CONSTRAINT [PK_KS_EnterPriseNav] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_EnterpriseMessage]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterpriseMessage](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Sender] [varchar](255) NULL,
	[SenderId] [int] NULL,
	[UserId] [varchar](255) NULL,
	[Title] [varchar](500) NULL,
	[Message] [text] NULL,
	[AddDate] [datetime] NULL,
	[Flag] [tinyint] NULL,
	[ReplayDate] [datetime] NULL,
	[Replay] [text] NULL,
	[IsReply] [tinyint] NULL,
 CONSTRAINT [PK_KS_EnterpriseMessage] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_EnterpriseComment]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterpriseComment](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[newsID] [int] NULL,
	[EpId] [int] NULL,
	[Title] [varchar](255) NULL,
	[Content] [text] NULL,
	[UserID] [int] NULL,
	[UserName] [varchar](255) NULL,
	[AnounID] [int] NULL,
	[AnounName] [varchar](255) NULL,
	[AddTime] [datetime] NULL,
	[HomePage] [varchar](255) NULL,
	[Replay] [text] NULL,
	[ReplayDate] [datetime] NULL,
	[Flag] [tinyint] NULL,
	[Ext] [varchar](255) NULL,
	[Verify] [tinyint] NULL,
	[UserIp] [nvarchar](20) NULL,
 CONSTRAINT [PK_KS_EnterpriseComment] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_EnterPriseCatetory]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterPriseCatetory](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[type] [tinyint] NULL,
	[Catetory] [nvarchar](155) NULL,
	[ParentID] [int] NULL,
	[OrderID] [int] NULL,
	[Depth] [int] NULL,
	[Code] [int] NULL,
	[E_Catetory] [nvarchar](155) NULL,
	[Letter] [nvarchar](50) NULL,
	[Explain] [varchar](500) NULL,
	[IsShow] [tinyint] NULL,
 CONSTRAINT [PK_KS_EnterPriseCatetory] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_EnterPriseCampus]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterPriseCampus](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[epid] [int] NULL,
	[name] [varchar](250) NULL,
	[Address] [varchar](250) NULL,
	[Introduce] [ntext] NULL,
	[mapid] [varchar](50) NULL,
	[telephone] [varchar](50) NULL,
	[Mobile] [varchar](50) NULL,
	[adddate] [datetime] NULL,
	[userid] [int] NULL,
	[username] [varchar](50) NULL,
	[status] [tinyint] NULL,
	[SchoolID] [int] NULL,
	[SchoolName] [nvarchar](255) NULL,
 CONSTRAINT [PK_KS_EnterPriseCampus] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_EnterPriseBack]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterPriseBack](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[userid] [int] NULL,
	[username] [varchar](200) NULL,
	[epid] [int] NULL,
	[title] [varchar](50) NULL,
	[Contact] [varchar](200) NULL,
	[phone] [varchar](200) NULL,
	[content] [text] NULL,
	[sender] [varchar](200) NULL,
	[sendId] [int] NULL,
	[adddate] [datetime] NULL,
 CONSTRAINT [PK_KS_EnterPriseBack] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_EnterPriseAdvert]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterPriseAdvert](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[EPid] [int] NULL,
	[title] [varchar](200) NULL,
	[indroduce] [varchar](5000) NULL,
	[photo] [varchar](255) NULL,
	[Url] [varchar](255) NULL,
	[Prompt] [varchar](255) NULL,
	[taget] [varchar](255) NULL,
	[width] [int] NULL,
	[height] [int] NULL,
	[Background] [varchar](255) NULL,
	[status] [tinyint] NULL,
	[bengintime] [datetime] NULL,
	[endtime] [datetime] NULL,
	[adddate] [datetime] NULL,
	[istime] [tinyint] NULL,
	[orderid] [int] NULL,
	[userid] [int] NULL,
	[username] [varchar](50) NULL,
	[Verify] [tinyint] NULL,
 CONSTRAINT [PK_KS_EnterPriseAdvert] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_EnterPriseAccount]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterPriseAccount](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[verify] [tinyint] NULL,
	[status] [tinyint] NULL,
	[epid] [int] NULL,
	[username] [varchar](100) NULL,
	[Title] [varchar](500) NULL,
	[type] [varchar](50) NULL,
	[WayType] [tinyint] NULL,
	[way] [varchar](50) NULL,
	[orderid] [varchar](200) NULL,
	[Money] [money] NULL,
	[RealMoney] [money] NULL,
	[chargeMoney] [money] NULL,
	[Applicant] [varchar](50) NULL,
	[phone] [varchar](50) NULL,
	[BankAccount] [varchar](50) NULL,
	[AccountNumber] [varchar](50) NULL,
	[Remarks] [varchar](1000) NULL,
	[ReRemarks] [varchar](1000) NULL,
	[begindate] [datetime] NULL,
	[enddate] [datetime] NULL,
	[adddate] [datetime] NULL,
	[paydate] [datetime] NULL,
	[inputer] [varchar](100) NULL,
	[tcid] [int] NULL,
	[UserID] [int] NULL,
 CONSTRAINT [PK_KS_EnterPriseAccount] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_EnterPrise]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_EnterPrise](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[IsJob] [tinyint] NULL,
	[Username] [varchar](100) NULL,
	[UserID] [int] NULL,
	[TemplateID] [int] NULL,
	[verify] [tinyint] NULL,
	[Status] [tinyint] NULL,
	[CompanyName] [varchar](200) NULL,
	[logo] [varchar](100) NULL,
	[introduce] [text] NULL,
	[Details] [text] NULL,
	[Characteristic] [text] NULL,
	[BusinessLicense] [varchar](50) NULL,
	[LegalPeople] [varchar](100) NULL,
	[Address] [varchar](500) NULL,
	[RegisteredCapital] [int] NULL,
	[Business] [text] NULL,
	[Foundation] [varchar](50) NULL,
	[industryID] [int] NULL,
	[industryPID] [int] NULL,
	[SubCatetoryID] [int] NULL,
	[LNSIZE] [varchar](50) NULL,
	[ProvinceID] [int] NULL,
	[CityID] [int] NULL,
	[mapID] [varchar](100) NULL,
	[ContactMan] [varchar](100) NULL,
	[ZipCode] [int] NULL,
	[QQ] [varchar](50) NULL,
	[Mobile] [varchar](50) NULL,
	[telephone] [varchar](50) NULL,
	[Fax] [varchar](50) NULL,
	[Email] [varchar](100) NULL,
	[WebUrl] [varchar](200) NULL,
	[BankAccount] [varchar](50) NULL,
	[branch] [varchar](50) NULL,
	[AccountNumber] [varchar](50) NULL,
	[Alipay] [varchar](50) NULL,
	[SMSNunber] [varchar](50) NULL,
	[effective] [varchar](50) NULL,
	[enddation] [varchar](50) NULL,
	[certificate] [varchar](200) NULL,
	[photo] [varchar](50) NULL,
	[authority] [varchar](100) NULL,
	[name] [varchar](50) NULL,
	[cardid] [varchar](18) NULL,
	[cardphoto] [varchar](50) NULL,
	[adddate] [datetime] NULL,
	[Hits] [int] NULL,
	[Recommend] [tinyint] NULL,
	[SeoKeyWords] [varchar](100) NULL,
	[keytags] [varchar](50) NULL,
	[Free] [int] NULL,
	[JobFree] [int] NULL,
	[newsTotal] [int] NULL,
	[CourseTotal] [int] NULL,
	[FaceTotal] [int] NULL,
	[TeacherTotal] [int] NULL,
	[AskTotal] [int] NULL,
	[MessageTotal] [int] NULL,
	[OrderTotal] [int] NULL,
	[SmsTotal] [int] NULL,
	[CountyId] [int] NULL,
	[PosionTotal] [int] NULL,
	[LetterTotal] [int] NULL,
	[InterViewTotal] [int] NULL,
	[IsContact] [tinyint] NULL,
	[Dlogo] [varchar](100) NULL,
	[OtherMan] [varchar](100) NULL,
	[OtherPhone] [varchar](100) NULL,
	[IsSite] [tinyint] NULL,
	[IsPhcon] [tinyint] NULL,
	[PhconNum] [varchar](50) NULL,
	[IsReply] [tinyint] NULL,
	[Replycon] [text] NULL,
	[Quick] [text] NULL,
	[IsFamous] [tinyint] NULL,
	[Hot] [tinyint] NULL,
	[Important] [tinyint] NULL,
	[FreeEnddate] [datetime] NULL,
	[OpenTime] [datetime] NULL,
	[EpFreeEnddate] [datetime] NULL,
	[IsSms] [tinyint] NULL,
	[SmsNumber] [varchar](50) NULL,
	[SmsContent] [varchar](500) NULL,
	[IsEmail] [tinyint] NULL,
	[OtherEmail] [varchar](50) NULL,
	[EmailContent] [varchar](500) NULL,
	[FaceClass] [varchar](4000) NULL,
	[CourseClass] [varchar](4000) NULL,
	[ExamClass] [varchar](4000) NULL,
	[service] [varchar](700) NULL,
	[banner] [varchar](255) NULL,
	[SubDomain] [varchar](100) NULL,
	[sysDomain] [varchar](100) NULL,
	[userDomain] [varchar](100) NULL,
	[system] [tinyint] NULL,
	[subDomainStatus] [tinyint] NULL,
	[style] [tinyint] NULL,
	[TotalLearning] [int] NULL,
	[GradeLevel] [int] NULL,
	[RzYearLimit] [int] NULL,
	[CreditScore] [int] NULL,
	[RzStatus] [tinyint] NULL,
	[RemarkReason] [ntext] NULL,
	[ScoreImg] [nvarchar](200) NULL,
	[ScoreItemID] [int] NULL,
	[ScoreName] [nvarchar](200) NULL,
	[DefaultPic] [varchar](200) NULL,
	[SeoTitle] [varchar](50) NULL,
	[SeoKeyWord] [ntext] NULL,
	[SeoDecript] [ntext] NULL,
	[IsOpenAdvert] [tinyint] NULL,
	[IsOpenNewsComment] [tinyint] NULL,
	[IsOpenMsg] [tinyint] NULL,
	[CopyRight] [varchar](500) NULL,
	[DuanXinTiaoshu] [int] NULL,
	[IsCuiDan] [tinyint] NULL,
	[CuiDanContent] [ntext] NULL,
	[FuWanContent] [ntext] NULL,
	[IsFuWan] [tinyint] NULL,
	[starPf] [float] NULL,
	[mideva] [int] NULL,
	[goodeva] [int] NULL,
	[badeva] [int] NULL,
	[totaleva] [int] NULL,
	[ZanNum] [int] NULL,
	[CollectCount] [int] NULL,
	[LiveTotal] [int] NULL,
	[IsSetPrice] [tinyint] NULL,
	[OnlineUserName] [varchar](250) NULL,
	[OnlinePsw] [varchar](250) NULL,
	[OnlineWritetoken] [varchar](250) NULL,
	[OnlineReadtoken] [varchar](250) NULL,
	[OnlineSecretkey] [varchar](250) NULL,
	[OnlineUserid] [varchar](250) NULL,
	[IsOnline] [tinyint] NULL,
	[IsLive] [tinyint] NULL,
	[LiveUserName] [varchar](250) NULL,
	[LivePsw] [varchar](250) NULL,
	[LiveUserid] [varchar](250) NULL,
	[LiveAppID] [varchar](250) NULL,
	[LiveAppSecret] [varchar](250) NULL,
	[DirectorStatus] [tinyint] NULL,
	[PlayViedeo] [nvarchar](500) NULL,
	[TotalSale] [money] NULL,
	[DivideInto] [money] NULL,
	[Withdrawals] [money] NULL,
 CONSTRAINT [PK_KS_EnterPrice] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_DownServer]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_DownServer](
	[DownID] [int] NOT NULL,
	[ChannelID] [int] NULL,
	[DownloadName] [nvarchar](50) NULL,
	[DownloadPath] [nvarchar](255) NULL,
	[rootid] [int] NULL,
	[orders] [int] NULL,
	[parentid] [int] NULL,
	[child] [int] NULL,
	[IsLock] [tinyint] NOT NULL,
	[IsOuter] [int] NULL,
	[UnionID] [nvarchar](50) NULL,
	[selfont] [nvarchar](255) NULL,
	[AllDownHits] [int] NOT NULL,
	[DayDownHits] [int] NOT NULL,
	[HitsTime] [datetime] NULL,
 CONSTRAINT [PK_KS_DownServer] PRIMARY KEY CLUSTERED 
(
	[DownID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_DiggList]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_DiggList](
	[DiggID] [int] IDENTITY(1,1) NOT NULL,
	[ChannelID] [int] NOT NULL,
	[InfoID] [int] NOT NULL,
	[LastDiggTime] [datetime] NULL,
	[LastDiggUser] [nvarchar](120) NULL,
	[SupportNum] [int] NOT NULL,
	[AgainstNum] [int] NULL,
 CONSTRAINT [PK_KS_DiggList] PRIMARY KEY CLUSTERED 
(
	[DiggID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_Digg]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_Digg](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ChannelID] [int] NOT NULL,
	[InfoID] [int] NOT NULL,
	[DiggID] [int] NOT NULL,
	[DiggTime] [datetime] NULL,
	[UserName] [nvarchar](100) NULL,
	[UserIP] [nvarchar](100) NULL,
	[DiggType] [int] NULL,
 CONSTRAINT [PK_KS_Digg] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_Dictionary]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_Dictionary](
	[KeyID] [int] IDENTITY(1,1) NOT NULL,
	[KeyText] [nvarchar](50) NULL,
	[KeyValue] [ntext] NULL,
	[DefaultValue] [nvarchar](200) NULL,
 CONSTRAINT [PK_KS_Dictionary] PRIMARY KEY CLUSTERED 
(
	[KeyID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_Model]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_Model](
	[ChannelID] [int] NOT NULL,
	[ModelType] [tinyint] NULL,
	[ModelName] [nvarchar](50) NOT NULL,
	[ModelTable] [nvarchar](255) NOT NULL,
	[ModelItem] [nvarchar](50) NULL,
	[ModelItemUnit] [nvarchar](50) NULL,
	[ModelStatus] [tinyint] NULL,
	[ModelFolder] [nvarchar](50) NULL,
	[ModelFsoFolder] [nvarchar](255) NULL,
	[FsoListNum] [int] NULL,
	[Intro] [nvarchar](255) NULL,
	[SeoOption] [tinyint] NULL,
	[ChargesOption] [tinyint] NULL,
	[AttributeOption] [tinyint] NULL,
	[ReceiptOption] [tinyint] NULL,
	[PKOption] [tinyint] NULL,
	[FieldsXML] [ntext] NULL,
	[BasicType] [int] NULL,
	[AdminUpFilesTF] [tinyint] NULL,
	[AdminUpFilesDir] [nvarchar](100) NULL,
	[UserUpFilesTF] [int] NULL,
	[UserUpFilesDir] [nvarchar](255) NULL,
	[AllowUpFilesSize] [int] NULL,
	[AllowUpPhotoType] [nvarchar](200) NULL,
	[AllowUpFlashType] [nvarchar](200) NULL,
	[AllowUpMediaType] [nvarchar](200) NULL,
	[AllowUpRealType] [nvarchar](200) NULL,
	[AllowUpOtherType] [nvarchar](200) NULL,
	[AllowPublication] [int] NULL,
	[RecycleBin] [tinyint] NULL,
	[PublicationVerify] [tinyint] NULL,
	[PublicationRefreshHtmlOption] [nvarchar](50) NULL,
	[PublicationModifyVerify] [tinyint] NULL,
	[CommentType] [int] NULL,
	[CommentLen] [int] NULL,
	[NewestDay] [int] NULL,
	[CommentTemplate] [nvarchar](255) NULL,
	[SearchTemplate] [nvarchar](255) NULL,
	[FsoHtmlType] [int] NULL,
	[DiggByVisitor] [tinyint] NULL,
	[DiggRepeat] [tinyint] NULL,
	[DiggPerTimes] [int] NULL,
	[ShowOption] [varchar](255) NULL,
	[SearchTF] [int] NULL,
	[Setting] [text] NULL,
	[ModelOrderId] [int] NULL,
 CONSTRAINT [PK_KS_Model] PRIMARY KEY CLUSTERED 
(
	[ChannelID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_Message]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_Message](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[SubjectID] [int] NULL,
	[ToUserName] [nvarchar](200) NULL,
	[FromUserName] [nvarchar](50) NULL,
	[MsgTitle] [nvarchar](255) NULL,
	[MsgContactMan] [nvarchar](50) NULL,
	[MsgTel] [nvarchar](50) NULL,
	[MsgMail] [nvarchar](50) NULL,
	[MsgContent] [ntext] NULL,
	[RequestInfo] [nvarchar](255) NULL,
	[AddDate] [datetime] NULL,
	[Verify] [int] NULL,
	[ReadTF] [int] NULL,
	[DelTf] [tinyint] NULL,
	[PMsgID] [int] NULL,
 CONSTRAINT [PK_KS_B2B_Message] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_LogSms]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_LogSms](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Mobile] [varchar](30) NULL,
	[AddDate] [datetime] NULL,
	[IsSuccess] [tinyint] NULL,
	[UserName] [varchar](50) NULL,
	[Remark] [text] NULL,
	[Content] [text] NULL,
	[UserIP] [varchar](50) NULL,
	[Model] [varchar](100) NULL,
 CONSTRAINT [PK_KS_LogSms] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_LogScore]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_LogScore](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](50) NOT NULL,
	[UserID] [int] NULL,
	[AddDate] [smalldatetime] NULL,
	[IP] [nvarchar](50) NULL,
	[InOrOutFlag] [tinyint] NULL,
	[Score] [int] NULL,
	[NowScore] [int] NULL,
	[AvailableScore] [int] NULL,
	[inputer] [nvarchar](50) NULL,
	[remark] [nvarchar](255) NULL,
	[ChannelID] [int] NULL,
	[infoid] [int] NULL,
	[Times] [int] NULL,
 CONSTRAINT [PK_KS_LogScore] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_LogPoint]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_LogPoint](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[OrderID] [nvarchar](50) NULL,
	[UserID] [int] NULL,
	[UserName] [nvarchar](50) NULL,
	[ChannelID] [int] NULL,
	[InfoID] [int] NULL,
	[AddDate] [datetime] NULL,
	[IP] [nvarchar](50) NULL,
	[InOrOutFlag] [int] NULL,
	[Point] [money] NULL,
	[NowPoint] [money] NULL,
	[Times] [int] NULL,
	[Inputer] [nvarchar](50) NULL,
	[Remark] [nvarchar](255) NULL,
 CONSTRAINT [PK_KS_LogPoint] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_LogMoney]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_LogMoney](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NULL,
	[UserName] [nvarchar](50) NOT NULL,
	[ClientName] [nvarchar](100) NULL,
	[Money] [money] NULL,
	[CurrMoney] [money] NULL,
	[ChannelID] [int] NULL,
	[InfoID] [int] NULL,
	[MoneyType] [int] NULL,
	[IncomeOrPayOut] [int] NULL,
	[OrderID] [nvarchar](30) NULL,
	[PaymentID] [int] NULL,
	[Remark] [nvarchar](255) NULL,
	[PayTime] [smalldatetime] NULL,
	[Inputer] [nvarchar](50) NULL,
	[IP] [nvarchar](50) NULL,
	[Times] [int] NULL,
	[RealMoney] [money] NULL,
	[Discount] [float] NULL,
	[YjRate1] [money] NULL,
	[YjRate2] [money] NULL,
	[YjRate3] [money] NULL,
	[AgYJ1] [money] NULL,
	[AgYJ2] [money] NULL,
 CONSTRAINT [PK_KS_LogMoney] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_LogDay]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_LogDay](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[OrderID] [nvarchar](50) NULL,
	[UserName] [nvarchar](50) NULL,
	[ChannelID] [int] NULL,
	[InfoID] [int] NULL,
	[AddDate] [datetime] NULL,
	[IP] [nvarchar](50) NULL,
	[InOrOutFlag] [int] NULL,
	[day] [int] NULL,
	[EndDay] [datetime] NULL,
	[Inputer] [nvarchar](50) NULL,
	[Remark] [nvarchar](255) NULL,
 CONSTRAINT [PK_KS_LogDay] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_Log]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_Log](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](50) NULL,
	[ResultTF] [tinyint] NULL,
	[ActionIP] [nvarchar](50) NULL,
	[ActionTime] [datetime] NULL,
	[ScriptName] [nvarchar](100) NULL,
	[Description] [nvarchar](255) NULL,
 CONSTRAINT [PK_KS_Log] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_LabelClass]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_LabelClass](
	[ClassID] [int] IDENTITY(1,1) NOT NULL,
	[ClassName] [nvarchar](50) NOT NULL,
	[ParentIDPath] [nvarchar](255) NULL,
	[Description] [nvarchar](255) NULL,
	[ParentID] [int] NULL,
	[OrderID] [tinyint] NULL,
	[ClassType] [tinyint] NULL,
	[AddDate] [datetime] NULL,
	[from3g] [int] NULL,
	[TemplateID] [int] NULL,
 CONSTRAINT [PK_KS_LabelClass] PRIMARY KEY CLUSTERED 
(
	[ClassID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_Label]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_Label](
	[LabelID] [int] NOT NULL,
	[LabelName] [nvarchar](50) NOT NULL,
	[LabelContent] [ntext] NULL,
	[Description] [ntext] NULL,
	[ClassID] [int] NULL,
	[OrderID] [tinyint] NULL,
	[LabelType] [tinyint] NULL,
	[LabelFlag] [tinyint] NULL,
	[AddDate] [datetime] NULL,
	[from3g] [int] NULL,
	[TemplateID] [int] NULL,
	[JsonID] [varchar](50) NULL,
 CONSTRAINT [PK_KS_Label] PRIMARY KEY CLUSTERED 
(
	[LabelID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_KeyTags]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_KeyTags](
	[TagsID] [int] IDENTITY(1,1) NOT NULL,
	[KeyText] [nvarchar](100) NOT NULL,
	[AddDate] [datetime] NULL,
	[TagsHits] [int] NULL,
	[TodayHits] [int] NULL,
	[YesterDayHits] [int] NULL,
	[WeekHits] [int] NULL,
	[LastUseTime] [datetime] NULL,
	[Status] [int] NULL,
	[FirstAlphabet] [varchar](50) NULL,
	[Type] [tinyint] NULL,
	[CourseNum] [int] NULL,
	[SjNum] [int] NULL,
	[UserNum] [int] NULL,
 CONSTRAINT [PK_KS_KeyTags] PRIMARY KEY CLUSTERED 
(
	[TagsID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_JSFile]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_JSFile](
	[JSID] [int] IDENTITY(1,1) NOT NULL,
	[JSName] [nvarchar](100) NULL,
	[JSFileName] [nvarchar](100) NULL,
	[JSConfig] [ntext] NULL,
	[JSType] [tinyint] NULL,
	[AddDate] [datetime] NULL,
	[Description] [nvarchar](255) NULL,
	[OrderID] [tinyint] NULL,
	[ClassID] [int] NULL,
	[from3g] [int] NULL,
	[TemplateID] [int] NULL,
 CONSTRAINT [PK_KS_JSFile] PRIMARY KEY CLUSTERED 
(
	[JSID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_InnerLink]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_InnerLink](
	[LinkID] [int] IDENTITY(1,1) NOT NULL,
	[LinkText] [nvarchar](150) NULL,
	[LinkColor] [nvarchar](50) NULL,
	[LinkUrl] [nvarchar](150) NULL,
	[Opentype] [nvarchar](50) NULL,
	[AddDate] [datetime] NULL,
	[Status] [int] NULL,
	[Times] [int] NULL,
 CONSTRAINT [PK_KS_InnerLink] PRIMARY KEY CLUSTERED 
(
	[LinkID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_InfoList]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_InfoList](
	[InfoID] [int] IDENTITY(1,1) NOT NULL,
	[ChannelID] [int] NOT NULL,
	[ClassID] [int] NOT NULL,
	[Title] [nvarchar](255) NULL,
	[TitleFontColor] [nvarchar](20) NULL,
	[DefaultPic] [nvarchar](255) NULL,
	[Intro] [nvarchar](255) NULL,
	[KeyTags] [nvarchar](255) NULL,
	[Hits] [int] NULL,
	[HitsByDay] [int] NULL,
	[HitsByWeek] [int] NULL,
	[HitsByMonth] [int] NULL,
	[LastHitsTime] [datetime] NULL,
	[CopyFrom] [nvarchar](100) NULL,
	[Author] [nvarchar](100) NULL,
	[AddDate] [datetime] NULL,
	[Attribute] [nvarchar](50) NULL,
	[Priority] [int] NULL,
	[Inputer] [nvarchar](100) NULL,
	[RefreshTF] [tinyint] NULL,
	[ShowOn3G] [tinyint] NULL,
	[FileName] [nvarchar](255) NULL,
	[TurnUrl] [nvarchar](255) NULL,
	[ProID] [int] NULL,
	[CityID] [int] NULL,
	[CountyID] [int] NULL,
	[Verify] [tinyint] NULL,
	[InfoPurview] [tinyint] NULL,
	[ArrGroupID] [nvarchar](100) NULL,
	[ReadPoint] [money] NULL,
	[ChargeType] [tinyint] NULL,
	[PitchTime] [int] NULL,
	[ReadTimes] [int] NULL,
	[DividePercent] [int] NULL,
	[PKID] [int] NULL,
	[VoteID] [int] NULL,
	[CommentNum] [int] NULL,
	[DelTF] [tinyint] NULL,
	[AttachmentCharge] [int] NULL,
	[AttachmentChargeOnce] [tinyint] NULL,
	[SocialIDs] [varchar](255) NULL,
	[ProvinceID] [int] NULL,
	[IsTips] [tinyint] NULL,
	[GoodNum] [int] NULL,
	[BadNum] [int] NULL,
	[FavNum] [int] NULL,
	[ShareNum] [int] NULL,
 CONSTRAINT [PK_KS_InfoList] PRIMARY KEY NONCLUSTERED 
(
	[InfoID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  StoredProcedure [dbo].[KS_GetUserByGroupIDS]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_GetUserByGroupIDS]
@GroupIDS varchar(200)
 AS
 Declare @SQL Varchar(1000)
 Set @SQL='SELECT UserID,UserFace,UserName,RealName,Email,Sex,IDCard FROM [KS_USER] WHERE GroupID in'+'('+@GroupIDs+')'+' Order BY UserID Desc'
 Exec (@SQL)
GO
/****** Object:  StoredProcedure [dbo].[KS_GetUserByDepartIDS]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_GetUserByDepartIDS]
@departids varchar(200)
 AS
 Declare @SQL Varchar(1000)
 Set @SQL='SELECT UserID,UserFace,UserName,RealName,Email,Sex,IDCard FROM [KS_USER] WHERE departID in'+'('+@departids+')'+' Order BY UserID Desc'
 Exec (@SQL)
GO
/****** Object:  Table [dbo].[KS_MoodProject]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_MoodProject](
	[ProjectID] [int] IDENTITY(1,1) NOT NULL,
	[ProjectName] [varchar](100) NULL,
	[ProjectContent] [nvarchar](3000) NULL,
	[OnlyUser] [tinyint] NULL,
	[UserOnce] [int] NULL,
	[AllowGroupID] [varchar](200) NULL,
	[Status] [tinyint] NULL,
	[TimeLimit] [tinyint] NULL,
	[StartDate] [datetime] NULL,
	[ExpiredDate] [datetime] NULL,
 CONSTRAINT [PK_KS_MoodProject] PRIMARY KEY CLUSTERED 
(
	[ProjectID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  StoredProcedure [dbo].[KS_MoodListDel]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_MoodListDel] 
@ids varchar(1000)
AS
 if (@ids<>'')
  begin
 declare @sql nvarchar(4000)
 set @sql='delete from KS_MoodList Where ID in('+@ids+')'
 exec (@sql)
 end
GO
/****** Object:  Table [dbo].[KS_MoodList]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_MoodList](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[MoodID] [int] NULL,
	[ChannelID] [int] NULL,
	[InfoID] [int] NULL,
	[Title] [nvarchar](50) NULL,
	[M0] [int] NULL,
	[M1] [int] NULL,
	[M2] [int] NULL,
	[M3] [int] NULL,
	[M4] [int] NULL,
	[M5] [int] NULL,
	[M6] [int] NULL,
	[M7] [int] NULL,
	[M8] [int] NULL,
	[M9] [int] NULL,
	[M10] [int] NULL,
	[M11] [int] NULL,
	[M12] [int] NULL,
	[M13] [int] NULL,
	[M14] [int] NULL,
 CONSTRAINT [PK_KS_MoodList] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_PKGD]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_PKGD](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[PKID] [int] NOT NULL,
	[UserName] [nvarchar](50) NULL,
	[Content] [ntext] NULL,
	[UserIP] [nvarchar](50) NULL,
	[Status] [tinyint] NULL,
	[AddDate] [smalldatetime] NULL,
	[Role] [int] NULL,
	[UserID] [int] NULL,
 CONSTRAINT [PK_KS_PKGD] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_PhotoClass]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_PhotoClass](
	[ClassID] [int] IDENTITY(1,1) NOT NULL,
	[ClassName] [varchar](50) NOT NULL,
	[OrderID] [int] NOT NULL,
	[IsDefault] [tinyint] NULL,
 CONSTRAINT [PK_KS_PHOTOCLASS] PRIMARY KEY CLUSTERED 
(
	[ClassID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_PaymentPlatItem]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_PaymentPlatItem](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[PayId] [int] NULL,
	[AccountID] [varchar](100) NULL,
	[Md5Key] [varchar](255) NULL,
	[IsDefault] [int] NULL,
 CONSTRAINT [PK_KS_PaymentPlatItem] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_PaymentPlat]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_PaymentPlat](
	[ID] [int] NOT NULL,
	[PlatName] [nvarchar](50) NULL,
	[Remark] [ntext] NULL,
	[AccountID] [nvarchar](50) NULL,
	[MD5Key] [nvarchar](100) NULL,
	[Rate] [float] NULL,
	[RateByUser] [tinyint] NULL,
	[OrderID] [int] NULL,
	[IsDisabled] [tinyint] NOT NULL,
	[IsDefault] [tinyint] NOT NULL,
	[ApplyUrl] [varchar](255) NULL,
	[showflag] [tinyint] NULL,
	[logo] [varchar](255) NULL,
	[setting] [ntext] NULL,
	[ShowDevice] [varchar](200) NULL,
 CONSTRAINT [PK_KS_PaymentPlat] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_Admin]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_Admin](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](50) NOT NULL,
	[PassWord] [nvarchar](50) NOT NULL,
	[Salt] [nvarchar](50) NULL,
	[PrUserName] [nvarchar](50) NULL,
	[RealName] [nvarchar](20) NULL,
	[Tel] [nvarchar](15) NULL,
	[Descript] [nvarchar](255) NULL,
	[AddDate] [datetime] NULL,
	[LastLoginIP] [nvarchar](50) NULL,
	[LastLoginTime] [datetime] NULL,
	[LastLogoutTime] [datetime] NULL,
	[LoginTimes] [int] NULL,
	[Locked] [tinyint] NULL,
	[SysAdmin] [tinyint] NULL,
	[UserType] [tinyint] NULL,
	[PowerList] [ntext] NULL,
	[DocPower] [tinyint] NULL,
	[UserFace] [varchar](255) NULL,
	[Role] [int] NULL,
	[storeids] [nvarchar](50) NULL,
	[RndPassword] [nvarchar](50) NULL,
	[ProvinceId] [int] NULL,
	[CityId] [int] NULL,
	[CountyId] [int] NULL,
 CONSTRAINT [PK_KS_Admin] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_AccessTokens]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_AccessTokens](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Title] [varchar](500) NULL,
	[Limits] [varchar](3000) NULL,
	[AccessToken] [varchar](500) NULL,
	[AddDate] [datetime] NULL,
 CONSTRAINT [PK_KS_AccessTokens] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  StoredProcedure [dbo].[KS_MoodProjectDel]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_MoodProjectDel]
 @projectids nvarchar(1000)
 AS
  declare @sql nvarchar(1500)
  set @sql='delete from KS_MoodProject Where projectid in('+@projectids+')'
  exec (@sql)
  set @sql='delete from KS_MoodList Where moodid in('+@projectids+')'
   exec (@sql)
GO
/****** Object:  StoredProcedure [dbo].[KS_PKGDUnVerifySelect]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_PKGDUnVerifySelect]
@Ids nvarchar(1000)
 AS
  If @Ids=''
    return null
 Else
   Begin
  DECLARE @SQL Nvarchar(3000)
  SET @SQL='Update KS_PKGD SET Status=0  WHERE ID In('+@ids+')'
  EXEC (@SQL)
  End
GO
/****** Object:  StoredProcedure [dbo].[KS_PKGDDelete]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_PKGDDelete]
@Ids nvarchar(1000)
 AS
  If @Ids=''
    return null
 Else
   Begin
  DECLARE @SQL Nvarchar(3000)
  SET @SQL='Delete From KS_PKGD WHERE ID In('+@ids+')'
  EXEC (@SQL)
  End
GO
/****** Object:  StoredProcedure [dbo].[KS_PKGDDel]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_PKGDDel]
@Ids nvarchar(1000)
 AS
  DECLARE @SQL Nvarchar(3000)
  SET @SQL='DELETE FROM KS_PKGD WHERE id in('+@Ids+')'
  EXEC (@SQL)
GO
/****** Object:  Table [dbo].[KS_ProBundleSelect]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProBundleSelect](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[CartID] [int] NULL,
	[InfoID] [int] NULL,
	[Title] [nvarchar](200) NULL,
	[Price] [money] NULL,
	[Num] [int] NULL,
	[addDate] [datetime] NULL,
	[attrid] [int] NULL,
 CONSTRAINT [PK_KS_ProBundleSelect] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProBundleSale]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProBundleSale](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[infoid] [int] NULL,
	[kbinfoid] [int] NULL,
	[kbprice] [money] NULL,
	[attrid] [int] NULL,
 CONSTRAINT [PK_KS_ProBundleSale] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProBrandR]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProBrandR](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ClassID] [int] NULL,
	[BrandID] [int] NULL,
 CONSTRAINT [PK_KS_ProClassBrandR] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProBrand]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProBrand](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[BrandName] [nvarchar](200) NULL,
	[OrderID] [int] NULL,
	[ShowInTop] [tinyint] NULL,
	[PhotoUrl] [nvarchar](250) NULL,
	[Recommend] [tinyint] NULL,
	[Intro] [ntext] NULL,
	[firstAlphabet] [nvarchar](50) NULL,
	[BrandEName] [nvarchar](50) NULL,
	[num] [int] NULL,
	[TemplateFile] [varchar](255) NULL,
	[BigPhoto] [varchar](255) NULL,
 CONSTRAINT [PK_KS_ClassBrand] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProBookCodeType]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProBookCodeType](
	[TypeID] [int] IDENTITY(1,1) NOT NULL,
	[TypeName] [varchar](255) NULL,
	[Note] [nvarchar](255) NULL,
	[AddDate] [datetime] NULL,
	[CityNum] [int] NULL,
	[BeginDate] [datetime] NULL,
	[EndDate] [datetime] NULL,
	[IsOpenApply] [tinyint] NULL,
	[ApplyMustLogin] [tinyint] NULL,
	[ApplyNum] [int] NULL,
	[DefaultPic] [varchar](255) NULL,
	[Intro] [ntext] NULL,
	[templateFile] [nvarchar](200) NULL,
	[UseApplyCity] [tinyint] NULL,
 CONSTRAINT [PK_KS_ProBookCodeType] PRIMARY KEY CLUSTERED 
(
	[TypeID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProBookCode]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProBookCode](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[CodeID] [varchar](150) NULL,
	[CodePass] [varchar](100) NULL,
	[UserName] [nvarchar](100) NULL,
	[AddDate] [datetime] NULL,
	[UseTime] [datetime] NULL,
	[IsUsed] [tinyint] NULL,
	[TypeID] [int] NULL,
	[CityID] [int] NULL,
	[ProvinceId] [int] NULL,
	[CountyID] [int] NULL,
	[Address] [nvarchar](255) NULL,
	[RealName] [nvarchar](100) NULL,
	[Mobile] [varchar](100) NULL,
	[IsPub] [tinyint] NULL,
	[ZipCode] [varchar](200) NULL,
 CONSTRAINT [PK_KS_ProBookCode] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProBiddingAsk]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProBiddingAsk](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[InfoID] [int] NULL,
	[Money] [money] NULL,
	[AddDate] [datetime] NULL,
	[UserName] [varchar](100) NULL,
	[UserID] [int] NULL,
	[UserIP] [varchar](100) NULL,
	[Status] [int] NULL,
	[IsZB] [int] NULL,
	[RealName] [varchar](100) NULL,
	[Mobile] [varchar](60) NULL,
	[Address] [varchar](255) NULL,
	[ZipCode] [varchar](50) NULL,
	[AgentPrice] [money] NULL,
 CONSTRAINT [PK_KS_ProBiddingAsk] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProBidding]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProBidding](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[InfoID] [int] NULL,
	[Money] [int] NULL,
	[BeginDate] [datetime] NULL,
	[enddate] [datetime] NULL,
	[Bail] [money] NULL,
	[Num] [int] NULL,
	[ExtendTime] [int] NULL,
	[HightMoney] [money] NULL,
	[Times] [int] NULL,
	[HightUserName] [varchar](100) NULL,
	[IsEnd] [int] NULL,
 CONSTRAINT [PK_KS_ProBidding] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProAsk]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProAsk](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[ProID] [int] NULL,
	[UserName] [varchar](50) NULL,
	[UserID] [int] NULL,
	[UserIP] [varchar](50) NULL,
	[Content] [varchar](255) NULL,
	[AddDate] [datetime] NULL,
	[Status] [tinyint] NULL,
	[ReplyUser] [varchar](50) NULL,
	[ReplyContent] [nvarchar](500) NULL,
	[ReplyDate] [datetime] NULL,
	[IsReply] [tinyint] NULL,
	[PhotoUrl] [varchar](255) NULL,
	[ProductType] [int] NULL,
 CONSTRAINT [PK_KS_ProAsk] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProAmount]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProAmount](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ProID] [int] NULL,
	[AttrID] [int] NULL,
	[StoreID] [int] NULL,
	[Amount] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProAddress]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProAddress](
	[AddressId] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](50) NULL,
	[RealName] [nvarchar](50) NULL,
	[Address] [nvarchar](255) NULL,
	[ZipCode] [nvarchar](50) NULL,
	[Tel] [nvarchar](50) NULL,
	[Mobile] [nvarchar](50) NULL,
	[Email] [nvarchar](50) NULL,
	[ProvinceID] [int] NULL,
	[CityID] [int] NULL,
	[CountyID] [int] NULL,
	[AddDate] [smalldatetime] NULL,
	[IsDefault] [tinyint] NULL,
	[Title] [nvarchar](255) NULL,
 CONSTRAINT [PK_KS_ProAddress] PRIMARY KEY CLUSTERED 
(
	[AddressId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  StoredProcedure [dbo].[KS_PKZTDel]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_PKZTDel]
@pkid varchar(255)
 AS
  declare @Sql varchar(3000)
  Set @Sql='Delete From KS_PKZT Where PKID in('+@pkid+')'
  exec (@SQL)
  Set @Sql='Delete From KS_PKGD Where PKID IN('+@PKID+')'
  exec (@SQL)
  Set @Sql='Update KS_InfoList Set pkid=0 Where PKID IN('+@PKID+')'
  EXEC(@SQL)
GO
/****** Object:  StoredProcedure [dbo].[KS_PKGDVerifySelect]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_PKGDVerifySelect]
@Ids nvarchar(1000)
 AS
  If @Ids=''
    return null
 Else
   Begin
  DECLARE @SQL Nvarchar(3000)
  SET @SQL='Update KS_PKGD SET Status=1 WHERE ID In('+@ids+')'
  EXEC (@SQL)
  End
GO
/****** Object:  StoredProcedure [dbo].[KS_PKGetGDList]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_PKGetGDList] 
@num int=0,
@pkid int=0,
@role int=1
as
 declare @SQL Nvarchar(3000)
 SET @SQL='select top ' +convert(nvarchar(50),@num) +'  * from [KS_PKGD] Where pkid='+convert(nvarchar(50),@pkid)+' and role='+convert(nvarchar(50),@role)+' Order by id desc'
 Exec (@SQL)
GO
/****** Object:  Table [dbo].[KS_PKZT]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_PKZT](
	[PKID] [int] IDENTITY(1,1) NOT NULL,
	[Title] [nvarchar](255) NOT NULL,
	[ZFGD] [text] NULL,
	[FFGD] [text] NULL,
	[UserTF] [tinyint] NULL,
	[OnceTF] [tinyint] NULL,
	[VerifyTF] [tinyint] NULL,
	[Status] [tinyint] NULL,
	[TimeLimit] [tinyint] NULL,
	[BeginDate] [datetime] NULL,
	[EndDate] [datetime] NULL,
	[InfoID] [int] NULL,
	[ZFVotes] [int] NULL,
	[FFVotes] [int] NULL,
	[SFVotes] [int] NULL,
 CONSTRAINT [PK_KS_PKZT] PRIMARY KEY CLUSTERED 
(
	[PKID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProCouponMessage]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProCouponMessage](
	[MessageID] [int] IDENTITY(1,1) NOT NULL,
	[MessageTypeName] [nvarchar](250) NULL,
	[Content1] [ntext] NULL,
	[Content2] [ntext] NULL,
	[Content3] [ntext] NULL,
	[AddDate] [datetime] NULL,
	[DefaultNum] [int] NULL,
	[MsgWarnType] [int] NULL,
	[Title] [varchar](250) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProCoupon]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProCoupon](
	[CouponID] [int] IDENTITY(1,1) NOT NULL,
	[Couponname] [nvarchar](250) NULL,
	[FaceValue] [money] NULL,
	[MinAmount] [money] NULL,
	[CouponType] [int] NULL,
	[BeginDate] [datetime] NULL,
	[EndDate] [datetime] NULL,
	[Inputer] [nvarchar](50) NULL,
	[AddDate] [datetime] NULL,
	[Status] [tinyint] NULL,
	[MaxDiscount] [float] NULL,
	[RangeType] [int] NULL,
	[LimitType] [int] NULL,
	[LimitProIds] [nvarchar](500) NULL,
	[LimitClassIDs] [nvarchar](500) NULL,
	[DefaultPic] [varchar](255) NULL,
	[Describe] [varchar](255) NULL,
	[isshow] [int] NULL,
 CONSTRAINT [PK_KS_ProCoupon] PRIMARY KEY CLUSTERED 
(
	[CouponID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProCommentReply]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProCommentReply](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[content] [text] NULL,
	[adddate] [datetime] NULL,
	[status] [tinyint] NULL,
	[username] [varchar](50) NULL,
	[userip] [varchar](50) NULL,
	[cmtid] [int] NULL,
	[userid] [int] NULL,
 CONSTRAINT [PK_KS_ProCommentReply] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProComment]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProComment](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[OrderId] [varchar](50) NULL,
	[ProID] [int] NULL,
	[UserName] [varchar](50) NULL,
	[UserID] [int] NULL,
	[UserIP] [varchar](50) NULL,
	[AddDate] [datetime] NULL,
	[Content] [text] NULL,
	[StarNum] [int] NULL,
	[CmtType] [tinyint] NULL,
	[Support] [int] NULL,
	[CmtNum] [int] NULL,
	[BuyDate] [datetime] NULL,
	[ProAttr] [varchar](255) NULL,
	[Status] [tinyint] NULL,
	[PhotoUrls] [text] NULL,
	[AddContent] [text] NULL,
	[AddContentTime] [datetime] NULL,
	[orderType] [int] NULL,
	[ReplyContent] [ntext] NULL,
	[ReplyUser] [ntext] NULL,
	[ReplyDate] [datetime] NULL,
	[IsReply] [tinyint] NULL,
 CONSTRAINT [PK_KS_ProComment] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProCouponUser]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProCouponUser](
	[CouponUserID] [int] IDENTITY(1,1) NOT NULL,
	[CouponId] [int] NULL,
	[CouponNum] [nvarchar](50) NULL,
	[UserName] [nvarchar](50) NULL,
	[OrderID] [nvarchar](50) NULL,
	[UseTime] [datetime] NULL,
	[UseFlag] [tinyint] NULL,
	[AddDate] [datetime] NULL,
	[MailTF] [tinyint] NULL,
	[AvailableMoney] [money] NULL,
	[Note] [nvarchar](1000) NULL,
	[IsExtend] [tinyint] NULL,
 CONSTRAINT [PK_KS_ProCouponUser] PRIMARY KEY CLUSTERED 
(
	[CouponUserID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProductList]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProductList](
	[InfoID] [int] IDENTITY(1,1) NOT NULL,
	[ProID] [nvarchar](20) NOT NULL,
	[ChannelID] [int] NULL,
	[ClassID] [int] NULL,
	[KeyTags] [ntext] NULL,
	[Title] [nvarchar](255) NOT NULL,
	[TitleFontColor] [nvarchar](20) NULL,
	[ProductType] [int] NULL,
	[Attribute] [nvarchar](255) NULL,
	[BarCode] [nvarchar](100) NULL,
	[Unit] [nvarchar](50) NULL,
	[Weight] [float] NULL,
	[DefaultPic] [nvarchar](255) NULL,
	[BigPhoto] [nvarchar](255) NULL,
	[Intro] [nvarchar](300) NULL,
	[TurnUrl] [nvarchar](250) NULL,
	[priority] [int] NULL,
	[ProducerName] [nvarchar](50) NULL,
	[TrademarkName] [nvarchar](50) NULL,
	[ServiceTerm] [int] NULL,
	[Rank] [nvarchar](50) NULL,
	[Hits] [int] NULL,
	[BrandID] [int] NULL,
	[HitsByDay] [int] NULL,
	[HitsByWeek] [int] NULL,
	[HitsByMonth] [int] NULL,
	[LastHitsTime] [datetime] NULL,
	[Amount] [int] NULL,
	[AlarmNum] [int] NULL,
	[Price] [money] NULL,
	[Price_Member] [money] NULL,
	[GroupPrice] [tinyint] NULL,
	[TaxTF] [tinyint] NULL,
	[Tax] [float] NULL,
	[MinOrderNum] [int] NULL,
	[MaxOrderNum] [int] NULL,
	[AddDate] [datetime] NULL,
	[VoteID] [int] NULL,
	[ShowOn3G] [tinyint] NULL,
	[FileName] [nvarchar](255) NULL,
	[RefreshTF] [tinyint] NULL,
	[Verify] [tinyint] NULL,
	[Score] [int] NULL,
	[DelTF] [tinyint] NULL,
	[Inputer] [nvarchar](50) NULL,
	[IsChangeBuy] [tinyint] NULL,
	[ChangeBuyNeedPrice] [money] NULL,
	[ChangeBuyPresentPrice] [money] NULL,
	[IsLimitbuy] [tinyint] NULL,
	[LimitBuyPrice] [money] NULL,
	[LimitBuyTaskID] [int] NULL,
	[LimitBuyAmount] [int] NULL,
	[AttributeCart] [nvarchar](50) NULL,
	[HasSold] [int] NULL,
	[CommentNum] [int] NULL,
	[CmtNum] [int] NULL,
	[AskNum] [int] NULL,
	[AttachmentCharge] [int] NULL,
	[AttachmentChargeOnce] [tinyint] NULL,
	[IsScoreChange] [tinyint] NULL,
	[ChangeScore] [int] NULL,
	[SocialIDs] [varchar](255) NULL,
	[FrontPrice] [money] NULL,
	[PayType] [tinyint] NULL,
	[LimitBeginDate] [datetime] NULL,
	[LimitEndDate] [datetime] NULL,
	[IsBookCode] [tinyint] NULL,
	[BookCodeTypeID] [int] NULL,
	[LimitCityNum] [int] NULL,
	[IsPromotions] [tinyint] NULL,
	[DownUrl] [varchar](255) NULL,
	[ProvinceID] [int] NULL,
	[CityId] [int] NULL,
	[CountyId] [int] NULL,
	[IsGroupRate] [tinyint] NULL,
	[payId] [int] NULL,
	[LimitBuyType] [int] NULL,
	[LimitBuyNum] [int] NULL,
	[Price_Cost] [money] NULL,
	[GoodNum] [int] NULL,
	[BadNum] [int] NULL,
	[FavNum] [int] NULL,
	[ShareNum] [int] NULL,
	[AllowBuyFlag] [tinyint] NULL,
	[ArrGroupID] [varchar](255) NULL,
	[FreightFree] [tinyint] NULL,
 CONSTRAINT [PK_KS_ProductList] PRIMARY KEY CLUSTERED 
(
	[InfoID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProDeliveryItem]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProDeliveryItem](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[DeliveryID] [int] NOT NULL,
	[provinces] [nvarchar](1000) NULL,
	[IsCod] [tinyint] NULL,
	[FirstFreight] [money] NULL,
	[ContinueFreight] [money] NULL,
	[LimitFreight] [money] NULL,
	[storeId] [int] NULL,
	[storeType] [tinyint] NULL,
	[IsSection] [tinyint] NULL,
	[SectionInfo] [nvarchar](1000) NULL,
 CONSTRAINT [PK_KS_ProDeliveryItem] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProDeliveryCorp]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProDeliveryCorp](
	[CorpID] [int] IDENTITY(1,1) NOT NULL,
	[CorpName] [nvarchar](100) NOT NULL,
	[WebUrl] [nvarchar](150) NULL,
	[OrderUrl] [nvarchar](200) NULL,
	[OrderID] [int] NULL,
	[Intro] [ntext] NULL,
	[Template] [ntext] NULL,
	[PhotoUrl] [varchar](255) NULL,
	[CorpCode] [varchar](50) NULL,
	[PartnerId] [varchar](255) NULL,
	[partnerKey] [varchar](255) NULL,
	[net] [varchar](255) NULL,
 CONSTRAINT [PK_KS_ProDeliveryCorp] PRIMARY KEY CLUSTERED 
(
	[CorpID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProDelivery]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProDelivery](
	[DeliveryID] [int] IDENTITY(1,1) NOT NULL,
	[DeliveryName] [nvarchar](200) NOT NULL,
	[CorpId] [int] NULL,
	[FreightType] [tinyint] NULL,
	[Freight] [money] NULL,
	[FirstHeavy] [float] NULL,
	[ContinueHeavy] [float] NULL,
	[FirstFreight] [money] NULL,
	[ContinueFreight] [money] NULL,
	[LimitFreight] [money] NULL,
	[ChargeType] [tinyint] NULL,
	[IsCOD] [tinyint] NULL,
	[Intro] [ntext] NULL,
	[PromotionType] [tinyint] NULL,
	[OrderAmount1] [money] NULL,
	[OrderAmount2] [money] NULL,
	[OrderAmount3] [money] NULL,
	[Freight1] [money] NULL,
	[Freight2] [money] NULL,
	[Status] [tinyint] NULL,
	[OrderID] [int] NULL,
	[IsDefault] [tinyint] NULL,
	[CityFirstFreight] [money] NULL,
	[CityContinueFreight] [money] NULL,
	[CityLimitFreight] [money] NULL,
	[CityIsCod] [tinyint] NULL,
	[ProvinceFirstFreight] [money] NULL,
	[ProvinceContinueFreight] [money] NULL,
	[ProvinceLimitFreight] [money] NULL,
	[ProvinceIsCod] [tinyint] NULL,
	[DetailTipsTF] [tinyint] NULL,
	[isZT] [tinyint] NULL,
	[IsCityTF] [tinyint] NULL,
	[IsProvinceTF] [tinyint] NULL,
	[OneWeight] [tinyint] NULL,
	[LimitWeight] [float] NULL,
	[LimitMinWeight] [float] NULL,
	[IsFreightFree] [int] NULL,
 CONSTRAINT [PK_KS_ProDelivery] PRIMARY KEY CLUSTERED 
(
	[DeliveryID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProLimitBuy]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProLimitBuy](
	[taskid] [int] IDENTITY(1,1) NOT NULL,
	[TaskName] [nvarchar](255) NOT NULL,
	[TaskType] [int] NULL,
	[LimitBuyBeginTime] [datetime] NULL,
	[LimitBuyEndTime] [datetime] NULL,
	[LimitBuyPayTime] [int] NULL,
	[Intro] [ntext] NULL,
	[Status] [tinyint] NULL,
	[AddDate] [smalldatetime] NULL,
	[TemplateFile] [nvarchar](255) NULL,
	[Recommend] [tinyint] NULL,
	[PhotoUrl] [varchar](255) NULL,
	[JGRange] [varchar](255) NULL,
	[ProvinceID] [int] NULL,
	[CityID] [int] NULL,
	[CountyID] [int] NULL,
 CONSTRAINT [PK_KS_ProLimitBuy] PRIMARY KEY CLUSTERED 
(
	[taskid] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProInvoice]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProInvoice](
	[InvoiceId] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [varchar](100) NULL,
	[InvoiceType] [tinyint] NULL,
	[TitleType] [tinyint] NULL,
	[CompanyName] [nvarchar](255) NULL,
	[NSRSBH] [varchar](100) NULL,
	[Address] [nvarchar](255) NULL,
	[Tel] [varchar](100) NULL,
	[Bank] [nvarchar](100) NULL,
	[BankNum] [varchar](100) NULL,
	[AddDate] [datetime] NULL,
	[IsDefault] [tinyint] NULL,
	[ContactMan] [nvarchar](100) NULL,
	[Mobile] [varchar](100) NULL,
	[ProvinceID] [int] NULL,
	[CityID] [int] NULL,
	[CountyId] [int] NULL,
	[ContactAddress] [nvarchar](255) NULL,
	[Email] [nvarchar](50) NULL,
 CONSTRAINT [PK_KS_ProInvoice] PRIMARY KEY CLUSTERED 
(
	[InvoiceId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProImages]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProImages](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[InfoID] [int] NULL,
	[PhotoUrl] [nvarchar](255) NULL,
	[BigPhoto] [nvarchar](255) NULL,
	[Intro] [nvarchar](255) NULL,
	[OrderId] [int] NULL,
 CONSTRAINT [PK_KS_ProImages] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProGroupPrice]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProGroupPrice](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[InfoID] [int] NULL,
	[GroupID] [int] NULL,
	[Price] [money] NULL,
 CONSTRAINT [PK_KS_ProGroupPrice] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProGroupBuyConsumer]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProGroupBuyConsumer](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[InfoID] [int] NULL,
	[AddDate] [datetime] NULL,
	[OrderID] [varchar](100) NULL,
	[UserName] [varchar](50) NULL,
	[Remark] [ntext] NULL,
	[Times] [int] NULL,
	[Mobile] [varchar](100) NULL,
 CONSTRAINT [PK_KS_ProGroupBuyConsumer] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProGroupBuyClass]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProGroupBuyClass](
	[classID] [int] IDENTITY(1,1) NOT NULL,
	[className] [nvarchar](50) NOT NULL,
	[rootid] [int] NULL,
	[orders] [int] NULL,
	[parentid] [int] NULL,
	[child] [int] NULL,
	[IsLock] [tinyint] NOT NULL,
	[InfoNum] [int] NULL,
 CONSTRAINT [PK_KS_ProGroupBuyClass] PRIMARY KEY CLUSTERED 
(
	[classID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProGroupBuy]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProGroupBuy](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Subject] [nvarchar](255) NULL,
	[PhotoUrl] [nvarchar](200) NULL,
	[BigPhoto] [nvarchar](250) NULL,
	[BeginDate] [datetime] NULL,
	[EndDate] [datetime] NULL,
	[AddDate] [datetime] NULL,
	[BigClassID] [int] NULL,
	[ClassID] [int] NULL,
	[Intro] [ntext] NULL,
	[Highlights] [ntext] NULL,
	[Protection] [ntext] NULL,
	[Notes] [ntext] NULL,
	[Locked] [tinyint] NULL,
	[EndTF] [tinyint] NULL,
	[AllowBMFlag] [tinyint] NULL,
	[AllowArrGroupID] [nvarchar](200) NULL,
	[minnum] [int] NULL,
	[minnumtime] [datetime] NULL,
	[IsSuccess] [tinyint] NULL,
	[Price_Original] [money] NULL,
	[Price] [money] NULL,
	[Discount] [real] NULL,
	[Weight] [real] NULL,
	[Unit] [varchar](50) NULL,
	[LimitBuyNum] [int] NULL,
	[Recommend] [tinyint] NULL,
	[ProvinceID] [int] NULL,
	[CityID] [int] NULL,
	[HasSellNum] [int] NULL,
	[RealSellNum] [int] NULL,
	[CleanCart] [tinyint] NULL,
	[ShowDelivery] [tinyint] NULL,
	[ShowPayMent] [tinyint] NULL,
	[Comment] [tinyint] NULL,
	[ChangesUrl] [nvarchar](255) NULL,
	[TemplateID] [nvarchar](255) NULL,
	[MapMarker] [nvarchar](255) NULL,
	[inputer] [varchar](100) NULL,
	[IsBusiness] [tinyint] NULL,
	[FreightType] [tinyint] NULL,
	[Freight] [money] NULL,
	[Amount] [int] NULL,
	[AmountNum] [int] NULL,
	[payId] [int] NULL,
	[cmtnum] [int] NULL,
 CONSTRAINT [PK_KS_ProGroupBuy] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  StoredProcedure [dbo].[KS_ProGetProFromLimitBuy]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProGetProFromLimitBuy] 
@NUM INT=0,
@TaskID INT=0
AS
 DECLARE @SQL Nvarchar(2200)
 Set @SQL='SELECT  top '+Cast(@num as varchar(20))+'  I.Title,I.LinkUrl,i.DefaultPic,I.Price_market,I.Price_member,I.Price,I.LimitBuyPrice,I.LimitBuyAmount,I.Unit,L.LimitBuyBeginTime,L.LimitBuyEndTime,L.TaskType FROM KS_ProductList I Inner Join KS_ProLimitBuy L ON I.LimitBuyTaskID=L.Taskid Where L.Status=1 and L.taskid='+Cast(@TaskID as varchar(20))+' Order BY I.InfoID Desc'
 Exec (@SQL)
GO
/****** Object:  Table [dbo].[KS_ProOrder]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProOrder](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[OrderID] [nvarchar](50) NULL,
	[UserName] [nvarchar](50) NULL,
	[OrderTotalPrice] [money] NULL,
	[GoodsMoney] [money] NULL,
	[Freight] [money] NULL,
	[Taxes] [float] NULL,
	[PayDiscountMoney] [money] NULL,
	[Invoice] [text] NULL,
	[IsInvoice] [tinyint] NULL,
	[Invoiced] [tinyint] NULL,
	[MoneyReceipt] [money] NULL,
	[InputTime] [datetime] NULL,
	[deliveryDate] [nvarchar](100) NULL,
	[SpecifiedDate] [nvarchar](100) NULL,
	[deliveryTime] [nvarchar](100) NULL,
	[Remark] [nvarchar](500) NULL,
	[PaymentID] [int] NULL,
	[DeliverID] [int] NULL,
	[Status] [int] NULL,
	[OrderScore] [int] NULL,
	[ScoreTF] [tinyint] NULL,
	[RealName] [varchar](50) NULL,
	[Address] [nvarchar](255) NULL,
	[ZipCode] [nvarchar](50) NULL,
	[Mobile] [nvarchar](50) NULL,
	[Tel] [nvarchar](50) NULL,
	[Email] [nvarchar](50) NULL,
	[ProvinceID] [int] NULL,
	[CityID] [int] NULL,
	[CountyID] [int] NULL,
	[DeliverStatus] [int] NULL,
	[IsAnonymous] [tinyint] NULL,
	[CouponUserID] [int] NULL,
	[NoUseCouponMoney] [money] NULL,
	[UseCouponMoney] [money] NULL,
	[PayTime] [datetime] NULL,
	[PaymentPlatId] [int] NULL,
	[PayStatus] [int] NULL,
	[alipaytradestatus] [varchar](50) NULL,
	[alipaytradeno] [varchar](50) NULL,
	[OrderType] [tinyint] NULL,
	[SmsNum] [int] NULL,
	[IsTips] [tinyint] NULL,
	[IsTipsUser] [tinyint] NULL,
	[ChangeScore] [int] NULL,
	[VerifyCode] [varchar](50) NULL,
	[IsBusiness] [tinyint] NULL,
	[Business] [varchar](50) NULL,
	[IsBusinessConfirm] [tinyint] NULL,
	[ConsumptionMode] [tinyint] NULL,
	[IsFrontPay] [tinyint] NULL,
	[FrontMoney] [money] NULL,
	[SaveMoney] [money] NULL,
	[payId] [int] NULL,
	[agent] [varchar](255) NULL,
	[StoreID] [int] NULL,
	[PayOrderID] [nvarchar](100) NULL,
	[OrderDevice] [int] NULL,
	[SettleTime] [datetime] NULL,
	[SettleInputer] [nvarchar](50) NULL,
	[UseRedPacketMoney] [money] NULL,
	[CouponUserID1] [int] NULL,
	[DeliverDate] [datetime] NULL,
	[IsReceivExtended] [tinyint] NULL,
	[userid] [int] NULL,
	[ExpressNumber] [nvarchar](250) NULL,
	[ExpressCorpId] [int] NULL,
	[IsLeader] [int] NULL,
	[JoinNum] [int] NULL,
	[GoupNum] [int] NULL,
	[IsEnd] [int] NULL,
	[InvoiceMoney] [nvarchar](255) NULL,
	[DeliverNum] [varchar](255) NULL,
 CONSTRAINT [PK_KS_ProOrder] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProLogInvoice]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProLogInvoice](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[OrderID] [nvarchar](50) NULL,
	[UserName] [nvarchar](50) NULL,
	[ClientName] [nvarchar](50) NULL,
	[Inputer] [nvarchar](50) NULL,
	[InvoiceType] [nvarchar](100) NULL,
	[InvoiceNum] [nvarchar](50) NULL,
	[InvoiceTitle] [nvarchar](50) NULL,
	[InvoiceContent] [ntext] NULL,
	[InvoiceDate] [datetime] NULL,
	[MoneyTotal] [money] NULL,
	[HandlerName] [nvarchar](50) NULL,
	[InputTime] [datetime] NULL,
 CONSTRAINT [PK_KS_ProLogInvoice] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProLogDeliver]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProLogDeliver](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[OrderID] [nvarchar](50) NULL,
	[ClientName] [nvarchar](100) NULL,
	[UserName] [nvarchar](50) NULL,
	[Inputer] [nvarchar](50) NULL,
	[HandlerName] [nvarchar](50) NULL,
	[DeliverDate] [datetime] NULL,
	[DeliverType] [tinyint] NULL,
	[ExpressCorpId] [nvarchar](50) NULL,
	[ExpressNumber] [nvarchar](50) NULL,
	[Remark] [nvarchar](255) NULL,
	[Status] [tinyint] NULL,
	[MoneyReturnType] [tinyint] NULL,
	[MoneyReturnBankCard] [varchar](100) NULL,
	[MoneyReturnBankName] [varchar](150) NULL,
	[MoneyReturnCardName] [varchar](100) NULL,
	[HandlerDate] [datetime] NULL,
	[HandlerStatus] [tinyint] NULL,
	[PhotoUrls] [ntext] NULL,
 CONSTRAINT [PK_KS_ProLogDeliver] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProShoppingCart]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProShoppingCart](
	[CartID] [int] IDENTITY(1,1) NOT NULL,
	[InfoID] [int] NULL,
	[Price] [money] NULL,
	[Num] [int] NULL,
	[AddDate] [datetime] NULL,
	[UserName] [nvarchar](50) NULL,
	[IsAnonymous] [tinyint] NULL,
	[IsChangeBuy] [tinyint] NULL,
	[IsBundleSale] [tinyint] NULL,
	[IsLimitBuy] [tinyint] NULL,
	[LimitBuyTaskID] [int] NULL,
	[AttrID] [int] NULL,
	[flag] [int] NULL,
	[CityID] [int] NULL,
	[BookCode] [varchar](100) NULL,
	[business] [nvarchar](100) NULL,
	[isToPay] [int] NULL,
 CONSTRAINT [PK_KS_ProShoppingCart] PRIMARY KEY CLUSTERED 
(
	[CartID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProSendManage]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProSendManage](
	[SendID] [int] IDENTITY(1,1) NOT NULL,
	[CompanyName] [nvarchar](255) NULL,
	[Consignor] [nvarchar](255) NULL,
	[SendAddress] [nvarchar](255) NULL,
	[Code] [nvarchar](255) NULL,
	[Mobilephone] [nvarchar](255) NULL,
	[Telephone] [nvarchar](255) NULL,
	[Explain1] [ntext] NULL,
	[Explain2] [ntext] NULL,
	[Explain3] [ntext] NULL,
	[Explain4] [ntext] NULL,
	[Explain5] [ntext] NULL,
	[AddDate] [datetime] NULL,
	[DefaultNum] [int] NULL,
	[ProvinceId] [int] NULL,
	[CityId] [int] NULL,
	[CountyId] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProOrderService]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProOrderService](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[Content] [ntext] NULL,
	[OrderID] [nvarchar](100) NULL,
	[adddate] [datetime] NULL,
	[qsr] [nvarchar](100) NULL,
	[UserName] [nvarchar](100) NULL,
	[photos] [text] NULL,
 CONSTRAINT [PK_KS_ProOrderService] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProOrderLog]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProOrderLog](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[OrderID] [varchar](50) NULL,
	[Inputer] [varchar](50) NULL,
	[AddDate] [datetime] NULL,
	[Remark] [ntext] NULL,
	[UserName] [varchar](50) NULL,
	[statusCode] [int] NULL,
	[LogDeliverId] [int] NULL,
 CONSTRAINT [PK_KS_ProOrderLog] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProOrderItem]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProOrderItem](
	[ItemID] [int] IDENTITY(1,1) NOT NULL,
	[OrderID] [nvarchar](50) NOT NULL,
	[Title] [nvarchar](200) NULL,
	[InfoID] [int] NULL,
	[Price_Market] [money] NULL,
	[Price] [money] NULL,
	[num] [int] NULL,
	[TotalPrice] [money] NULL,
	[AttrID] [int] NULL,
	[IsChangeBuy] [tinyint] NULL,
	[Remark] [nvarchar](255) NULL,
	[LimitBuyTaskID] [int] NULL,
	[IsLimitBuy] [int] NULL,
	[IsBundleSale] [tinyint] NULL,
	[ChangeScore] [int] NULL,
	[Freight] [money] NULL,
	[FreightType] [tinyint] NULL,
	[Business] [varchar](100) NULL,
	[CityID] [int] NULL,
	[BookCode] [varchar](100) NULL,
	[price_cost] [money] NULL,
	[IsCmt] [int] NULL,
	[channelid] [int] NULL,
 CONSTRAINT [PK_KS_ProOrderItem] PRIMARY KEY CLUSTERED 
(
	[ItemID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_ProOrderBundleSale]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProOrderBundleSale](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[CartID] [int] NULL,
	[InfoID] [int] NULL,
	[Title] [nvarchar](200) NULL,
	[Price] [money] NULL,
	[Num] [int] NULL,
	[addDate] [datetime] NULL,
 CONSTRAINT [PK_KS_ProOrderBundleSale] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProStore]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProStore](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[Title] [nvarchar](255) NULL,
	[ProvinceID] [int] NULL,
	[CityID] [int] NULL,
	[CountyID] [int] NULL,
	[adddate] [datetime] NULL,
	[Address] [nvarchar](255) NULL,
	[Tel] [nvarchar](100) NULL,
	[Intro] [ntext] NULL,
	[ContactMan] [nvarchar](255) NULL,
	[orderId] [int] NULL,
	[storeType] [int] NULL,
 CONSTRAINT [PK_KS_ProStore] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProSpecificationR]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProSpecificationR](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ClassID] [int] NULL,
	[SID] [int] NULL,
	[orderid] [int] NULL,
 CONSTRAINT [PK_KS_ProSpecificationR] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProSpecificationPrice]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProSpecificationPrice](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[itemNo] [nvarchar](250) NULL,
	[proid] [int] NULL,
	[attr1] [nvarchar](255) NULL,
	[attr2] [nvarchar](255) NULL,
	[attr3] [nvarchar](255) NULL,
	[price] [money] NULL,
	[amount] [int] NULL,
	[weight] [float] NULL,
	[price_market] [money] NULL,
	[Price_Cost] [money] NULL,
	[GroupPrice] [nvarchar](2000) NULL,
 CONSTRAINT [PK_KS_ShopSpecificationPrice] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProSpecification]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_ProSpecification](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Title] [nvarchar](250) NULL,
	[ShowType] [tinyint] NULL,
	[SValue] [ntext] NULL,
	[orderid] [int] NULL,
 CONSTRAINT [PK_KS_ShopSpecification] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ProSpecial]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ProSpecial](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[title] [varchar](200) NULL,
	[itemnum] [int] NULL,
 CONSTRAINT [PK_KS_ProSpecial] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJTK]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJTK](
	[TmId] [int] IDENTITY(1,1) NOT NULL,
	[TypeId] [int] NULL,
	[ClassID] [int] NULL,
	[Tmtype] [int] NULL,
	[Title] [nvarchar](255) NULL,
	[Tmnr] [ntext] NULL,
	[DAJS] [ntext] NULL,
	[tmfs] [real] NULL,
	[Answer] [ntext] NULL,
	[OptionNum] [int] NULL,
	[OrderID] [int] NULL,
	[IsRnd] [tinyint] NULL,
	[IsMedia] [tinyint] NULL,
	[MediaUrl] [nvarchar](250) NULL,
	[MediaTxt] [ntext] NULL,
	[DAJSMedia] [nvarchar](250) NULL,
	[Difficulty] [tinyint] NULL,
	[KnowledgeId] [int] NULL,
	[KeyWords] [nvarchar](255) NULL,
	[SJtypeClassId] [int] NULL,
	[inputer] [varchar](200) NULL,
	[ispublic] [tinyint] NULL,
	[TmZDYtype] [int] NULL,
	[system] [int] NULL,
	[sjtypeclass] [int] NULL,
	[appanswer] [ntext] NULL,
	[KouFS] [float] NULL,
	[IsKouFS] [tinyint] NULL,
	[SchoolID] [int] NULL,
	[userid] [int] NULL,
	[IsCorrection] [tinyint] NULL,
 CONSTRAINT [PK_KS_SJTK] PRIMARY KEY NONCLUSTERED 
(
	[TmId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJScore]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJScore](
	[ScoreID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NULL,
	[UserName] [nvarchar](50) NULL,
	[SJID] [int] NULL,
	[Answer] [ntext] NULL,
	[score] [float] NULL,
	[AddDate] [datetime] NULL,
	[KSSJ] [nvarchar](50) NULL,
	[Remark] [ntext] NULL,
	[IsTj] [tinyint] NULL,
	[HasUseTime] [varchar](50) NULL,
	[realTest] [tinyint] NULL,
	[CardNum] [varchar](100) NULL,
	[SessionRnd] [varchar](50) NULL,
	[TotalTMS] [int] NULL,
	[NOFinishTMS] [int] NULL,
	[UserIP] [varchar](50) NULL,
	[locked] [tinyint] NULL,
	[WarnTF] [tinyint] NULL,
	[WarnTimes] [int] NULL,
	[FirstInTime] [datetime] NULL,
	[IsPg] [tinyint] NULL,
	[PgTeacher] [varchar](50) NULL,
	[PY] [ntext] NULL,
	[PGSJ] [datetime] NULL,
	[ZGTDFQK] [text] NULL,
	[FrontTMS] [nvarchar](4000) NULL,
	[TcComment] [varchar](3000) NULL,
 CONSTRAINT [PK_KS_SJScore] PRIMARY KEY CLUSTERED 
(
	[ScoreID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJRndZJ]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_SJRndZJ](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[SJID] [int] NULL,
	[TmType] [int] NULL,
	[TmIds] [nvarchar](4000) NULL,
	[OrderID] [int] NULL,
	[Title] [nvarchar](255) NULL,
	[FS] [real] NULL,
	[Num] [int] NULL,
	[Intro] [ntext] NULL,
	[KouFS] [float] NULL,
	[IsKouFS] [tinyint] NULL,
	[zdyid] [int] NULL,
 CONSTRAINT [PK_KS_SJRndZJ] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_SJReviewsCmt]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJReviewsCmt](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[username] [varchar](50) NULL,
	[userid] [int] NULL,
	[userip] [varchar](50) NULL,
	[content] [text] NULL,
	[status] [tinyint] NULL,
	[adddate] [datetime] NULL,
	[cmtid] [int] NULL,
 CONSTRAINT [PK_KS_SJReviewsCmt] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJReviews]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJReviews](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NULL,
	[UserName] [varchar](100) NULL,
	[UserIP] [varchar](50) NULL,
	[AddDate] [datetime] NULL,
	[CmtNum] [int] NULL,
	[Status] [tinyint] NULL,
	[SJID] [int] NULL,
	[Content] [text] NULL,
	[ClassID] [int] NULL,
 CONSTRAINT [PK_KS_SJComment] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJMyTrainPaper]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJMyTrainPaper](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Title] [varchar](250) NULL,
	[UserName] [varchar](50) NULL,
	[AddDate] [datetime] NULL,
	[TmIds] [varchar](4000) NULL,
	[LimitTime] [int] NULL,
	[IsTJ] [tinyint] NULL,
	[PostTime] [datetime] NULL,
	[SysScore] [float] NULL,
	[Score] [float] NULL,
	[ClassID] [int] NULL,
	[HasUseTime] [varchar](100) NULL,
	[Answer] [text] NULL,
	[noFinishTMS] [int] NULL,
	[TotalTMS] [int] NULL,
	[UserIP] [varchar](50) NULL,
	[type] [tinyint] NULL,
	[KSSJ] [int] NULL,
	[TrainingID] [int] NULL,
	[answertotal] [int] NULL,
	[SJTypeClassid] [int] NULL,
	[ansTmIds] [varchar](4000) NULL,
 CONSTRAINT [PK_KS_SJMyTrainPaper] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJMyTraining]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJMyTraining](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [varchar](50) NULL,
	[ClassID] [int] NULL,
	[OrderID] [int] NULL,
	[adddate] [datetime] NULL,
 CONSTRAINT [PK_KS_SJMyTraining] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJKnowledge]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJKnowledge](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [varchar](255) NOT NULL,
	[classid] [int] NULL,
	[content] [text] NULL,
	[username] [varchar](50) NULL,
	[adddate] [datetime] NULL,
	[SJClassId] [int] NULL,
 CONSTRAINT [PK_KS_SJKnowledge] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJKM]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJKM](
	[ID] [int] NULL,
	[Coursename] [varchar](30) NULL,
	[ParentID] [int] NULL,
	[orderid] [int] NULL,
	[depth] [int] NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJdailyTrain]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJdailyTrain](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[Title] [varchar](255) NULL,
	[UserName] [varchar](50) NULL,
	[AddDate] [datetime] NULL,
	[year] [int] NULL,
	[day] [varchar](50) NULL,
	[TmIds] [varchar](2000) NULL,
	[IsTJ] [tinyint] NULL,
	[Score] [float] NULL,
	[parright] [float] NULL,
	[ClassID] [int] NULL,
	[type] [tinyint] NULL,
	[HasUseTime] [varchar](50) NULL,
	[noFinishTMS] [int] NULL,
	[TotalTMS] [int] NULL,
	[KSSJ] [int] NULL,
	[Hits] [int] NULL,
 CONSTRAINT [PK_KS_SJdailyTrain] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJCTB]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_SJCTB](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[tmid] [int] NULL,
	[userid] [int] NULL,
	[adddate] [smalldatetime] NULL,
	[flag] [tinyint] NULL,
 CONSTRAINT [PK_KS_SJCTB] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_SJCorrection]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJCorrection](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[sjid] [int] NOT NULL,
	[content] [text] NULL,
	[status] [tinyint] NULL,
	[adddate] [datetime] NULL,
	[username] [varchar](50) NULL,
	[UserIP] [varchar](50) NULL,
	[UserID] [int] NULL,
	[TmId] [int] NULL,
	[ErrorType] [int] NULL,
	[Inputer] [varchar](150) NULL,
 CONSTRAINT [PK_KS_SJCorrection] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SjClassRecord]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_SjClassRecord](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[sjClassID] [int] NULL,
	[userID] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_SJClass]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJClass](
	[ClassID] [int] NOT NULL,
	[ClassName] [nvarchar](100) NOT NULL,
	[ClassEname] [nvarchar](255) NULL,
	[ParentID] [int] NULL,
	[Root] [int] NULL,
	[Depth] [tinyint] NULL,
	[OrderID] [int] NULL,
	[ParentIDPath] [varchar](4000) NULL,
	[Child] [int] NULL,
	[PrevID] [int] NULL,
	[NextID] [int] NULL,
	[ClassDir] [varchar](255) NULL,
	[UserName] [nvarchar](50) NULL,
	[AddDate] [datetime] NULL,
	[ShowInTop] [tinyint] NULL,
	[ClassBasicInfo] [ntext] NULL,
	[ClassDefineContent] [ntext] NULL,
	[AdminPurview] [ntext] NULL,
	[exampro] [tinyint] NULL,
	[examyear] [tinyint] NULL,
	[examchaper] [tinyint] NULL,
	[examdialy] [tinyint] NULL,
	[TotalNum] [int] NULL,
	[ishide] [tinyint] NULL,
	[trangcharge] [tinyint] NULL,
	[tktotal] [int] NULL,
	[money] [money] NULL,
	[IsBuyChild] [tinyint] NULL,
	[ExpiryMonth] [int] NULL,
 CONSTRAINT [PK_KS_SJClass] PRIMARY KEY CLUSTERED 
(
	[ClassID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJCJDItem]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJCJDItem](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[ItemID] [int] NULL,
	[Title] [varchar](255) NULL,
	[MinScore] [float] NULL,
	[MaxScore] [float] NULL,
	[Score] [int] NULL,
	[OrderID] [int] NULL,
 CONSTRAINT [PK_KS_SJCJDItem] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJCJD]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJCJD](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ItemName] [varchar](255) NOT NULL,
	[OrderID] [int] NULL,
	[IsDefault] [tinyint] NULL,
 CONSTRAINT [PK_KS_SJCJD] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJCardItem]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJCardItem](
	[itemid] [int] NOT NULL,
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[CardNum] [varchar](255) NULL,
	[UserName] [varchar](255) NULL,
	[RealName] [varchar](50) NULL,
	[IDCard] [varchar](100) NULL,
	[UserFace] [varchar](255) NULL,
	[UserID] [int] NULL,
	[Status] [tinyint] NULL,
	[Sex] [varchar](50) NULL,
	[Company] [varchar](250) NULL,
 CONSTRAINT [PK_KS_SJCardItem] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJCard]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJCard](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[ItemName] [varchar](255) NULL,
	[CardPre] [varchar](255) NULL,
	[SjIdS] [varchar](255) NULL,
	[Subject] [varchar](255) NULL,
	[BeginDate] [datetime] NULL,
	[EndDate] [datetime] NULL,
	[Intro] [text] NULL,
	[status] [tinyint] NULL,
	[AddDate] [datetime] NULL,
 CONSTRAINT [PK_KS_SJCard] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJBuyClassItem]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJBuyClassItem](
	[OrderId] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [varchar](150) NULL,
	[UserID] [int] NULL,
	[AddDate] [datetime] NULL,
	[SjclassId] [int] NULL,
	[Price] [money] NULL,
	[ClassName] [varchar](500) NULL,
	[ChildClassids] [varchar](max) NULL,
	[ExpiryDate] [datetime] NULL,
	[ExpiryMonth] [int] NULL,
	[ParentID] [int] NULL,
 CONSTRAINT [PK_KS_SJBuyClassItem_1] PRIMARY KEY CLUSTERED 
(
	[OrderId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJ]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJ](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[Title] [varchar](255) NULL,
	[TitleFontColor] [varchar](50) NULL,
	[ClassID] [int] NULL,
	[TypeID] [int] NULL,
	[ProvinceID] [int] NULL,
	[KSSJ] [int] NULL,
	[Score] [real] NULL,
	[Money] [float] NULL,
	[Times] [int] NULL,
	[MustLogin] [tinyint] NULL,
	[GroupIDs] [varchar](100) NULL,
	[DepartIds] [varchar](100) NULL,
	[CopyFrom] [varchar](100) NULL,
	[Author] [varchar](50) NULL,
	[Inputer] [varchar](50) NULL,
	[Intro] [text] NULL,
	[Recommend] [tinyint] NULL,
	[Popular] [tinyint] NULL,
	[IsTop] [tinyint] NULL,
	[Comment] [tinyint] NULL,
	[IsTjDa] [tinyint] NULL,
	[IsSaveAnswer] [tinyint] NULL,
	[IsDelRecord] [tinyint] NULL,
	[Dtfs] [tinyint] NULL,
	[Verify] [tinyint] NULL,
	[AddDate] [datetime] NULL,
	[Hits] [int] NULL,
	[KeyTags] [varchar](255) NULL,
	[TestHits] [int] NULL,
	[SeoTitle] [varchar](255) NULL,
	[SeoKeyWords] [varchar](255) NULL,
	[SeoDescription] [varchar](255) NULL,
	[CmtNum] [int] NULL,
	[RealTest] [tinyint] NULL,
	[OpenTimeLimit] [tinyint] NULL,
	[TimeLimitBegin] [datetime] NULL,
	[TimeLimitEnd] [datetime] NULL,
	[ScorePubType] [tinyint] NULL,
	[ScorePubDate] [datetime] NULL,
	[RndST] [tinyint] NULL,
	[FullScreen] [tinyint] NULL,
	[RightTF] [tinyint] NULL,
	[PowerTF] [tinyint] NULL,
	[F5TF] [tinyint] NULL,
	[AuthorizationType] [tinyint] NULL,
	[AutoSaveTime] [int] NULL,
	[PJTeacher] [nvarchar](255) NULL,
	[CJDID] [int] NULL,
	[FrontSize] [int] NULL,
	[DoExamWay] [tinyint] NULL,
	[ShowOn3G] [tinyint] NULL,
	[SocialIDs] [varchar](255) NULL,
	[SJtypeClassId] [int] NULL,
	[ksrs] [int] NULL,
	[jige] [float] NULL,
	[KnowledgeId] [int] NULL,
	[year] [int] NULL,
	[proids] [varchar](200) NULL,
	[system] [int] NULL,
	[RndType] [tinyint] NULL,
	[isfree] [tinyint] NULL,
	[ChargeType] [tinyint] NULL,
	[vip] [tinyint] NULL,
	[BuyGropuIds] [varchar](800) NULL,
	[BuyDepartIds] [varchar](800) NULL,
	[SchoolID] [int] NULL,
	[SchoolName] [nvarchar](255) NULL,
	[UserID] [int] NULL,
	[evaluating] [tinyint] NULL,
	[tagsids] [varchar](1000) NULL,
	[MoreClass] [varchar](2000) NULL,
	[Issinglebuy] [tinyint] NULL,
	[IsUserFree] [tinyint] NULL,
 CONSTRAINT [PK_KS_SJ] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SignIn]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SignIn](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[AddDate] [datetime] NULL,
	[Username] [varchar](100) NULL,
	[UserId] [int] NULL,
	[UserIP] [varchar](50) NULL,
	[Status] [tinyint] NULL,
	[num] [float] NULL,
	[numtype] [int] NULL,
	[Islianxu] [tinyint] NULL,
	[qdxq] [int] NULL,
	[Content] [text] NULL,
	[ReportDate] [datetime] NULL,
	[LookPower] [tinyint] NULL,
	[IsDel] [tinyint] NULL,
	[endDate] [datetime] NULL,
 CONSTRAINT [PK_KS_SignIn] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_Vote]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_Vote](
	[VoteID] [int] IDENTITY(1,1) NOT NULL,
	[Subject] [ntext] NULL,
	[BeginDate] [datetime] NULL,
	[ExpireDate] [datetime] NULL,
	[VoteType] [tinyint] NULL,
	[LimitIP] [int] NULL,
	[UserTF] [int] NULL,
	[InfoID] [int] NULL,
	[votescore] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[VoteID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_ViewRecords]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_ViewRecords](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[username] [varchar](50) NULL,
	[basicType] [int] NULL,
	[channelid] [int] NULL,
	[infoid] [int] NULL,
	[adddate] [datetime] NULL,
 CONSTRAINT [PK_KS_ViewRecords] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_UserRecord]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_UserRecord](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserIP] [varchar](255) NULL,
	[flag] [int] NULL,
	[note] [varchar](255) NULL,
	[adddate] [datetime] NULL,
	[userid] [int] NULL,
	[UserName] [varchar](255) NULL,
	[OrderID] [varchar](50) NULL,
 CONSTRAINT [PK_KS_UserRecord] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_UserPhotos]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_UserPhotos](
	[PicID] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [int] NULL,
	[UserName] [varchar](255) NULL,
	[TypeID] [int] NULL,
	[ClassID] [int] NULL,
	[Title] [varchar](255) NULL,
	[Tags] [varchar](255) NULL,
	[Content] [text] NULL,
	[Source] [varchar](255) NULL,
	[Author] [varchar](255) NULL,
	[Hit] [int] NULL,
	[AddDate] [datetime] NULL,
	[PhotoUrl] [varchar](255) NULL,
	[PicUrls] [text] NULL,
	[Status] [tinyint] NULL,
	[Fund] [int] NULL,
	[PageSize] [int] NULL,
	[Hot] [tinyint] NULL,
	[TopList] [tinyint] NULL,
	[Best] [tinyint] NULL,
	[Model] [int] NULL,
 CONSTRAINT [PK_KS_USERPHOTOS] PRIMARY KEY CLUSTERED 
(
	[PicID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_UserOut]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_UserOut](
	[ID] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
	[CardNum] [varchar](200) NULL,
	[PassWord] [varchar](100) NULL,
	[Username] [varchar](50) NULL,
	[UseDate] [datetime] NULL,
	[Adddate] [datetime] NULL,
	[url] [varchar](100) NULL,
	[IsSend] [tinyint] NULL,
	[IsFixed] [tinyint] NULL,
	[status] [tinyint] NULL,
 CONSTRAINT [PK_KS_UserOut] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_UserMobileLog]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_UserMobileLog](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](255) NULL,
	[UserID] [int] NULL,
	[UserIP] [nvarchar](255) NULL,
	[AddDate] [datetime] NULL,
	[mobile] [nvarchar](255) NULL,
	[tjmobile] [nvarchar](255) NULL,
	[DeviceType] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_UserLoginLog]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_UserLoginLog](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](255) NULL,
	[UserID] [int] NULL,
	[UserIP] [nvarchar](255) NULL,
	[AddDate] [datetime] NULL,
	[Remark] [nvarchar](255) NULL,
	[loginFrom] [int] NULL,
	[DeviceType] [int] NULL,
	[LoginAddress] [nvarchar](255) NULL,
	[IsLogInAnoplace] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_UserGroup]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_UserGroup](
	[GroupID] [int] NOT NULL,
	[GroupName] [nvarchar](100) NOT NULL,
	[PowerList] [ntext] NULL,
	[Descript] [ntext] NULL,
	[Type] [int] NULL,
	[ChargeType] [int] NULL,
	[GroupPoint] [int] NULL,
	[ValidDays] [int] NULL,
	[FormID] [int] NULL,
	[IsReg] [int] NULL,
	[SpaceSize] [float] NULL,
	[UpfilesDir] [varchar](255) NULL,
	[Settings] [ntext] NULL,
	[orderid] [int] NULL,
	[IsGroupPrice] [int] NULL,
	[AutoUpdate] [int] NULL,
	[AutoUpdateText] [int] NULL,
	[AutoUpdateScore] [int] NULL,
	[AutoUpdateCharge] [money] NULL,
 CONSTRAINT [PK_KS_UserGroup] PRIMARY KEY CLUSTERED 
(
	[GroupID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_UserForm]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_UserForm](
	[FormID] [int] IDENTITY(1,1) NOT NULL,
	[FormName] [nvarchar](200) NOT NULL,
	[FieldNameList] [ntext] NULL,
	[Template] [ntext] NULL,
	[Note] [ntext] NULL,
 CONSTRAINT [PK_KS_UserForm] PRIMARY KEY CLUSTERED 
(
	[FormID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_UserFeeSell]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_UserFeeSell](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [varchar](50) NOT NULL,
	[UserID] [int] NOT NULL,
	[PackID] [int] NOT NULL,
	[orderid] [varchar](50) NULL,
	[PackBeginDate] [datetime] NULL,
	[PackDays] [int] NULL,
	[Limit] [int] NULL,
	[ExamTF] [int] NULL,
	[ContentTF] [int] NULL,
	[CourseTF] [int] NULL,
	[ContentClassIds] [text] NULL,
	[ExamClassIds] [text] NULL,
	[CosClassIds] [text] NULL,
	[examids] [text] NULL,
	[cosids] [text] NULL,
	[trangTF] [int] NULL,
	[trangClassIds] [text] NULL,
	[AddDate] [datetime] NULL,
	[CardNum] [nvarchar](50) NULL,
	[PassWord] [nvarchar](50) NULL,
	[UseFlag] [tinyint] NULL,
	[Note] [nvarchar](1000) NULL,
	[PointNumber] [int] NOT NULL,
	[PointType] [int] NULL,
	[Inputer] [varchar](50) NULL,
	[UserInfo] [text] NULL,
	[GiveVIPDay] [int] NULL,
 CONSTRAINT [PK_KS_UserFeeSell] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_UserFeePackages]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_UserFeePackages](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](255) NOT NULL,
	[adddate] [datetime] NULL,
	[Descript] [ntext] NULL,
	[flag] [int] NULL,
	[days] [int] NULL,
	[price] [money] NULL,
	[status] [int] NULL,
	[limit] [int] NULL,
	[examtf] [int] NULL,
	[contenttf] [int] NULL,
	[coursetf] [int] NULL,
	[examclassids] [text] NULL,
	[contentclassids] [text] NULL,
	[cosclassids] [text] NULL,
	[examids] [text] NULL,
	[cosids] [text] NULL,
	[usetype] [int] NULL,
	[TrangTF] [int] NULL,
	[TrangClassIds] [text] NULL,
	[BeginDate] [datetime] NULL,
	[EndDate] [datetime] NULL,
	[CardPrefix] [varchar](200) NULL,
	[PhotoUrl] [varchar](255) NULL,
	[Inputer] [nvarchar](50) NULL,
	[RangeType] [tinyint] NULL,
	[IsUp] [tinyint] NULL,
	[UpOrder] [int] NULL,
	[UpGroup] [int] NULL,
	[DownGroup] [int] NULL,
	[IsIdentity] [tinyint] NULL,
	[AgreeMent] [text] NULL,
	[CardType] [tinyint] NULL,
	[PointNumber] [int] NULL,
	[PointType] [int] NULL,
	[GroupId] [varchar](50) NULL,
	[GiveVIPDay] [int] NULL,
 CONSTRAINT [PK_KS_UserFeePackages] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_UserFeeDiscount]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_UserFeeDiscount](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[groupid] [int] NOT NULL,
	[discount] [real] NULL,
	[status] [int] NULL,
	[packid] [int] NOT NULL,
 CONSTRAINT [PK_KS_UserFeeDiscount] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_UserDepartment]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_UserDepartment](
	[DepartID] [int] IDENTITY(1,1) NOT NULL,
	[DepartMentName] [nvarchar](100) NULL,
	[DepartMentEname] [nvarchar](255) NULL,
	[ParentID] [int] NULL,
	[Root] [int] NULL,
	[Depth] [tinyint] NULL,
	[OrderID] [int] NULL,
	[ParentIDPath] [varchar](4000) NULL,
	[Child] [int] NULL,
	[PrevID] [int] NULL,
	[NextID] [int] NULL,
	[ClassDir] [varchar](255) NULL,
	[UserName] [nvarchar](50) NULL,
	[AddDate] [datetime] NULL,
	[Intro] [ntext] NULL,
	[PhotoUrl] [varchar](255) NULL,
	[AdminPurview] [ntext] NULL,
 CONSTRAINT [PK_KS_UserDepartment] PRIMARY KEY CLUSTERED 
(
	[DepartID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_UserConfig]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_UserConfig](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[userField] [ntext] NULL,
 CONSTRAINT [PK_KS_UserConfig] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_UserBlogClass]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_UserBlogClass](
	[ClassID] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [varchar](255) NULL,
	[ClassName] [varchar](255) NULL,
	[Descript] [varchar](1000) NULL,
	[AddDate] [datetime] NULL,
	[OrderID] [int] NULL,
	[UserID] [int] NULL,
 CONSTRAINT [PK_KS_USERBLOGCLASS] PRIMARY KEY CLUSTERED 
(
	[ClassID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_User]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_User](
	[UserID] [int] IDENTITY(1,1) NOT NULL,
	[GroupID] [int] NULL,
	[AskRankId] [int] NULL,
	[DepartId] [int] NULL,
	[UserName] [nvarchar](100) NOT NULL,
	[PassWord] [nvarchar](100) NULL,
	[Question] [nvarchar](50) NULL,
	[Answer] [nvarchar](50) NULL,
	[Email] [nvarchar](50) NULL,
	[RealName] [nvarchar](50) NULL,
	[Mobile] [nvarchar](50) NULL,
	[IsMobileRZ] [tinyint] NULL,
	[Sex] [nvarchar](50) NULL,
	[Birthday] [nvarchar](50) NULL,
	[IDCard] [nvarchar](50) NULL,
	[Address] [nvarchar](200) NULL,
	[HomePage] [nvarchar](50) NULL,
	[UserFace] [varchar](255) NULL,
	[Sign] [ntext] NULL,
	[Privacy] [int] NULL,
	[CheckNum] [nvarchar](50) NULL,
	[RegDate] [datetime] NULL,
	[JoinDate] [datetime] NULL,
	[LastLoginTime] [datetime] NULL,
	[LastLoginIP] [nvarchar](50) NULL,
	[LoginTimes] [int] NULL,
	[ChargeType] [int] NULL,
	[BeginDate] [datetime] NULL,
	[EDays] [int] NULL,
	[Money] [money] NULL,
	[Score] [int] NULL,
	[ScoreHasUse] [int] NULL,
	[Point] [money] NULL,
	[Locked] [int] NULL,
	[RndPassword] [nvarchar](100) NULL,
	[zipcode] [nvarchar](255) NULL,
	[interest] [nvarchar](200) NULL,
	[intro] [ntext] NULL,
	[pic] [nvarchar](200) NULL,
	[qqtoken] [nvarchar](50) NULL,
	[qqopenid] [nvarchar](50) NULL,
	[SinaId] [nvarchar](50) NULL,
	[SinaToken] [nvarchar](50) NULL,
	[AlipayID] [nvarchar](50) NULL,
	[IsApi] [tinyint] NULL,
	[Enddate] [datetime] NULL,
	[LoadType] [int] NULL,
	[LoadEndGroupId] [int] NULL,
	[LastLoginDevice] [int] NULL,
	[ProID] [int] NULL,
	[CityID] [int] NULL,
	[CountyID] [int] NULL,
	[agent] [nvarchar](100) NULL,
	[WeiXinOpenID] [varchar](50) NULL,
	[inputer] [varchar](250) NULL,
	[ItemId] [int] NULL,
	[childId] [int] NULL,
	[UnionID] [varchar](255) NULL,
	[AppID] [varchar](255) NULL,
	[IsWeixinUnBind] [tinyint] NULL,
	[companyname] [varchar](255) NULL,
	[PPUserID] [int] NULL,
	[PUserID] [int] NULL,
	[TotalMoney] [money] NULL,
	[OrderDevice] [int] NULL,
	[Setting] [nvarchar](255) NULL,
	[Salt] [nvarchar](50) NULL,
	[SchoolID] [int] NULL,
	[LoadEndGroupDate] [datetime] NULL,
	[IsAgent] [int] NULL,
	[IsAg] [int] NULL,
	[tagsids] [varchar](1000) NULL,
	[IsBindGZ] [int] NULL,
	[coursename] [varchar](255) NULL,
 CONSTRAINT [PK_KS_User] PRIMARY KEY CLUSTERED 
(
	[UserID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_UploadFiles]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_UploadFiles](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ChannelID] [int] NULL,
	[InfoID] [int] NULL,
	[FileName] [varchar](255) NOT NULL,
	[DTimes] [int] NULL,
	[DSize] [int] NULL,
	[AliasName] [varchar](255) NULL,
	[isAffix] [tinyint] NULL,
	[UserName] [varchar](100) NULL,
 CONSTRAINT [PK_KS_UploadFiles] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_U_Product]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_U_Product](
	[InfoID] [int] NOT NULL,
	[Title] [nvarchar](255) NOT NULL,
	[ClassID] [int] NOT NULL,
	[Content] [ntext] NULL,
	[spggt] [nvarchar](200) NULL,
	[ChannelID] [int] NULL,
	[KeyTags] [nvarchar](255) NULL,
	[Intro] [nvarchar](255) NULL,
	[TitleFontColor] [varchar](20) NULL,
	[Attribute] [nvarchar](255) NULL,
	[DefaultPic] [varchar](255) NULL,
	[TurnUrl] [varchar](255) NULL,
	[priority] [int] NULL,
	[Hits] [int] NULL,
	[HitsByDay] [int] NULL,
	[HitsByWeek] [int] NULL,
	[HitsByMonth] [int] NULL,
	[LastHitsTime] [datetime] NULL,
	[AddDate] [datetime] NULL,
	[VoteID] [int] NULL,
	[TemplateFile] [varchar](255) NULL,
	[Template3GFile] [varchar](255) NULL,
	[ShowON3G] [tinyint] NULL,
	[FileName] [varchar](255) NULL,
	[RefreshTF] [tinyint] NULL,
	[Verify] [tinyint] NULL,
	[DelTF] [tinyint] NULL,
	[Inputer] [varchar](100) NULL,
	[AttachmentCharge] [int] NULL,
	[AttachmentChargeOnce] [tinyint] NULL,
	[SocialIDs] [varchar](255) NULL,
	[ProvinceId] [int] NULL,
	[CityID] [int] NULL,
	[CountyID] [int] NULL,
	[SEOTitle] [nvarchar](255) NULL,
	[SEOKeyWords] [nvarchar](255) NULL,
	[SEODescription] [nvarchar](255) NULL,
	[CommentNum] [int] NULL,
	[ProID] [varchar](20) NULL,
	[ProductType] [int] NULL,
	[Unit] [varchar](50) NULL,
	[BarCode] [varchar](100) NULL,
	[Weight] [float] NULL,
	[BigPhoto] [varchar](255) NULL,
	[ProducerName] [varchar](50) NULL,
	[TrademarkName] [varchar](50) NULL,
	[ServiceTerm] [int] NULL,
	[BrandID] [int] NULL,
	[Amount] [int] NULL,
	[AlarmNum] [int] NULL,
	[Price] [money] NULL,
	[Price_Member] [money] NULL,
	[GroupPrice] [tinyint] NULL,
	[TaxTF] [tinyint] NULL,
	[Tax] [float] NULL,
	[MinOrderNum] [int] NULL,
	[MaxOrderNum] [int] NULL,
	[Score] [int] NULL,
	[IsChangeBuy] [tinyint] NULL,
	[ChangeBuyNeedPrice] [money] NULL,
	[ChangeBuyPresentPrice] [money] NULL,
	[IsLimitbuy] [tinyint] NULL,
	[LimitBuyPrice] [money] NULL,
	[LimitBuyTaskID] [int] NULL,
	[LimitBuyAmount] [int] NULL,
	[AttributeCart] [varchar](50) NULL,
	[HasSold] [int] NULL,
	[CmtNum] [int] NULL,
	[AskNum] [int] NULL,
	[IsScoreChange] [tinyint] NULL,
	[ChangeScore] [int] NULL,
	[PayType] [tinyint] NULL,
	[FrontPrice] [money] NULL,
	[IsLimitTime] [tinyint] NULL,
	[LimitBeginDate] [datetime] NULL,
	[LimitEndDate] [datetime] NULL,
	[IsBookCode] [tinyint] NULL,
	[BookCodeTypeID] [int] NULL,
	[LimitCityNum] [int] NULL,
	[DownUrl] [nvarchar](255) NULL,
	[IsPromotions] [tinyint] NULL,
	[payID] [int] NULL,
	[IsGroupRate] [tinyint] NULL,
	[LimitBuyType] [int] NULL,
	[LimitBuyNum] [int] NULL,
	[Price_Cost] [money] NULL,
	[GoodNum] [int] NULL,
	[BadNum] [int] NULL,
	[FavNum] [int] NULL,
	[ShareNum] [int] NULL,
	[AllowBuyFlag] [tinyint] NULL,
	[ArrGroupID] [varchar](255) NULL,
	[EmptyStockTips] [nvarchar](255) NULL,
	[FreightFree] [tinyint] NULL,
 CONSTRAINT [PK_KS_U_Product] PRIMARY KEY CLUSTERED 
(
	[InfoID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_U_Photo]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_U_Photo](
	[InfoID] [int] NOT NULL,
	[Title] [nvarchar](255) NOT NULL,
	[ClassID] [int] NOT NULL,
	[Content] [ntext] NULL,
	[ShowStyle] [int] NULL,
	[PageNum] [int] NULL,
	[Details] [ntext] NULL,
	[ChannelID] [int] NULL,
	[KeyTags] [nvarchar](255) NULL,
	[Intro] [nvarchar](255) NULL,
	[TitleFontColor] [varchar](20) NULL,
	[Attribute] [nvarchar](255) NULL,
	[DefaultPic] [varchar](255) NULL,
	[TurnUrl] [varchar](255) NULL,
	[priority] [int] NULL,
	[Hits] [int] NULL,
	[HitsByDay] [int] NULL,
	[HitsByWeek] [int] NULL,
	[HitsByMonth] [int] NULL,
	[LastHitsTime] [datetime] NULL,
	[AddDate] [datetime] NULL,
	[VoteID] [int] NULL,
	[TemplateFile] [varchar](255) NULL,
	[Template3GFile] [varchar](255) NULL,
	[ShowON3G] [tinyint] NULL,
	[FileName] [varchar](255) NULL,
	[RefreshTF] [tinyint] NULL,
	[Verify] [tinyint] NULL,
	[DelTF] [tinyint] NULL,
	[Inputer] [nvarchar](100) NULL,
	[AttachmentCharge] [int] NULL,
	[AttachmentChargeOnce] [tinyint] NULL,
	[SocialIDs] [varchar](255) NULL,
	[ProvinceId] [int] NULL,
	[CityID] [int] NULL,
	[CountyID] [int] NULL,
	[SEOTitle] [nvarchar](255) NULL,
	[SEOKeyWords] [nvarchar](255) NULL,
	[SEODescription] [nvarchar](255) NULL,
	[CommentNum] [int] NULL,
	[CopyFrom] [nvarchar](255) NULL,
	[Author] [nvarchar](255) NULL,
	[InfoPurview] [tinyint] NULL,
	[ArrGroupID] [varchar](255) NULL,
	[ReadPoint] [money] NULL,
	[ChargeType] [tinyint] NULL,
	[PitchTime] [int] NULL,
	[ReadTimes] [int] NULL,
	[DividePercent] [int] NULL,
	[PKID] [int] NULL,
	[GoodNum] [int] NULL,
	[BadNum] [int] NULL,
	[FavNum] [int] NULL,
	[ShareNum] [int] NULL,
 CONSTRAINT [PK_KS_U_Photo] PRIMARY KEY CLUSTERED 
(
	[InfoID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_U_download]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_U_download](
	[InfoID] [int] NOT NULL,
	[Title] [nvarchar](255) NOT NULL,
	[ClassID] [int] NOT NULL,
	[Content] [ntext] NULL,
	[Category] [nvarchar](200) NULL,
	[Language] [nvarchar](200) NULL,
	[Authorization] [varchar](200) NULL,
	[Platform] [varchar](255) NULL,
	[FileSize] [varchar](100) NULL,
	[Details] [ntext] NULL,
	[rjdx] [nvarchar](255) NULL,
	[rjxj] [nvarchar](255) NULL,
	[yuyan] [nvarchar](255) NULL,
	[ChannelID] [int] NULL,
	[KeyTags] [nvarchar](255) NULL,
	[Intro] [nvarchar](255) NULL,
	[TitleFontColor] [varchar](20) NULL,
	[Attribute] [varchar](255) NULL,
	[DefaultPic] [varchar](255) NULL,
	[TurnUrl] [varchar](255) NULL,
	[priority] [int] NULL,
	[Hits] [int] NULL,
	[HitsByDay] [int] NULL,
	[HitsByWeek] [int] NULL,
	[HitsByMonth] [int] NULL,
	[LastHitsTime] [datetime] NULL,
	[AddDate] [datetime] NULL,
	[VoteID] [int] NULL,
	[TemplateFile] [varchar](255) NULL,
	[Template3GFile] [varchar](255) NULL,
	[ShowON3G] [tinyint] NULL,
	[FileName] [varchar](255) NULL,
	[RefreshTF] [tinyint] NULL,
	[Verify] [tinyint] NULL,
	[DelTF] [tinyint] NULL,
	[Inputer] [varchar](100) NULL,
	[AttachmentCharge] [int] NULL,
	[AttachmentChargeOnce] [tinyint] NULL,
	[SocialIDs] [varchar](255) NULL,
	[ProvinceId] [int] NULL,
	[CityID] [int] NULL,
	[CountyID] [int] NULL,
	[SEOTitle] [nvarchar](255) NULL,
	[SEOKeyWords] [nvarchar](255) NULL,
	[SEODescription] [nvarchar](255) NULL,
	[CommentNum] [int] NULL,
	[CopyFrom] [varchar](255) NULL,
	[Author] [varchar](255) NULL,
	[InfoPurview] [tinyint] NULL,
	[ArrGroupID] [varchar](255) NULL,
	[ReadPoint] [money] NULL,
	[ChargeType] [tinyint] NULL,
	[PitchTime] [int] NULL,
	[ReadTimes] [int] NULL,
	[DividePercent] [int] NULL,
	[PKID] [int] NULL,
	[GoodNum] [int] NULL,
	[BadNum] [int] NULL,
	[FavNum] [int] NULL,
	[ShareNum] [int] NULL,
	[type] [nvarchar](200) NULL,
 CONSTRAINT [PK_KS_U_download] PRIMARY KEY CLUSTERED 
(
	[InfoID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_U_Article]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_U_Article](
	[InfoID] [int] NOT NULL,
	[Title] [nvarchar](255) NOT NULL,
	[ClassID] [int] NOT NULL,
	[Content] [ntext] NULL,
	[PageTitle] [ntext] NULL,
	[ChannelID] [int] NULL,
	[KeyTags] [nvarchar](255) NULL,
	[Intro] [nvarchar](255) NULL,
	[TitleFontColor] [nvarchar](50) NULL,
	[Attribute] [nvarchar](255) NULL,
	[DefaultPic] [nvarchar](255) NULL,
	[TurnUrl] [nvarchar](255) NULL,
	[priority] [int] NULL,
	[Hits] [int] NULL,
	[HitsByDay] [int] NULL,
	[HitsByWeek] [int] NULL,
	[HitsByMonth] [int] NULL,
	[LastHitsTime] [datetime] NULL,
	[AddDate] [datetime] NULL,
	[VoteID] [int] NULL,
	[TemplateFile] [varchar](255) NULL,
	[Template3GFile] [varchar](255) NULL,
	[ShowON3G] [tinyint] NULL,
	[FileName] [varchar](255) NULL,
	[RefreshTF] [tinyint] NULL,
	[Verify] [tinyint] NULL,
	[DelTF] [tinyint] NULL,
	[Inputer] [varchar](100) NULL,
	[AttachmentCharge] [int] NULL,
	[AttachmentChargeOnce] [tinyint] NULL,
	[SocialIDs] [varchar](255) NULL,
	[ProvinceId] [int] NULL,
	[CityID] [int] NULL,
	[CountyID] [int] NULL,
	[SEOTitle] [nvarchar](255) NULL,
	[SEOKeyWords] [nvarchar](255) NULL,
	[SEODescription] [nvarchar](255) NULL,
	[CommentNum] [int] NULL,
	[CopyFrom] [nvarchar](255) NULL,
	[Author] [varchar](255) NULL,
	[InfoPurview] [tinyint] NULL,
	[ArrGroupID] [varchar](255) NULL,
	[ReadPoint] [money] NULL,
	[ChargeType] [tinyint] NULL,
	[PitchTime] [int] NULL,
	[ReadTimes] [int] NULL,
	[DividePercent] [int] NULL,
	[PKID] [int] NULL,
	[GoodNum] [int] NULL,
	[BadNum] [int] NULL,
	[FavNum] [int] NULL,
	[ShareNum] [int] NULL,
	[aaaaaaaaa] [nvarchar](255) NULL,
	[ggggg] [nvarchar](255) NULL,
	[sex] [nvarchar](255) NULL,
 CONSTRAINT [PK_KS_U_Article] PRIMARY KEY CLUSTERED 
(
	[InfoID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_TemplateClass]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_TemplateClass](
	[ClassID] [int] IDENTITY(1,1) NOT NULL,
	[ClassType] [tinyint] NULL,
	[ClassName] [nvarchar](100) NOT NULL,
	[AddDate] [datetime] NULL,
 CONSTRAINT [PK_KS_TemplateClass] PRIMARY KEY CLUSTERED 
(
	[ClassID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_Template]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_Template](
	[TemplateId] [int] IDENTITY(1,1) NOT NULL,
	[TemplateName] [nvarchar](250) NULL,
	[Author] [varchar](250) NULL,
	[TemplateEname] [nvarchar](250) NULL,
	[IsDefault] [int] NULL,
	[DefaultPic] [nvarchar](150) NULL,
	[AddDate] [datetime] NULL,
	[TemplateType] [int] NULL,
	[Intro] [ntext] NULL,
	[groupLevel] [varchar](255) NULL,
	[OriTemplateID] [int] NULL,
	[IsViewEdit] [tinyint] NULL,
	[AgentType] [int] NULL,
	[IsResponsive] [tinyint] NULL,
 CONSTRAINT [PK_KS_Template] PRIMARY KEY CLUSTERED 
(
	[TemplateId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SpecialR]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_SpecialR](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[SpecialID] [int] NOT NULL,
	[InfoID] [int] NOT NULL,
	[ChannelID] [int] NOT NULL,
 CONSTRAINT [PK_KS_SpecialR] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_SpecialClass]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SpecialClass](
	[ClassID] [int] IDENTITY(1,1) NOT NULL,
	[ClassName] [nvarchar](200) NOT NULL,
	[ClassEname] [nvarchar](50) NULL,
	[Descript] [ntext] NULL,
	[FsoIndex] [nvarchar](50) NULL,
	[TemplateFile] [nvarchar](255) NULL,
	[AddDate] [smalldatetime] NULL,
	[OrderID] [int] NULL,
	[PhotoUrl] [varchar](255) NULL,
 CONSTRAINT [PK_KS_SpecialClass] PRIMARY KEY CLUSTERED 
(
	[ClassID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_Special]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_Special](
	[SpecialID] [int] IDENTITY(1,1) NOT NULL,
	[ClassID] [int] NULL,
	[SpecialName] [nvarchar](100) NOT NULL,
	[SpecialEName] [nvarchar](50) NOT NULL,
	[SpecialPic] [nvarchar](255) NULL,
	[TemplateFile] [nvarchar](255) NOT NULL,
	[Descript] [ntext] NULL,
	[Recommend] [int] NULL,
	[AddDate] [smalldatetime] NULL,
	[FsoName] [nvarchar](255) NULL,
	[MetaKeyWord] [ntext] NULL,
	[MetaDescript] [ntext] NULL,
	[UserName] [nvarchar](50) NULL,
	[SpecialDefineContent] [ntext] NULL,
	[SpecialPurView] [int] NULL,
	[ArrGroupID] [nvarchar](100) NULL,
	[ReadPoint] [int] NULL,
	[ChargeType] [int] NULL,
	[PitchTime] [int] NULL,
	[ReadTimes] [int] NULL,
	[Hits] [int] NULL,
 CONSTRAINT [PK_KS_Special] PRIMARY KEY CLUSTERED 
(
	[SpecialID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_SJZDYType]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJZDYType](
	[TypeID] [int] IDENTITY(1,1) NOT NULL,
	[TypeName] [varchar](100) NULL,
	[OrderID] [int] NULL,
	[IsDefault] [tinyint] NULL,
	[tmtype] [tinyint] NULL,
 CONSTRAINT [PK_KS_SJZDYType] PRIMARY KEY CLUSTERED 
(
	[TypeID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJWarning]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJWarning](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[adddate] [datetime] NULL,
	[scoreid] [int] NULL,
	[flag] [tinyint] NULL,
	[Content] [text] NULL,
	[sjId] [int] NULL,
	[readTF] [tinyint] NULL,
	[username] [varchar](50) NULL,
 CONSTRAINT [PK_KS_SJWarning] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJtypeClass]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJtypeClass](
	[ClassID] [int] NOT NULL,
	[ClassName] [nvarchar](100) NOT NULL,
	[ClassEname] [nvarchar](255) NULL,
	[ParentID] [int] NULL,
	[Root] [int] NULL,
	[Depth] [tinyint] NULL,
	[OrderID] [int] NULL,
	[ParentIDPath] [varchar](4000) NULL,
	[Child] [int] NULL,
	[PrevID] [int] NULL,
	[NextID] [int] NULL,
	[ClassDir] [varchar](255) NULL,
	[UserName] [nvarchar](50) NULL,
	[AddDate] [datetime] NULL,
	[ShowInTop] [tinyint] NULL,
	[ClassBasicInfo] [ntext] NULL,
	[ClassDefineContent] [ntext] NULL,
	[AdminPurview] [ntext] NULL,
	[SJClassId] [int] NULL,
	[tktotal] [int] NULL,
 CONSTRAINT [PK_KS_SJtypeClass] PRIMARY KEY CLUSTERED 
(
	[ClassID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJType]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJType](
	[TypeID] [int] IDENTITY(1,1) NOT NULL,
	[TypeName] [varchar](100) NOT NULL,
	[Color] [varchar](50) NULL,
	[OrderID] [int] NULL,
	[IsDefault] [tinyint] NULL,
	[TotalNum] [int] NULL,
 CONSTRAINT [PK_KS_SJType] PRIMARY KEY CLUSTERED 
(
	[TypeID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJTMType]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_SJTMType](
	[TypeID] [int] IDENTITY(1,1) NOT NULL,
	[TmType] [int] NULL,
	[TypeName] [varchar](100) NULL,
	[Intro] [text] NULL,
	[SJID] [int] NULL,
	[OrderID] [int] NULL,
	[KouFS] [float] NULL,
	[IsKouFS] [tinyint] NULL,
	[IsAddType] [tinyint] NULL,
	[TmIds] [text] NULL,
 CONSTRAINT [PK_KS_SJTMType] PRIMARY KEY CLUSTERED 
(
	[TypeID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_SJTKSub]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_SJTKSub](
	[tmid] [int] IDENTITY(1,1) NOT NULL,
	[Tmnr] [ntext] NULL,
	[Answer] [ntext] NULL,
	[TmFs] [float] NULL,
	[TmType] [int] NULL,
	[ParentTmID] [int] NULL,
	[OrderID] [int] NULL,
	[Dajs] [ntext] NULL,
	[OptionNum] [int] NULL,
	[appanswer] [ntext] NULL,
	[KouFS] [float] NULL,
	[IsKouFS] [tinyint] NULL,
 CONSTRAINT [PK_KS_SJTKSub] PRIMARY KEY CLUSTERED 
(
	[tmid] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_YunVideoSetting]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_YunVideoSetting](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[VideoType] [tinyint] NULL,
	[VideoLogo] [varchar](255) NULL,
	[VideoStart] [varchar](255) NULL,
	[IsVideoStart] [tinyint] NULL,
	[Status] [tinyint] NULL,
	[AddDate] [datetime] NULL,
	[YunType] [tinyint] NULL,
	[ModifyTimes] [int] NULL,
	[Remark] [ntext] NULL,
	[AppID] [varchar](50) NULL,
 CONSTRAINT [PK_KS_YunVideoSetting] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_YunVideoItem]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_YunVideoItem](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Vid] [nvarchar](255) NULL,
	[EpID] [int] NULL,
	[AddUserID] [int] NULL,
	[VideoType] [int] NULL,
	[SchoolID] [int] NULL,
 CONSTRAINT [PK_KS_YunVideoItem] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_YunVideo]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_YunVideo](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](200) NULL,
	[FirstImage] [nvarchar](255) NULL,
	[Ptime] [datetime] NULL,
	[Duration] [nvarchar](200) NULL,
	[Times] [int] NULL,
	[SwfLink] [nvarchar](255) NULL,
	[Tag] [nvarchar](255) NULL,
	[context] [ntext] NULL,
	[vid] [nvarchar](255) NULL,
	[VideoType] [tinyint] NULL,
	[ClassID] [int] NULL,
	[SourceFileSize] [float] NULL,
	[CataID] [nvarchar](255) NULL,
	[Status] [int] NULL,
	[NewStatus] [tinyint] NULL,
	[SchoolID] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_YunOpenUser]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_YunOpenUser](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Domain] [nvarchar](100) NULL,
	[AppID] [nvarchar](100) NULL,
	[AppKey] [nvarchar](100) NULL,
	[SchoolName] [nvarchar](150) NULL,
	[Status] [tinyint] NULL,
	[Verify] [tinyint] NULL,
	[AddDate] [datetime] NULL,
	[EMail] [varchar](50) NULL,
	[Mobile] [varchar](50) NULL,
	[YazTokenDate] [datetime] NULL,
	[Token] [varchar](250) NULL,
	[UserID] [int] NULL,
	[UserName] [varchar](200) NULL,
	[KeTangJieWxID] [int] NULL,
	[KetangjieUserName] [nvarchar](50) NULL,
 CONSTRAINT [PK_KS_YunOpenUser] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_YunCosVideoCata]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_YunCosVideoCata](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[CataID] [varchar](200) NULL,
	[CosClassID] [int] NULL,
	[VideoType] [tinyint] NULL,
	[Flag] [tinyint] NULL,
	[ClassName] [varchar](255) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_YunAPP]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_YunAPP](
	[AppID] [int] IDENTITY(1,1) NOT NULL,
	[YunAppID] [int] NULL,
	[AppType] [int] NULL,
	[FileZip] [nvarchar](300) NULL,
	[BinFileList] [ntext] NULL,
	[TablePre] [nvarchar](100) NULL,
	[AppName] [nvarchar](255) NULL,
	[AppEName] [nvarchar](255) NULL,
	[ICO] [varchar](255) NULL,
	[Descript] [ntext] NULL,
	[Author] [nvarchar](50) NULL,
	[Version] [nvarchar](50) NULL,
	[Status] [tinyint] NULL,
	[IsInstall] [tinyint] NULL,
 CONSTRAINT [PK_KS_Plus] PRIMARY KEY CLUSTERED 
(
	[AppID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_WorkTable]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_WorkTable](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [varchar](50) NOT NULL,
	[ItemName] [varchar](255) NOT NULL,
	[Ico] [varchar](255) NULL,
	[Url] [varchar](255) NULL,
	[Intro] [varchar](255) NULL,
	[OrderID] [int] NULL,
 CONSTRAINT [PK_KS_WorkTable] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_VoteLog]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_VoteLog](
	[LogID] [int] IDENTITY(1,1) NOT NULL,
	[VoteID] [int] NULL,
	[UserName] [nvarchar](50) NULL,
	[IP] [nvarchar](50) NULL,
	[VoteDate] [datetime] NULL,
PRIMARY KEY CLUSTERED 
(
	[LogID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KS_VoteItem]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [KS_VoteItem](
	[ItemID] [int] IDENTITY(1,1) NOT NULL,
	[VoteID] [int] NULL,
	[ItemName] [nvarchar](255) NULL,
	[VoteNum] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[ItemID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  StoredProcedure [dbo].[KS_ProLimitBuyDel]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProLimitBuyDel] 
@ids varchar(1000)
AS
 if (@ids<>'')
  begin
  declare @sql nvarchar(4000)
  set @sql='delete from [KS_ProLimitBuy] Where TaskID in('+@ids+')'
  exec (@sql)
  set @sql='delete from [KS_UploadFiles] Where channelid=100002 and infoid in('+@ids+')'
  exec(@sql)
  set @sql='update [KS_ProductList] Set IsLimitBuy=0,LimitBuyTaskID=0,LimitBuyPrice=0,LimitBuyAmount=0 Where LimitBuyTaskID in('+@ids+')'
  exec (@sql)
 end
GO
/****** Object:  Table [dbo].[KS_RegisterLog]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_RegisterLog](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[usertype] [int] NOT NULL,
	[username] [nvarchar](50) NOT NULL,
	[password] [nvarchar](50) NOT NULL,
	[sitename] [nvarchar](100) NULL,
	[logo] [nvarchar](255) NULL,
	[descript] [nvarchar](255) NULL,
	[appid] [varchar](25) NULL,
	[appsecret] [varchar](50) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[KS_RechargeRecords]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [KS_RechargeRecords](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[orderid] [nvarchar](50) NULL,
	[UserID] [int] NULL,
	[username] [nvarchar](50) NULL,
	[adddate] [datetime] NULL,
	[PayTime] [datetime] NULL,
	[status] [int] NULL,
	[paymoney] [money] NULL,
	[realmoney] [money] NULL,
	[totalmoney] [money] NULL,
	[remark] [ntext] NULL,
	[platID] [int] NULL,
	[alipaytradeno] [varchar](50) NULL,
	[alipaytradestatus] [varchar](50) NULL,
	[platName] [nvarchar](100) NULL,
	[OrderType] [tinyint] NULL,
	[packId] [int] NULL,
	[UserInfo] [text] NULL,
 CONSTRAINT [PK_KS_RechargeRecords] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object:  StoredProcedure [dbo].[KS_ProUpdateCouponUser]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProUpdateCouponUser]
@CouponUserId int,
@OrderId varchar(100),
@AllowOffsetMoney money=0,
@UserName nvarchar(100),
@Note Ntext
 AS
  UPDATE [KS_ProCouponUser] Set
    UseFlag=1,
    UserName=@UserName,
    UseTime=GetDate(),
    OrderID=@OrderID,
    [Note]=@Note,
    AvailableMoney=AvailableMoney-@AllowOffsetMoney
  WHERE CouponUserId=@CouponUserId
GO
/****** Object:  StoredProcedure [dbo].[KS_ProLimitBuyCheckPayEndTime]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProLimitBuyCheckPayEndTime]
 AS
Select i.Infoid,i.Num,i.OrderID,o.paytime,L.LimitBuyPayTime,O.status,O.InputTime From (KS_ProOrderItem i inner join ks_ProOrder o on i.orderid=o.orderid) inner join KS_ProLimitBuy L on I.LimitBuyTaskID=L.TaskID Where (L.LimitBuyPayTime)<>0 and i.IsLimitBuy<>0 and o.status=0 and o.MoneyReceipt=0
GO
/****** Object:  StoredProcedure [dbo].[KS_ProLimitBuyAdd]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProLimitBuyAdd]
@taskname nvarchar(255),
@tasktype int=0,
@limitbuybegintime datetime,
@limitbuyendtime datetime,
@limitbuypaytime int=0,
@intro ntext,
@adddate datetime,
@status   tinyint=0,
@templatefile varchar(255),
@recommend tinyint=0,
@photourl varchar(200),
@jgrange varchar(255),
@provinceid int=0,
@cityid int=0,
@countyid int=0,
@isrepeat int output
 AS
  if exists(select top 1 taskid from [KS_ProLimitBuy] where taskname=@taskname)
   begin
    select @isrepeat=-2
   return null
   end
 else
   begin
  Insert Into [KS_ProLimitBuy](TaskName,TaskType,LimitBuyBeginTime,LimitBuyEndTime,LimitBuyPayTime,Intro,Status,AddDate,TemplateFile,Recommend,PhotoUrl,JGRange,ProvinceID,CityID,CountyID)
  values(@taskname,@tasktype,@limitbuybegintime,@limitbuyendtime,@limitbuypaytime,@intro,@status,@adddate,@templatefile,@recommend,@photoUrl,@jgrange,@provinceid,@cityid,@countyid)
   select @isrepeat=0
  end
GO
/****** Object:  StoredProcedure [dbo].[KS_VoteAdd]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_VoteAdd]
@subject nvarchar(500),
@begindate datetime=getdate,
@expiredate datetime=getdate,
@votetype int=0,
@limitip int=0,
@infoid int=0,
@usertf int=0,
@votescore int=0
 AS
Insert Into KS_vote([subject],[begindate],[expiredate],[votetype],[limitip],[infoid],[usertf],[votescore])                  
values(@subject,@begindate,@expiredate,@votetype,@limitip,@infoid,@usertf,@votescore)

 If @InfoID!=0
      Begin
       UPDATE [KS_InfoList] Set VoteID=@@identity  WHERE InfoID=@InfoID
     End
GO
/****** Object:  StoredProcedure [dbo].[KS_SJTKModify]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_SJTKModify]
@tmid int=0,
@classid int=0,
@tmtype int=0,
@title nvarchar(255),
@tmnr ntext,
@dajs ntext,
@tmfs float=0,
@answer ntext,
@optionnum int=0,
@orderid int=0,
@isrnd tinyint=0,
@ismedia tinyint=0,
@mediaurl varchar(255),
@mediatxt ntext,
@dajsmedia varchar(255),
@difficulty int=0,
@knowledgeid int=0,
@keywords nvarchar(255)
 AS
 UPDATE KS_SJTK SET 
 [classid]=@classid,
 [tmtype]=@tmtype,
 [title]=@title,
 [tmnr]=@tmnr,
 [dajs]=@dajs,
 [tmfs]=@tmfs,
 [answer]=@answer,
 [optionnum]=@optionnum,
 [orderid]=@orderid,
 [isrnd]=@isrnd,
 [ismedia]=@ismedia,
 [mediaurl]=@mediaurl,
 [mediatxt]=@mediatxt,
 [dajsmedia]=@dajsmedia,
 [difficulty]=@difficulty,
 [knowledgeid]=@knowledgeid,
 [keywords]=@keywords WHERE tmid=@tmid
GO
/****** Object:  StoredProcedure [dbo].[KS_SJTKAdd]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_SJTKAdd]
@typeid int=0,
@classid int=0,
@tmtype int=0,
@title nvarchar(255),
@tmnr ntext,
@dajs ntext,
@tmfs float=0,
@answer ntext,
@optionnum int=0,
@orderid int=0,
@isrnd tinyint=0,
@ismedia tinyint=0,
@mediaurl varchar(255),
@mediatxt ntext,
@dajsmedia varchar(255),
@difficulty int=0,
@knowledgeid int=0,
@keywords nvarchar(255)
 AS
Insert Into KS_SJTK([typeid],[classid],[tmtype],[title],[tmnr],[dajs],[tmfs],[answer],[optionnum],[orderid],[isrnd],[ismedia],[mediaurl],[mediatxt],[dajsmedia],[difficulty],[knowledgeid],[keywords])                  
values(@typeid,@classid,@tmtype,@title,@tmnr,@dajs,@tmfs,@answer,@optionnum,@orderid,@isrnd,@ismedia,@mediaurl,@mediatxt,@dajsmedia,@difficulty,@knowledgeid,@keywords)
GO
/****** Object:  StoredProcedure [dbo].[KS_TagsHits]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_TagsHits] 
 @KeyText nvarchar(100)
AS

  DECLARE @TagsHits int,@TodayHits int,@YesterDayHits int,@WeekHits int,@LastUseTime datetime
  DECLARE @NowDayHits int ,@NowYesterDayHits int, @NowWeekHits int, @NowHits int

    SELECT top 1 @TagsHits=TagsHits,@TodayHits=TodayHits,@YesterDayHits=YesterDayHits,@WeekHits=WeekHits,@LastUseTime=LastUseTime FROM [KS_KeyTags] WHERE KeyText=@KeyText
  

     Set @NowHits=@TagsHits+1
     If DateDiff(week,@LastUseTime, GetDate())<=0
       SET @NowWeekHits=@WeekHits+1
     Else
      SET @NowWeekHits=1
     IF DateDiff(day,@LastUseTime,GetDate())=1
      SET @NowYesterDayHits=@YesterDayHits+1
    ELSE
     SET @NowYesterDayHits=1
    IF DateDiff(day,@LastUseTime,GetDate())<=0
     SET @NowDayHits=@TodayHits+1
   Else
     Set @NowDayHits=1

     UPDATE [KS_KeyTags] Set TagsHits=@NowDayHits,WeekHits=@NowWeekHits,YesterDayHits=@NowYesterDayHits,TodayHits=@NowDayHits,LastUseTime=GetDate()  Where KeyText=@KeyText
GO
/****** Object:  StoredProcedure [dbo].[KS_ShopProImages]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ShopProImages] 
 @ID int=0
AS
 SELECT TOP 500 a.title,b.* FROM KS_ProductList A Left Join KS_ProImages B On A.InfoID=B.InfoID WHERE a.InfoID=@ID order by orderid,id
GO
/****** Object:  StoredProcedure [dbo].[KS_ShopItemModify]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ShopItemModify]
  @classid int,
  @brandid int,
  @proid nvarchar(200),
  @title nvarchar(255),
  @titlefontcolor varchar(50),
  @producttype int,
  @barcode nvarchar(150),
  @unit nvarchar(50),
  @weight float,
  @intro nvarchar(255),
  @defaultpic nvarchar(255),
  @bigphoto nvarchar(255),
  @keytags nvarchar(255),
  @hits int,
  @adddate datetime,
  @attribute nvarchar(255),
  @priority nvarchar(100),
  @inputer nvarchar(100),
  @verify int,
  @attributecart nvarchar(255),
  @price money=0,
  @price_member money=0,
  @price_cost money=0,
  @score int=0,
  @groupprice int =0,
  @ischangebuy int =0,
  @changebuyneedprice money=0,
  @changebuypresentprice money=0,
  @islimitbuy int=0,
  @limitbuytaskid int=0,
  @limitbuyprice money=0,
  @limitbuyamount int=0,
  @limitbegindate datetime,
  @limitenddate datetime,
  @taxtf tinyint=0,
  @tax float=0,
  @amount int =0,
  @alarmnum int =0,
  @hassold int =0,
  @minordernum int=0,
  @maxordernum int =0,
  @attachmentcharge int=0,
  @attachmentchargeonce int=0,
  @turnurl varchar(255),
  @isscorechange int=0,
  @changescore int=0,
  @showon3g int=0,
  @paytype int=0,
  @payid int=0,
  @frontprice money=0,
  @isbookcode int=0,
  @bookcodetypeid int=0,
  @limitcitynum int=0,
  @limitbuytype int=0,
  @limitbuynum int=0,
  @downurl varchar(255),
  @ispromotions int=0,
  @isgrouprate int=0,
  @provinceid int=0,
  @cityid int=0,
  @countyid int=0,
  @freightfree int=0,
  @allowbuyflag int=0,
  @arrgroupid nvarchar(255),
  @infoid int=0
 AS
  UPDATE [KS_ProductList]
  Set classid=@classid,
  brandid=@brandid,
  proid=@proid,
  title=@title,
  titlefontcolor=@titlefontcolor,
  producttype=@producttype,
  barcode=@barcode,
  unit=@unit,
  weight=@weight,
  intro=@intro,
  defaultpic=@defaultpic,
  bigphoto=@bigphoto,
  keytags=@keytags, 
  hits=@hits,
  adddate=@adddate,
  attribute=@attribute,
  priority=@priority,
  inputer=@inputer,
  verify=@verify,
  attributecart=@attributecart,
  price=@price,
  price_member=@price_member,
  price_cost=@price_cost,
  score=@score,
  groupprice=@groupprice,
  ischangebuy=@ischangebuy,
  changebuyneedprice=@changebuyneedprice,
  changebuypresentprice=@changebuypresentprice,
  islimitbuy=@islimitbuy,
  limitbuytaskid=@limitbuytaskid,
  limitbuyprice=@limitbuyprice,
  limitbuyamount=@limitbuyamount,
  taxtf=@taxtf,
  tax=@tax,
  amount=@amount,
  alarmnum=@alarmnum,
  hassold=@hassold,
  minordernum=@minordernum,
  maxordernum=@maxordernum,
  attachmentcharge=@attachmentcharge,
  attachmentchargeOnce=@attachmentchargeonce,
  turnurl=@turnurl,
  isscorechange=@isscorechange,
  changescore=@changescore,
  showon3g=@showon3g,
  paytype=@paytype,
  payid=@payid,
  frontprice=@frontprice,
  limitbegindate=@limitbegindate,
  limitenddate=@limitenddate,
  isbookcode=@isbookcode,
  bookcodetypeid=@bookcodetypeid,
  limitcitynum=@limitcitynum,
 limitbuytype=@limitbuytype,
 limitbuynum=@limitbuynum,
  downurl=@downurl,
  ispromotions=@ispromotions,
  isgrouprate=@isgrouprate,
  provinceid=@provinceid,
  cityid=@cityid,
  countyid=@countyid,
  freightfree=@freightfree,
  allowbuyflag=@allowbuyflag,
  arrgroupid=@arrgroupid
  Where InfoID=@infoid
GO
/****** Object:  StoredProcedure [dbo].[KS_ShopItemAdd]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ShopItemAdd]
  @channelid int,
  @classid int,
  @brandid int=0,
  @title nvarchar(255),
  @titlefontcolor nvarchar(50),
  @producttype int,
  @proid nvarchar(100),
  @barcode nvarchar(150),
  @unit nvarchar(50),
  @weight float,
  @intro nvarchar(255),
  @defaultpic nvarchar(255),
  @bigphoto nvarchar(255),
  @keytags nvarchar(255),
  @hits int,
  @adddate datetime,
  @attribute nvarchar(255),
  @priority nvarchar(100),
  @inputer nvarchar(200),
  @verify int,
  @refreshtf int,
  @filename nvarchar(255),
  @attributecart nvarchar(255),
  @price money=0,
  @price_member money=0,
  @price_cost money=0,
  @score money=0,
  @groupprice int =0,
  @ischangebuy int =0,
  @changebuyneedprice money=0,
  @changebuypresentprice money=0,
  @islimitbuy int=0,
  @limitbuytaskid int=0,
  @limitbuyprice money=0,
  @limitbuyamount int=0,
  @taxtf tinyint=0,
  @tax float=0,
  @amount int =0,
  @alarmnum int =0,
  @hassold int =0,
  @minordernum int=0,
  @maxordernum int =0,
  @attachmentcharge int=0,
  @attachmentchargeonce int=0,
  @turnurl varchar(255),
  @isscorechange int=0,
  @changescore int=0,
  @showon3g int=0,
  @paytype int=0,
  @payid int=0,
  @frontprice money=0,
  @limitbegindate datetime,
  @limitenddate datetime,
  @isbookcode int=0,
  @bookcodetypeid int=0,
  @limitcitynum int=0,
  @limitbuytype int=0,
  @limitbuynum int=0,
  @downurl nvarchar(255),
  @ispromotions int=0,
  @isgrouprate int=0,
  @provinceid int=0,
  @cityid int=0,
  @countyid int=0,
  @freightfree int=0,
  @allowbuyflag int=0,
  @arrgroupid nvarchar(255),
  @itemid int output
 AS
  INSERT INTO [KS_ProductList]

(channelid,classid,brandid,title,titlefontcolor,producttype,proid,barcode,unit,weight,intro,defaultpic,bigphoto,keytags,hits,adddate,attribute,priority,inputer,verify,refreshtf,filename,attributecart,price,price_member,price_cost,score,groupprice,ischangebuy,changebuyneedprice,changebuypresentprice,islimitbuy,limitbuytaskid,limitbuyprice,limitbuyamount,taxtf,tax,amount,alarmnum,hassold,minordernum,maxordernum,attachmentcharge,attachmentchargeonce,turnurl,isscorechange,changescore,showon3g,paytype,payid,frontprice,limitbegindate,limitenddate,isbookcode,bookcodetypeid,limitcitynum,limitbuytype,limitbuynum,downurl,ispromotions,isgrouprate,provinceid,cityid,countyid,freightfree,allowbuyflag,arrgroupid) 
  VALUES

(@channelid,@classid,@brandid,@title,@titlefontcolor,@producttype,@proid,@barcode,@unit,@weight,@intro,@defaultpic,@bigphoto,@keytags,@hits,@adddate,@attribute,@priority,@inputer,@verify,@refreshtf,@filename,@attributecart,@price,@price_member,@price_cost,@score,@groupprice,@ischangebuy,@changebuyneedprice,@changebuypresentprice,@islimitbuy,@limitbuytaskid,@limitbuyprice,@limitbuyamount,@taxtf,@tax,@amount,@alarmnum,@hassold,@minordernum,@maxordernum,@attachmentcharge,@attachmentchargeonce,@turnurl,@isscorechange,@changescore,@showon3g,@paytype,@payid,@frontprice,@limitbegindate,@limitenddate,@isbookcode,@bookcodetypeid,@limitcitynum,@limitbuytype,@limitbuynum,@downurl,@ispromotions,@isgrouprate,@provinceid,@cityid,@countyid,@freightfree,@allowbuyflag,@arrgroupid)
select @itemid=@@identity
GO
/****** Object:  StoredProcedure [dbo].[KS_ProShoppingCartAdd]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProShoppingCartAdd] 
 @infoId int=0,
  @price money=0,
  @num int=0,
  @username nvarchar(255),
  @adddate datetime,
  @IsAnonymous tinyint=0,
  @IsChangeBuy tinyint=0,
  @isBundleSale tinyint=0,
  @isLimitBuy tinyint=0,
  @limitBuyTaskId int=0,
  @attrid int=0,
  @flag int=0,
  @cityid int=0,
  @bookcode varchar(100),
  @business nvarchar(100),
  @cartid int out,
  @minnum int=0 out,
  @maxnum int=0 out
AS
 DECLARE @MinOrderNum int,@MaxOrderNum int,@Amount int
 Select top 1 @MinOrderNum=MinOrderNum,@MaxOrderNum=MaxOrderNum,@Amount=Amount From [KS_ProductList] Where InfoID=@InfoID
 If (@MinOrderNum<>0 And @num<@MinOrderNum and @IsChangeBuy=0)
  begin
   select @cartid=-3
   select @minnum=@minordernum
   select @maxnum=@maxordernum
  return
  end
 Else If(@MaxOrderNum<>0 And @Num>@MaxOrderNum and @IsChangeBuy=0)
  Begin
    select @cartid=-4
    select @minnum=@minordernum
    select @maxnum=@maxordernum
   return
  End 
 Else
  Begin
     if @isbundlesale=1 
      Begin
        Select @CartID=CartID From [KS_ProShoppingCart] Where UserName=@UserName and isBundleSale=1
        Delete From [KS_ProShoppingCart] Where UserName=@UserName and isBundleSale=1
        Delete From [KS_ProBundleSelect] Where CartID=@CartID
      End
     if not exists(select top 1 cartid from [KS_ProShoppingCart] where isBundleSale=@isbundlesale and infoid=@infoid and attrid=@attrid and username=@username)
      Begin
      INSERT INTO [KS_ProShoppingCart] 
      (InfoID,Price,Num,UserName,IsAnonymous,IsChangeBuy,IsBundleSale,IsLimitBuy,LimitBuyTaskID,AddDate,AttrID,Flag,CityID,BookCode,Business)
      Values(@InfoID,@Price,@Num,@UserName,@IsAnonymous,@IsChangeBuy,@IsBundleSale,@IsLimitBuy,@LimitBuyTaskID,@AddDate,@attrid,@flag,@cityid,@bookcode,@business)
      select @cartid=@@identity
     End 
    Else
	  Begin
	   UPDATE [KS_ProShoppingCart] SET Num=@Num where infoid=@infoid and attrid=@attrid and username=@username
     select @cartid=-2
	  End
 End
 select @minnum=0
 select @maxnum=0
GO
/****** Object:  StoredProcedure [dbo].[KS_ProOrderAddBundleSale]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProOrderAddBundleSale] 
@infoID int=0,
@cartId int=0
AS
 DECLARE @ItemId int
 Select @ItemId=max(itemid) From KS_ProOrderItem
 insert into [KS_ProOrderBundleSale] Select CartId,InfoID,Title,Price,Num,getdate() From KS_ProBundleSelect Where cartId=@cartID
 Update  [KS_ProOrderBundleSale] Set CartId=@ItemId Where CartId=@cartId
GO
/****** Object:  StoredProcedure [dbo].[KS_ProOrderDelete]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProOrderDelete]
@OrderID varchar(100)
 AS
 DELETE FROM [KS_ProOrderBundleSale] Where CartID in(Select ItemID From [KS_ProOrderItem] Where OrderID=@OrderID)
 DELETE FROM [KS_ProOrderItem] Where OrderID=@OrderID
 DELETE FROM [KS_ProOrder] Where OrderID=@OrderID
 DELETE FROM [KS_ProOrderLog] Where OrderID=@OrderID
 DELETE FROM [KS_ProGroupBuyConsumer]  Where OrderID=@OrderID
 DELETE FROM [KS_ProOrderService]  Where OrderID=@OrderID
GO
/****** Object:  StoredProcedure [dbo].[KS_ProLimtBuyStatus]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProLimtBuyStatus] 
 @taskIds nvarchar(4000)
AS
  if @taskIds=''
  return null
 else
  begin

    declare @sql nvarchar(4000),@taskid int,@status int
    set @sql='declare rs cursor for select taskid,status From KS_ProLimitBuy Where taskid in('+@taskIds+')'
    exec (@sql)
     open rs
     fetch next from rs
     into @taskid,@status
     while @@fetch_status=0
     begin
         if @status=1
           update KS_ProLimitBuy Set Status=0 Where taskid=@taskid
        else
          update KS_ProLimitBuy Set Status=1 Where taskid=@taskid
         fetch next from rs
         into @taskid,@status
     end
     close rs
     deallocate rs
 end
GO
/****** Object:  StoredProcedure [dbo].[KS_ProLimitBuyUpdate]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProLimitBuyUpdate]
@taskname nvarchar(255),
@tasktype int=0,
@limitbuybegintime datetime,
@limitbuyendtime datetime,
@limitbuypaytime int=0,
@intro ntext,
@status   tinyint=0,
@templatefile varchar(255),
@recommend tinyint=0,
@photourl varchar(255),
@jgrange varchar(255),
@taskid  int=0,
@provinceid int=0,
@cityid int=0,
@countyid int=0,
@isrepeat int output
 AS
  If  exists(select top 1 *  From KS_ProLimitBuy Where TaskName=@taskname And taskID<>@taskid)
  begin
   select @isrepeat=-2 /*����*/
   return null
  end 
 Else
  Update [KS_ProLimitBuy] Set
   TaskName=@taskname,
   TaskType=@tasktype,
   LimitBuyBeginTime=@limitbuybegintime,
   LimitBuyEndTime=@limitbuyendtime,
   LimitBuyPayTime=@limitbuypaytime,
   Intro=@intro,
  TemplateFile=@templatefile,
   recommend=@recommend,
   photourl=@photourl,
  jgrange=@jgrange,
   Status=@status,
   ProvinceID=@provinceid,
   CityID=@cityid,
   CountyID=@countyid
  Where taskid=@taskid
 select @isrepeat=0
GO
/****** Object:  StoredProcedure [dbo].[KS_ProGetProFromCartToBuy]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProGetProFromCartToBuy] 
@userName nvarchar(50)
AS
select top 100 C.*,i.amount,i.channelid,i.classid,i.turnurl,i.filename,i.title,i.DefaultPic,i.IsGroupRate,i.groupprice,i.attributecart,i.price as price_market,i.price_member,i.price_cost,i.taxtf,i.tax,i.Score,I.IsLimitBuy,I.LimitBuyPrice,I.LimitBuyAmount,i.IsScoreChange,I.ChangeScore,I.PayType,i.payid,I.FrontPrice,i.LimitBeginDate,i.LimitEndDate,i.IsBookCode,i.BookCodeTypeID,i.LimitCityNum,i.producttype,i.IsPromotions,i.limitbuytype,i.limitbuynum,i.verify FROM [KS_ProShoppingCart] C Inner Join [KS_ProductList] I ON C.InfoID=I.InfoID Where C.num>0 and C.Flag=0 and C.UserName=@userName and c.isToPay=1 order by C.isChangeBuy ,C.IsBundleSale,C.CartID
GO
/****** Object:  StoredProcedure [dbo].[KS_ProGetProFromCart]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProGetProFromCart] 
@userName nvarchar(50)
AS
select top 100 C.*,i.amount,i.channelid,i.classid,i.turnurl,i.filename,i.title,i.DefaultPic,i.IsGroupRate,i.groupprice,i.attributecart,i.price as price_market,i.price_member,i.price_cost,i.taxtf,i.tax,i.Score,I.IsLimitBuy,I.LimitBuyPrice,I.LimitBuyAmount,i.IsScoreChange,I.ChangeScore,I.PayType,i.payid,I.FrontPrice,i.LimitBeginDate,i.LimitEndDate,i.IsBookCode,i.BookCodeTypeID,i.LimitCityNum,i.producttype,i.IsPromotions,i.limitbuytype,i.limitbuynum,i.verify FROM [KS_ProShoppingCart] C Inner Join [KS_ProductList] I ON C.InfoID=I.InfoID Where C.num>0 and C.Flag=0 and C.UserName=@userName order by C.isChangeBuy ,C.IsBundleSale,C.CartID
GO
/****** Object:  StoredProcedure [dbo].[KS_ProGetProFromBundleSale]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProGetProFromBundleSale] 
@infoId int=0,
@cartId int=0
AS
Select I.Title,I.Weight,I.Price as Price_Market,I.Amount,I.Score,B.kbprice,s.ATTRID From KS_ProBundleSelect S Inner Join KS_ProBundleSale B ON S.InfoID=B.id Inner Join KS_ProductList I ON b.kbinfoid=I.InfoID Where B.InfoID=@InfoID And S.CartID=@CartID
GO
/****** Object:  StoredProcedure [dbo].[KS_ProGetCouponByCouponNum]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProGetCouponByCouponNum]
@CouponNum varchar(50)
 AS
SELECT Top 1 A.FaceValue,A.MinAmount,A.MaxDiscount,b.AvailableMoney,A.BeginDate,a.EndDate,a.Status,B.CouponUserID,B.Note,A.CouponType,B.UserName,A.Couponname,A.LimitType,A.LimitClassIDs,A.LimitProIds,A.RangeType FROM KS_ProCoupon A Inner Join KS_ProCouponUser B On A.CouponID=B.CouponID Where B.CouponNum=@CouponNum
GO
/****** Object:  StoredProcedure [dbo].[KS_ProGetProFromOrderItem]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProGetProFromOrderItem]
@OrderID varchar(100)
AS
Select top 100  TurnUrl,I.FileName,I.ProID,I.InfoID,I.ClassID,I.InfoID,I.ChannelID,I.Score,I.Price_Member,I.Title as ITitle,I.DefaultPic,I.Price as Price_Market,I.Weight,I.Unit,I.AttributeCart,I.IsPromotions,I.ProductType,O.* From KS_ProOrderItem o left join KS_ProductList i on o.infoid=i.infoid Where O.OrderID=@OrderID order by O.ItemID
GO
/****** Object:  StoredProcedure [dbo].[KS_ProGetProFromOrderBundleSale]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProGetProFromOrderBundleSale] 
@infoId int=0,
@cartId int=0
AS
Select I.Title,I.Weight,I.Price as Price_Market,I.Amount,I.Score,b.attrid From KS_ProOrderBundleSale S  inner join KS_ProBundleSale B on S.InfoID=b.id left Join KS_ProductList I ON b.kbInfoID=I.InfoID Where S.CartID=@CartID

--Select I.Title,I.Weight,I.Price as Price_Market,I.Amount,I.Score From KS_ProOrderBundleSale S  left Join KS_ProductList I ON S.InfoID=I.InfoID Where S.CartID=@CartID
--Select I.Title,I.Weight,I.Price_Market,I.Amount,I.Score,B.KBPrice,b.attrid From KS_ProOrderBundleSale S Inner Join KS_ProBundleSale B ON S.InfoID=B.KBInfoID Inner Join KS_ProductList I ON S.InfoID=I.InfoID Where B.InfoID=@InfoID And S.CartID=@CartID
GO
/****** Object:  StoredProcedure [dbo].[KS_ProCouponUserAdd]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProCouponUserAdd]
@CouponID int=0,
@couponNum varchar(100),
@userName varchar(100),
@AvailableMoney money=0,
@mailTF tinyint=0
 AS

 INSERT Into [KS_ProCouponUser](
   CouponID,CouponNum,UserName,AvailableMoney,MailTF,UseFlag,OrderID,AddDate
) values(
  @CouponID,@CouponNum,@UserName,@AvailableMoney,@MailTF,0,'',GetDate()
)
 return @@identity
GO
/****** Object:  StoredProcedure [dbo].[KS_ProCouponStatus]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProCouponStatus] 
 @couponIds nvarchar(4000)
AS
  if @couponIds=''
  return null
 else
  begin

    declare @sql nvarchar(4000),@couponid int,@status int
    set @sql='declare rs cursor for select couponid,status From KS_ProCoupon Where couponid in('+@couponIds+')'
    exec (@sql)
     open rs
     fetch next from rs
     into @couponid,@status
     while @@fetch_status=0
     begin
         if @status=1
           update KS_ProCoupon Set Status=0 Where couponid=@couponid
        else
          update KS_ProCoupon Set Status=1 Where couponid=@couponid
         fetch next from rs
         into @couponid,@status
     end
     close rs
     deallocate rs
 end
GO
/****** Object:  StoredProcedure [dbo].[KS_ProCartAddBundleSale]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ProCartAddBundleSale] 
 @infoid int=0,
 @cartId int=0
AS
 DECLARE @Title nvarchar(200),@KBPrice money,@AttrId int
 
 Delete From KS_ProBundleSelect Where CartID=@CartID And InfoID=@infoid
 
 Select top 1 @Title=I.Title,@KBPrice=K.KBPrice,@AttrId=K.attrid From [KS_ProBundleSale] K inner Join [KS_ProductList] I On I.infoid=K.kbinfoid Where k.ID=@infoid

  INSERT INTO [KS_ProBundleSelect] 
      (cartID,infoId,attrid,Title,Price,Num,AddDate)
      Values(@cartID,@infoid,@AttrId,@Title,@KBPrice,1,getdate())
GO
/****** Object:  StoredProcedure [dbo].[KS_PKGetInfo]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_PKGetInfo] 
@pkid int=0
AS
select top 1 * From KS_PKZT Where pkid=@pkid
GO
/****** Object:  StoredProcedure [dbo].[KS_PKGetGDInfo]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_PKGetGDInfo]
@id int=0
 AS
SELECT TOP 1 * FROM KS_PKGD WHERE id=@id
GO
/****** Object:  StoredProcedure [dbo].[KS_PKGDVerify]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_PKGDVerify] 
 @Ids nvarchar(4000)
AS
  if @Ids=''
  return null
 else
  begin

    declare @sql nvarchar(4000),@gdid int,@status int
    set @sql='declare rs cursor for select id,status From KS_PKGD Where id in('+@Ids+')'
    exec (@sql)
     open rs
     fetch next from rs
     into @gdid,@status
     while @@fetch_status=0
     begin
         if @status=1
           update KS_PKGD Set Status=0 Where id=@gdid
        else
          update KS_PKGD Set Status=1 Where id=@gdid
         fetch next from rs
         into @gdid,@status
     end
     close rs
     deallocate rs
 end
GO
/****** Object:  StoredProcedure [dbo].[KS_PKZTAddOrModify]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_PKZTAddOrModify] 
 @Title nvarchar(255),
 @ZFGD nvarchar(3000),
 @FFGD nvarchar(3000),
 @ZFVotes int=0,
 @FFVotes int=0,
 @SFVotes int=0,
 @UserTF tinyint=0,
 @OnceTF tinyint=0,
 @VerifyTF tinyint=0,
 @Status tinyint=0,
 @TimeLimit tinyint=0,
 @BeginDate smalldatetime=getdate,
 @EndDate smalldatetime=getdate,
 @InfoID int=0,
 @pkid int=0
AS
    If (exists(Select top 1 pkid From KS_PKZT Where InfoID=@InfoID) and @Infoid<>0) or (exists(select top 1 pkid from ks_pkzt where pkid=@pkid) and @pkid<>0)
     Begin  
     UPDATE KS_PKZT Set  Title=@Title, ZFGD=@ZFGD, FFGD=@FFGD, UserTF=@UserTF, OnceTF=@OnceTF, VerifyTF=@VerifyTF, Status=@Status,TimeLimit=@TimeLimit, BeginDate=@BeginDate, EndDate=@EndDate,ZFVotes=@ZFVotes,FFVotes=@FFVotes,SFVotes=@SFVotes   Where pkid=@PKID
    End
   else
     Begin
    INSERT INTO KS_PKZT(
      Title,ZFGD,FFGD,UserTF,OnceTF,VerifyTF,Status,TimeLimit,BeginDate,EndDate,InfoID,ZFVotes,FFVotes,SFVotes
    )
     VALUES(
     @Title,@ZFGD,@FFGD,@UserTF,@OnceTF,@VerifyTF,@Status,@TimeLimit,@BeginDate,@EndDate,@InfoID,@ZFVotes,@FFVotes,@SFVotes
   )
     If @InfoID!=0
      Begin
       SELECT @pkid=@@identity
       UPDATE [KS_InfoList] Set PKID=@pkid WHERE InfoID=@InfoID
     End
   End
GO
/****** Object:  StoredProcedure [dbo].[KS_PKGDAdd]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_PKGDAdd]
@PKID int=0,
@UserName nvarchar(50),
@UserID int=0,
@Content ntext,
@UserIP nvarchar(50),
@Status tinyint=0,
@Adddate smalldatetime,
@Role   tinyint=0
 AS
  Insert Into [KS_PKGD](PKID,UserName,UserID,Content,UserIP,Status,AddDate,Role)
  values(@PKID,@UserName,@UserID,@Content,@UserIP,@Status,@AddDate,@Role)
  If @Role=1
   Update KS_PKZT Set ZFVotes=ZFVotes+1 Where PKID=@PKID
  Else If @Role=2
   Update KS_PKZT Set FFVotes=FFVotes+1 Where PKID=@PKID
  Else
   Update KS_PKZT Set SFVotes=SFVotes+1 Where PKID=@PKID
GO
/****** Object:  StoredProcedure [dbo].[KS_MoodProjectAdd]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_MoodProjectAdd]
@ProjectName nvarchar(255),
@Status int=0,
@ProjectContent nvarchar(4000),
@TimeLimit tinyint=0,
@StartDate SmallDateTime=getdate,
@ExpiredDate SmallDateTime=getdate,
@OnlyUser tinyint=0,
@UserOnce tinyint=0,
@AllowGroupID nvarchar(500),
 @isrepeat int=1 output
AS

 if exists(select top 1 * from KS_MoodProject Where ProjectName=@ProjectName)
   begin       
    select @isrepeat=-2 /*重名*/
    return null
   end 
else
	INSERT INTO KS_MoodProject(ProjectName,Status,ProjectContent,TimeLimit,StartDate,[ExpiredDate],OnlyUser,UserOnce,AllowGroupID) VALUES(@ProjectName,@Status,@ProjectContent,@TimeLimit,@StartDate,@ExpiredDate,@OnlyUser,@UserOnce,@AllowGroupID)
          select @isrepeat=0
GO
/****** Object:  StoredProcedure [dbo].[KS_MoodProjectUpdate]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_MoodProjectUpdate]
@ProjectName nvarchar(255),
@Status int=0,
@ProjectContent nvarchar(4000),
@TimeLimit tinyint=0,
@StartDate SmallDateTime=getdate,
@ExpiredDate SmallDateTime=getdate,
@OnlyUser tinyint=0,
@UserOnce tinyint=0,
@AllowGroupID nvarchar(500),
@ProjectID int=0,
 @isrepeat int=1 output

 AS
  If  exists(select top 1 *  From KS_MoodProject Where ProjectName=@ProjectName And ProjectID<>@ProjectID)
  begin
   select @isrepeat=-2 /*重名*/
   return null
  end 
 Else
  Update KS_MoodProject Set
   ProjectName=@ProjectName,
   Status=@Status,
   ProjectContent=@ProjectContent,
   TimeLimit=@TimeLimit,
   StartDate=@StartDate,
   ExpiredDate=@ExpiredDate,
   OnlyUser=@OnlyUser,
   UserOnce=@UserOnce,
   AllowGroupID=@AllowGroupID
  Where projectid=@ProjectID
 select @isrepeat=0
GO
/****** Object:  StoredProcedure [dbo].[KS_MoodProjectStatus]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_MoodProjectStatus] 
 @Projectids nvarchar(4000)
AS
  if @projectids=''
  return null
 else
  begin

    declare @sql nvarchar(4000),@projectid int,@status int
    set @sql='declare rs cursor for select projectid,status From KS_MoodProject Where projectid in('+@ProjectIDs+')'
    exec (@sql)
     open rs
     fetch next from rs
     into @projectid,@status
     while @@fetch_status=0
     begin
         if @status=1
           update KS_MoodProject Set Status=0 Where projectid=@projectid
        else
          update KS_MoodProject Set Status=1 Where projectid=@projectid
         fetch next from rs
         into @projectid,@status
     end
     close rs
     deallocate rs
 end
GO
/****** Object:  StoredProcedure [dbo].[KS_MoodProjectHits]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_MoodProjectHits] 
@MoodId int=0,
@ChannelID int,
@InfoID int,
@ItemID int,
@Title nvarchar(255)
as
declare @sql nvarchar(4000)
 if exists(select top 1 * from KS_MoodList Where moodid=@MoodID and ChannelID=@ChannelID and infoid=@infoid)
   begin
     set @sql='UPDATE KS_MoodList Set M'+convert(varchar(100),@itemid)+'=m'+convert(varchar(100),@itemid)+'+1 where moodid='+convert(varchar(100),@MoodID)+' and ChannelID='+Convert(varchar(100),@ChannelID)+' and infoid='+convert(varchar(200),@infoid)
     exec (@sql)
   end 
 else
   begin
       set @sql='insert into KS_MoodList(moodid,channelid,infoid,title,m'+convert(varchar(100),@itemid)+') values('+convert(varchar(100),@MoodID)+','+convert(varchar(100),@ChannelID)+','+convert(varchar(100),@InfoID)+','''+convert(varchar(255),@Title)+''',1)'
       exec (@sql)
   end
GO
/****** Object:  StoredProcedure [dbo].[KS_ModelGetMaxID]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ModelGetMaxID] AS

 declare @modelid int
 if (exists(select top 1 channelid from ks_model))
   begin
    select @modelid=max(channelid) from ks_model
    set @modelid=@modelid+1
   end 
 else
   begin
   set @modelid=1
   end
   select @modelid
GO
/****** Object:  StoredProcedure [dbo].[KS_ModelClone]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ModelClone] 
@ModelName nvarchar(255),
@ModelTable nvarchar(255),
@ModelID int=0,
 @isrepeat int=1 output
As
  if exists(select top 1 * from ks_model where modelname=@modelname or modeltable=@modeltable)
   begin
    select @isrepeat=-2
   return null
   end
 else
   begin
  declare @MaxModelID  int
  declare @SQL nvarchar(4000)
  Select @MaxModelID=max(channelid)+1 FROM KS_Model
  Set @SQL='Insert Into [KS_Model]([channelid],[modeltype],[modelname],[modeltable],[modelitem],[modelitemunit],[modelstatus],[basictype],[modelfolder],[modelfsofolder],[fsolistnum],[intro],[chargesoption],[attributeoption],[receiptoption],[pkoption],[fieldsxml],[adminupfilestf],[adminupfilesdir],[userupfilestf],[userupfilesdir],[allowupfilessize],[allowupphototype],[allowupflashtype],[allowupmediatype],[allowuprealtype],[allowupothertype],[allowpublication],[publicationverify],[publicationrefreshhtmloption],[publicationmodifyverify],[commenttype],[commentlen],[newestday],[commenttemplate],[searchtemplate],[diggbyvisitor],[diggrepeat],[diggpertimes],[setting],[showoption],[seooption],[modelorderid]) 
    select '+convert(varchar(255),@MaxModelID)+',0,'''+convert(varchar(255),@ModelName)+''','''+convert(varchar(255),@ModelTable)+''',[modelitem],[modelitemunit],[modelstatus],[basictype],[modelfolder],[modelfsofolder],[fsolistnum],[intro],[chargesoption],[attributeoption],[receiptoption],[pkoption],[fieldsxml],[adminupfilestf],[adminupfilesdir],[userupfilestf],[userupfilesdir],[allowupfilessize],[allowupphototype],[allowupflashtype],[allowupmediatype],[allowuprealtype],[allowupothertype],[allowpublication],[publicationverify],[publicationrefreshhtmloption],[publicationmodifyverify],[commenttype],[commentlen],[newestday],[commenttemplate],[searchtemplate],[diggbyvisitor],[diggrepeat],[diggpertimes],[setting],[showoption],[seooption],modelorderid+1 from KS_Model where channelid='+convert(varchar(255),@ModelID)
   Exec (@SQL)
   Declare @Table nvarchar(4000)
   Select @Table=ModelTable From KS_Model Where channelid=@ModelID
   Set @SQL='select * into '+Convert(varchar(255),@modeltable)+' from '+@Table+' where 1=0'
   Exec (@SQL)
   Set @SQL=' alter table '+CONVERT(Nvarchar(255),@ModelTable)+' add constraint pk_'+convert(varchar(255),@MaxModelID)+'_infoid primary key(infoid)'
   Exec (@SQL)
   select @isrepeat=0
 end
GO
/****** Object:  StoredProcedure [dbo].[KS_GetMoodProjectInfo]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_GetMoodProjectInfo]
 @projectid int=0
 AS
 Select top 1 * From KS_MoodProject Where projectid=@projectid
GO
/****** Object:  StoredProcedure [dbo].[KS_GetDocInputerList]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_GetDocInputerList] AS
select inputer from KS_InfoList Group By Inputer
GO
/****** Object:  StoredProcedure [dbo].[KS_ItemHits]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ItemHits] 
 @Action varchar(50),
 @InfoID Int=0,
 @GetFlag int=0,
 @BasicType int=0,
 @OutHits int output
AS

  DECLARE @Hits int ,@dayhits int,@weekhits int,@monthhits int,@LastHitsTime datetime
  DECLARE @nowDayHits int ,@NowWeekHits int, @NowMonthHits int, @NowHits int
 If @BasicType=4 
    SELECT top 1 @Hits=Hits ,@DayHits=HitsByDay,@weekhits=HitsByWeek,@monthHits=HitsByMonth,@LastHitsTime=LastHitsTime FROM [KS_ProductList] WHERE InfoID=@InfoID
 Else
    SELECT top 1 @Hits=Hits ,@DayHits=HitsByDay,@weekhits=HitsByWeek,@monthHits=HitsByMonth,@LastHitsTime=LastHitsTime FROM [KS_InfoList] WHERE InfoID=@InfoID
  If @Action='count'
   BEGIN
     Set @NowHits=@Hits+1
     If DateDiff(week,@LastHitsTime, GetDate())<=0
       SET @NowWeekHits=@WeekHits+1
     Else
      SET @NowWeekHits=1
     IF DateDiff(month,@LastHitsTime,GetDate())<=0
      SET @NowMonthHits=@MonthHits+1
    ELSE
     SET @NowMonthHits=1
    IF DateDiff(day,@LastHitsTime,GetDate())<=0
     SET @NowDayHits=@DayHits+1
   Else
     Set @NowDayHits=1
   If @BasicType=4 
    UPDATE [KS_ProductList] Set Hits=@NowHits,HitsByWeek=@NowWeekHits,HitsByMonth=@NowMonthHits,HitsByDay=@NowDayHits,LastHitsTime=GetDate()  Where InfoID=@InfoID
    Else
     UPDATE [KS_InfoList] Set Hits=@NowHits,HitsByWeek=@NowWeekHits,HitsByMonth=@NowMonthHits,HitsByDay=@NowDayHits,LastHitsTime=GetDate()  Where InfoID=@InfoID

  END 
 Else
   Begin
     Set @NowHits=@Hits
     Set @NowDayHits=@DayHits
     Set @NowWeekHits=@WeekHits
     Set @NowMonthHits=@MonthHits
  END

  If @GetFlag=0 
     SELECT @OutHits= @NowHits
  Else If @GetFlag=1
     SELECT @OutHits= @NowDayHits
  Else If @GetFlag=2 
     SELECT @OutHits= @NowWeekHits
  Else If @GetFlag=3
     SELECT @OutHits=  @NowMonthHits
  Else
     SELECT @OutHits=  0
GO
/****** Object:  StoredProcedure [dbo].[KS_DelDigg]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_DelDigg]
@id int,
@num int=0
 AS
 Set NoCount ON
 DECLARE @DiggId int
 select top 1 @DiggId=diggid From KS_Digg Where ID=@id
 Update KS_DiggList Set SupportNum=SupportNum-@num ,AgainstNum=AgainstNum-@num  Where DiggID=@DiggID
 Delete From KS_Digg Where ID=@id
GO
/****** Object:  StoredProcedure [dbo].[KS_ContentItemAdd]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_ContentItemAdd]
  @channelid int,
  @classid int,
  @title nvarchar(255),
  @titlefontcolor nvarchar(50),
  @intro nvarchar(255),
  @defaultpic nvarchar(255),
  @keytags nvarchar(255),
  @hits int,
  @copyfrom nvarchar(255),
  @author nvarchar(255),
  @adddate datetime,
  @attribute nvarchar(255),
  @priority nvarchar(100),
  @inputer nvarchar(100),
  @verify int,
  @refreshtf int,
  @filename nvarchar(255),
  @turnurl nvarchar(255),
  @provinceid int,
  @cityid int,
  @countyid int,
  @infopurview int,
  @arrgroupid nvarchar(255),
  @readpoint int,
  @chargetype int,
  @pitchtime int,
  @readtimes money,
  @dividepercent int,
  @attachmentcharge int,
  @attachmentchargeonce int,
  @showon3g int=0,
  @itemid int output
 AS
  INSERT INTO [KS_InfoList](channelid,classid,title,titlefontcolor,intro,defaultpic,keytags,hits,copyfrom,author,adddate,attribute,priority,inputer,verify,refreshtf,filename,turnurl,provinceid,cityid,countyid,infopurview,arrgroupid,readpoint,chargetype,pitchtime,readtimes,dividepercent,attachmentcharge,attachmentchargeonce,showon3g) VALUES(@channelid,@classid,@title,@titlefontcolor,@intro,@defaultpic,@keytags,@hits,@copyfrom,@author,@adddate,@attribute,@priority,@inputer,@verify,@refreshtf,@filename,@turnurl,@provinceid,@cityid,@countyid,@infopurview,@arrgroupid,@readpoint,@chargetype,@pitchtime,@readtimes,@dividepercent,@attachmentcharge,@attachmentchargeonce,@showon3g)
select @itemid=@@identity
GO
/****** Object:  StoredProcedure [dbo].[KS_CommentNum]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_CommentNum] 
 @InfoID Int=0,
 @BasicType int=0,
 @OutCommentNum int output
AS

  DECLARE @CommentNum int 
   If @BasicType=4 
    SELECT top 1 @CommentNum=CommentNum FROM [KS_ProductList] WHERE InfoID=@InfoID
 Else
    SELECT top 1 @CommentNum=CommentNum FROM [KS_InfoList] WHERE InfoID=@InfoID
    
    SELECT @OutCommentNum= @CommentNum
GO
/****** Object:  StoredProcedure [dbo].[KS_AdminModifyPass]    Script Date: 12/12/2018 20:03:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [KS_AdminModifyPass] 
@userName nvarchar(255),
@oldPassWord nvarchar(255),
@newPassWord nvarchar(255),
@result int out
AS
if exists(select top 1 * from KS_Admin Where [userName]=@userName and [passWord]=@oldPassWord)
   begin       
    update KS_Admin Set [passWord]=@newPassWord Where [userName]=@userName
    select @result=1
   end
else
   begin
   select @result=2
   end
GO
/****** Object:  Default [DF__KS_Commen__Chann__5441852A]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Comment] ADD  CONSTRAINT [DF__KS_Commen__Chann__5441852A]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF_KS_Comment_ClassID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Comment] ADD  CONSTRAINT [DF_KS_Comment_ClassID]  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF__KS_Commen__InfoI__5535A963]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Comment] ADD  CONSTRAINT [DF__KS_Commen__InfoI__5535A963]  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF__KS_Commen__Suppo__5629CD9C]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Comment] ADD  CONSTRAINT [DF__KS_Commen__Suppo__5629CD9C]  DEFAULT ((0)) FOR [Support]
GO
/****** Object:  Default [DF__KS_Commen__Oppos__571DF1D5]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Comment] ADD  CONSTRAINT [DF__KS_Commen__Oppos__571DF1D5]  DEFAULT ((0)) FOR [Opposition]
GO
/****** Object:  Default [DF__KS_Commen__Verif__5812160E]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Comment] ADD  CONSTRAINT [DF__KS_Commen__Verif__5812160E]  DEFAULT ((0)) FOR [Verify]
GO
/****** Object:  Default [DF__KS_Commen__Anony__59063A47]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Comment] ADD  CONSTRAINT [DF__KS_Commen__Anony__59063A47]  DEFAULT ((0)) FOR [Anonymous]
GO
/****** Object:  Default [DF__KS_Commen__Viewp__59FA5E80]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Comment] ADD  CONSTRAINT [DF__KS_Commen__Viewp__59FA5E80]  DEFAULT ((0)) FOR [Viewpoint]
GO
/****** Object:  Default [DF_KS_Comment_Reports]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Comment] ADD  CONSTRAINT [DF_KS_Comment_Reports]  DEFAULT ((0)) FOR [Reports]
GO
/****** Object:  Default [DF_KS_Comment_UserID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Comment] ADD  CONSTRAINT [DF_KS_Comment_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF__KS_Class__Parent__3E52440B]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__Parent__3E52440B]  DEFAULT ((0)) FOR [ParentID]
GO
/****** Object:  Default [DF__KS_Class__Root__3F466844]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__Root__3F466844]  DEFAULT ((0)) FOR [Root]
GO
/****** Object:  Default [DF__KS_Class__OrderI__403A8C7D]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__OrderI__403A8C7D]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF__KS_Class__Child__412EB0B6]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__Child__412EB0B6]  DEFAULT ((0)) FOR [Child]
GO
/****** Object:  Default [DF__KS_Class__PrevID__4222D4EF]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__PrevID__4222D4EF]  DEFAULT ((0)) FOR [PrevID]
GO
/****** Object:  Default [DF__KS_Class__NextID__4316F928]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__NextID__4316F928]  DEFAULT ((0)) FOR [NextID]
GO
/****** Object:  Default [DF__KS_Class__ClassT__440B1D61]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__ClassT__440B1D61]  DEFAULT ((1)) FOR [ClassType]
GO
/****** Object:  Default [DF__KS_Class__ShowIn__44FF419A]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__ShowIn__44FF419A]  DEFAULT ((0)) FOR [ShowInTop]
GO
/****** Object:  Default [DF_KS_Class_ShowOn3G]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF_KS_Class_ShowOn3G]  DEFAULT ((0)) FOR [ShowOn3G]
GO
/****** Object:  Default [DF__KS_Class__ShowIn__45F365D3]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__ShowIn__45F365D3]  DEFAULT ((0)) FOR [ShowInCir]
GO
/****** Object:  Default [DF__KS_Class__AllowP__46E78A0C]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__AllowP__46E78A0C]  DEFAULT ((0)) FOR [AllowPubInfo]
GO
/****** Object:  Default [DF_KS_Class_PubFlag]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF_KS_Class_PubFlag]  DEFAULT ((1)) FOR [PubFlag]
GO
/****** Object:  Default [DF__KS_Class__AllowP__47DBAE45]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__AllowP__47DBAE45]  DEFAULT ('0') FOR [AllowPubGroupID]
GO
/****** Object:  Default [DF__KS_Class__PubAdd__48CFD27E]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__PubAdd__48CFD27E]  DEFAULT ((0)) FOR [PubAddMoney]
GO
/****** Object:  Default [DF__KS_Class__PubAdd__49C3F6B7]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__PubAdd__49C3F6B7]  DEFAULT ((0)) FOR [PubAddPoint]
GO
/****** Object:  Default [DF__KS_Class__PubAdd__4AB81AF0]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__PubAdd__4AB81AF0]  DEFAULT ((0)) FOR [PubAddScore]
GO
/****** Object:  Default [DF_KS_Class_CmtAddScore]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF_KS_Class_CmtAddScore]  DEFAULT ((0)) FOR [CmtAddScore]
GO
/****** Object:  Default [DF_KS_Class_ShareAddScore]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF_KS_Class_ShareAddScore]  DEFAULT ((0)) FOR [ShareAddScore]
GO
/****** Object:  Default [DF__KS_Class__Create__4BAC3F29]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__Create__4BAC3F29]  DEFAULT ((0)) FOR [CreateHtmlFlag]
GO
/****** Object:  Default [DF__KS_Class__AutoCr__4CA06362]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__AutoCr__4CA06362]  DEFAULT ((0)) FOR [AutoCreateType]
GO
/****** Object:  Default [DF__KS_Class__ClassP__4D94879B]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__ClassP__4D94879B]  DEFAULT ((0)) FOR [ClassPurview]
GO
/****** Object:  Default [DF__KS_Class__Defaul__4E88ABD4]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__Defaul__4E88ABD4]  DEFAULT ((0)) FOR [DefaultReadPoint]
GO
/****** Object:  Default [DF__KS_Class__Defaul__4F7CD00D]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__Defaul__4F7CD00D]  DEFAULT ((0)) FOR [DefaultChargeType]
GO
/****** Object:  Default [DF__KS_Class__Defaul__5070F446]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__Defaul__5070F446]  DEFAULT ((24)) FOR [DefaultPitchTime]
GO
/****** Object:  Default [DF__KS_Class__Defaul__5165187F]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__Defaul__5165187F]  DEFAULT ((10)) FOR [DefaultReadTimes]
GO
/****** Object:  Default [DF__KS_Class__Defaul__52593CB8]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF__KS_Class__Defaul__52593CB8]  DEFAULT ((0)) FOR [DefaultDividePercent]
GO
/****** Object:  Default [DF_KS_Class_InfoNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  CONSTRAINT [DF_KS_Class_InfoNum]  DEFAULT ((0)) FOR [InfoNum]
GO
/****** Object:  Default [DF__KS_Class__ProSpe__1940BAED]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  DEFAULT ((0)) FOR [ProSpecialID]
GO
/****** Object:  Default [DF__KS_Class__ClassF__1A34DF26]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  DEFAULT ((0)) FOR [ClassFsoDirRule]
GO
/****** Object:  Default [DF__KS_Class__Domain__1B29035F]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Class] ADD  DEFAULT ((0)) FOR [DomainBindType]
GO
/****** Object:  Default [DF_Ks_CheckPackinfo_packid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackinfo] ADD  CONSTRAINT [DF_Ks_CheckPackinfo_packid]  DEFAULT ((0)) FOR [PackID]
GO
/****** Object:  Default [DF_Ks_CheckPackinfo_packinfoid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackinfo] ADD  CONSTRAINT [DF_Ks_CheckPackinfo_packinfoid]  DEFAULT ((0)) FOR [PackInfoID]
GO
/****** Object:  Default [DF_Ks_CheckPackinfo_type]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackinfo] ADD  CONSTRAINT [DF_Ks_CheckPackinfo_type]  DEFAULT ((0)) FOR [Type]
GO
/****** Object:  Default [DF_Ks_CheckPackinfo_score]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackinfo] ADD  CONSTRAINT [DF_Ks_CheckPackinfo_score]  DEFAULT ((0)) FOR [Score]
GO
/****** Object:  Default [DF_Ks_CheckPackinfo_orderid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackinfo] ADD  CONSTRAINT [DF_Ks_CheckPackinfo_orderid]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_Ks_CheckPackinfo_Addtime]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackinfo] ADD  CONSTRAINT [DF_Ks_CheckPackinfo_Addtime]  DEFAULT (getdate()) FOR [AddTime]
GO
/****** Object:  Default [DF_Ks_CheckPackinfo_isorno]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackinfo] ADD  CONSTRAINT [DF_Ks_CheckPackinfo_isorno]  DEFAULT ((0)) FOR [IsOrNo]
GO
/****** Object:  Default [DF_Ks_CheckPackinfo_price]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackinfo] ADD  CONSTRAINT [DF_Ks_CheckPackinfo_price]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF_KS_CheckPackageItem_addtime]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackageItem] ADD  CONSTRAINT [DF_KS_CheckPackageItem_addtime]  DEFAULT (getdate()) FOR [AddTime]
GO
/****** Object:  Default [DF_KS_CheckPackageItem_packid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackageItem] ADD  CONSTRAINT [DF_KS_CheckPackageItem_packid]  DEFAULT ((0)) FOR [PackID]
GO
/****** Object:  Default [DF_KS_CheckPackageItem_score]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackageItem] ADD  CONSTRAINT [DF_KS_CheckPackageItem_score]  DEFAULT ((0)) FOR [Score]
GO
/****** Object:  Default [DF_KS_CheckPackageItem_price]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackageItem] ADD  CONSTRAINT [DF_KS_CheckPackageItem_price]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF_KS_CheckPackageItem_Studytime]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackageItem] ADD  CONSTRAINT [DF_KS_CheckPackageItem_Studytime]  DEFAULT ((0)) FOR [StudyTime]
GO
/****** Object:  Default [DF_KS_CheckPackageItem_Integration]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackageItem] ADD  CONSTRAINT [DF_KS_CheckPackageItem_Integration]  DEFAULT ((0)) FOR [IntegraTion]
GO
/****** Object:  Default [DF_KS_CheckPackageItem_datestatus]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackageItem] ADD  CONSTRAINT [DF_KS_CheckPackageItem_datestatus]  DEFAULT ((0)) FOR [DateStatus]
GO
/****** Object:  Default [DF_KS_CheckPackageItem_studycourse]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackageItem] ADD  CONSTRAINT [DF_KS_CheckPackageItem_studycourse]  DEFAULT ((0)) FOR [StudyCourse]
GO
/****** Object:  Default [DF_KS_CheckPackageItem_Studysj]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackageItem] ADD  CONSTRAINT [DF_KS_CheckPackageItem_Studysj]  DEFAULT ((0)) FOR [StudySj]
GO
/****** Object:  Default [DF_KS_CheckPackageItem_studylesson]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackageItem] ADD  CONSTRAINT [DF_KS_CheckPackageItem_studylesson]  DEFAULT (N'0') FOR [StudyLesson]
GO
/****** Object:  Default [DF_KS_CheckPackageItem_TypeID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackageItem] ADD  CONSTRAINT [DF_KS_CheckPackageItem_TypeID]  DEFAULT ((0)) FOR [TypeID]
GO
/****** Object:  Default [DF_KS_CheckPackageItem_Type]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CheckPackageItem] ADD  CONSTRAINT [DF_KS_CheckPackageItem_Type]  DEFAULT ((0)) FOR [Type]
GO
/****** Object:  Default [DF_KS_Area_IsShow]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Area] ADD  CONSTRAINT [DF_KS_Area_IsShow]  DEFAULT ((0)) FOR [IsShow]
GO
/****** Object:  Default [DF_KS_Area_eptotal]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Area] ADD  CONSTRAINT [DF_KS_Area_eptotal]  DEFAULT ((0)) FOR [eptotal]
GO
/****** Object:  Default [DF__KS_AgYJ__CourseI__3118447E]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgYJ] ADD  DEFAULT ((0)) FOR [CourseID]
GO
/****** Object:  Default [DF__KS_AgYJ__Type__320C68B7]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgYJ] ADD  DEFAULT ((0)) FOR [Type]
GO
/****** Object:  Default [DF__KS_AgYJ__Status__33008CF0]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgYJ] ADD  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF__KS_AgYJ__Price__33F4B129]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgYJ] ADD  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF__KS_AgYJ__Discoun__34E8D562]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgYJ] ADD  DEFAULT ((0)) FOR [Discount]
GO
/****** Object:  Default [DF_KS_AgYJ_Rate1]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgYJ] ADD  CONSTRAINT [DF_KS_AgYJ_Rate1]  DEFAULT ((0)) FOR [Rate1]
GO
/****** Object:  Default [DF_KS_AgYJ_Rate2]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgYJ] ADD  CONSTRAINT [DF_KS_AgYJ_Rate2]  DEFAULT ((0)) FOR [Rate2]
GO
/****** Object:  Default [DF__KS_AgYJ__AgYJ1__37C5420D]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgYJ] ADD  DEFAULT ((0)) FOR [AgYJ1]
GO
/****** Object:  Default [DF__KS_AgYJ__AgYJ2__38B96646]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgYJ] ADD  DEFAULT ((0)) FOR [AgYJ2]
GO
/****** Object:  Default [DF__KS_AgYJ__Tag__39AD8A7F]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgYJ] ADD  DEFAULT ((1)) FOR [Tag]
GO
/****** Object:  Default [DF__KS_AgUser__Statu__3AA1AEB8]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgUser] ADD  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF__KS_AgUser__Provi__3B95D2F1]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgUser] ADD  DEFAULT ((0)) FOR [ProvinceID]
GO
/****** Object:  Default [DF__KS_AgUser__CityI__3C89F72A]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgUser] ADD  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF__KS_AgUser__Count__3D7E1B63]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgUser] ADD  DEFAULT ((0)) FOR [CountyID]
GO
/****** Object:  Default [DF__KS_AgUser__Indus__3E723F9C]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgUser] ADD  DEFAULT ((0)) FOR [IndustryID]
GO
/****** Object:  Default [DF__KS_AgUser__Catet__3F6663D5]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgUser] ADD  DEFAULT ((0)) FOR [CatetoryID]
GO
/****** Object:  Default [DF__KS_AgUser__Total__405A880E]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgUser] ADD  DEFAULT ((0)) FOR [TotalYJ]
GO
/****** Object:  Default [DF__KS_AgUser__Total__414EAC47]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgUser] ADD  DEFAULT ((0)) FOR [TotalAgent]
GO
/****** Object:  Default [DF__KS_AgTX__ShouxuF__4242D080]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgTX] ADD  DEFAULT ((0)) FOR [ShouxuFee]
GO
/****** Object:  Default [DF__KS_AgentY__InfoI__4336F4B9]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF__KS_AgentYJ__Type__442B18F2]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  DEFAULT ((0)) FOR [Type]
GO
/****** Object:  Default [DF__KS_AgentY__Statu__451F3D2B]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF__KS_AgentY__UnitP__46136164]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  DEFAULT ((0)) FOR [UnitPrice]
GO
/****** Object:  Default [DF__KS_AgentYJ__Num__4F0A30C6]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  CONSTRAINT [DF__KS_AgentYJ__Num__4F0A30C6]  DEFAULT ((1)) FOR [Num]
GO
/****** Object:  Default [DF__KS_AgentY__Price__47FBA9D6]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF__KS_AgentY__Disco__48EFCE0F]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  DEFAULT ((0)) FOR [Discount]
GO
/****** Object:  Default [DF__KS_AgentY__YjTyp__49E3F248]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  DEFAULT ((0)) FOR [YjType]
GO
/****** Object:  Default [DF_KS_AgentYJ_Rate1]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  CONSTRAINT [DF_KS_AgentYJ_Rate1]  DEFAULT ((0)) FOR [Rate1]
GO
/****** Object:  Default [DF_KS_AgentYJ_Rate2]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  CONSTRAINT [DF_KS_AgentYJ_Rate2]  DEFAULT ((0)) FOR [Rate2]
GO
/****** Object:  Default [DF_KS_AgentYJ_Rate3]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  CONSTRAINT [DF_KS_AgentYJ_Rate3]  DEFAULT ((0)) FOR [Rate3]
GO
/****** Object:  Default [DF__KS_AgentY__YjRat__4DB4832C]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  DEFAULT ((0)) FOR [YjRate1]
GO
/****** Object:  Default [DF__KS_AgentY__YjRat__4EA8A765]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  DEFAULT ((0)) FOR [YjRate2]
GO
/****** Object:  Default [DF__KS_AgentY__YjRat__4F9CCB9E]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  DEFAULT ((0)) FOR [YjRate3]
GO
/****** Object:  Default [DF__KS_AgentY__InPri__5090EFD7]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  DEFAULT ((0)) FOR [InPrice]
GO
/****** Object:  Default [DF__KS_AgentYJ__Tag__51851410]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentYJ] ADD  DEFAULT ((1)) FOR [Tag]
GO
/****** Object:  Default [DF_KS_AgentTX_flag]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentTX] ADD  CONSTRAINT [DF_KS_AgentTX_flag]  DEFAULT ((0)) FOR [flag]
GO
/****** Object:  Default [DF_KS_AgentTX_ShouxuFree]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentTX] ADD  CONSTRAINT [DF_KS_AgentTX_ShouxuFree]  DEFAULT ((0)) FOR [ShouxuFree]
GO
/****** Object:  Default [DF_KS_AgentTX_OriMoney]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentTX] ADD  CONSTRAINT [DF_KS_AgentTX_OriMoney]  DEFAULT ((0)) FOR [OriMoney]
GO
/****** Object:  Default [DF_KS_AgentTX_TxType]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentTX] ADD  CONSTRAINT [DF_KS_AgentTX_TxType]  DEFAULT ((0)) FOR [TxType]
GO
/****** Object:  Default [DF_KS_AgentTX_UserID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentTX] ADD  CONSTRAINT [DF_KS_AgentTX_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_AgentShop_SkinID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentShop] ADD  CONSTRAINT [DF_KS_AgentShop_SkinID]  DEFAULT ((0)) FOR [SkinID]
GO
/****** Object:  Default [DF_KS_AgentShop_TotalYJ]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentShop] ADD  CONSTRAINT [DF_KS_AgentShop_TotalYJ]  DEFAULT ((0)) FOR [TotalYJ]
GO
/****** Object:  Default [DF_KS_AgentShop_TotalTX]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentShop] ADD  CONSTRAINT [DF_KS_AgentShop_TotalTX]  DEFAULT ((0)) FOR [TotalTX]
GO
/****** Object:  Default [DF_KS_AgentShop_TotalFXS]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentShop] ADD  CONSTRAINT [DF_KS_AgentShop_TotalFXS]  DEFAULT ((0)) FOR [TotalFXS]
GO
/****** Object:  Default [DF__KS_AgentS__Agent__5987BF39]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentShop] ADD  CONSTRAINT [DF__KS_AgentS__Agent__5987BF39]  DEFAULT ((0)) FOR [AgentType]
GO
/****** Object:  Default [DF__KS_AgentS__CosSk__5A7BE372]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentShop] ADD  CONSTRAINT [DF__KS_AgentS__CosSk__5A7BE372]  DEFAULT ((0)) FOR [CosSkinID]
GO
/****** Object:  Default [DF__KS_AgentS__IsMyC__7623FDE7]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentShop] ADD  CONSTRAINT [DF__KS_AgentS__IsMyC__7623FDE7]  DEFAULT ((0)) FOR [IsMyCosShop]
GO
/****** Object:  Default [DF_KS_AgentPYQView_PYQViewType]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentPYQView] ADD  CONSTRAINT [DF_KS_AgentPYQView_PYQViewType]  DEFAULT ((0)) FOR [PYQViewType]
GO
/****** Object:  Default [DF_KS_AgentPYQ_Hits]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentPYQ] ADD  CONSTRAINT [DF_KS_AgentPYQ_Hits]  DEFAULT ((0)) FOR [Hits]
GO
/****** Object:  Default [DF_KS_AgentPYQ_PYQType]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AgentPYQ] ADD  CONSTRAINT [DF_KS_AgentPYQ_PYQType]  DEFAULT ((0)) FOR [PYQType]
GO
/****** Object:  Default [DF__KS_AdminR__Order__6D2D2E85]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AdminRole] ADD  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF__KS_AdminP__Statu__6E2152BE]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AdminPlan] ADD  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF__KS_AdminP__TipsD__6F1576F7]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_AdminPlan] ADD  DEFAULT ((0)) FOR [TipsDays]
GO
/****** Object:  Default [DF_KS_CourseReplayChat_ChatID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseReplayChat] ADD  CONSTRAINT [DF_KS_CourseReplayChat_ChatID]  DEFAULT ((0)) FOR [ChatID]
GO
/****** Object:  Default [DF_KS_CourseReplayChat_Userid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseReplayChat] ADD  CONSTRAINT [DF_KS_CourseReplayChat_Userid]  DEFAULT ((0)) FOR [Userid]
GO
/****** Object:  Default [DF_KS_CourseReplayChat_ChatStatus]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseReplayChat] ADD  CONSTRAINT [DF_KS_CourseReplayChat_ChatStatus]  DEFAULT ((0)) FOR [ChatStatus]
GO
/****** Object:  Default [DF_KS_CourseReplayChat_ParentID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseReplayChat] ADD  CONSTRAINT [DF_KS_CourseReplayChat_ParentID]  DEFAULT ((0)) FOR [ParentID]
GO
/****** Object:  Default [DF_KS_CourseReplayChat_ReplayType]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseReplayChat] ADD  CONSTRAINT [DF_KS_CourseReplayChat_ReplayType]  DEFAULT ((0)) FOR [ReplayType]
GO
/****** Object:  Default [DF_KS_CourseReplayChat_ZanNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseReplayChat] ADD  CONSTRAINT [DF_KS_CourseReplayChat_ZanNum]  DEFAULT ((0)) FOR [ZanNum]
GO
/****** Object:  Default [DF_KS_CoursePJ_parentID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CoursePJ] ADD  CONSTRAINT [DF_KS_CoursePJ_parentID]  DEFAULT ((0)) FOR [parentID]
GO
/****** Object:  Default [DF_KS_CoursePJ_Cosnumber]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CoursePJ] ADD  CONSTRAINT [DF_KS_CoursePJ_Cosnumber]  DEFAULT ((0)) FOR [Cosnumber]
GO
/****** Object:  Default [DF_KS_CoursePJ_CourseID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CoursePJ] ADD  CONSTRAINT [DF_KS_CoursePJ_CourseID]  DEFAULT ((0)) FOR [CourseID]
GO
/****** Object:  Default [DF_KS_CoursePJ_AddDate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CoursePJ] ADD  CONSTRAINT [DF_KS_CoursePJ_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_CoursePJ_status]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CoursePJ] ADD  CONSTRAINT [DF_KS_CoursePJ_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF_KS_CoursePJ_EpID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CoursePJ] ADD  CONSTRAINT [DF_KS_CoursePJ_EpID]  DEFAULT ((0)) FOR [EpID]
GO
/****** Object:  Default [DF_KS_CoursePJ_CmtType]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CoursePJ] ADD  CONSTRAINT [DF_KS_CoursePJ_CmtType]  DEFAULT ((0)) FOR [CmtType]
GO
/****** Object:  Default [DF_KS_CoursePJ_OrderType]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CoursePJ] ADD  CONSTRAINT [DF_KS_CoursePJ_OrderType]  DEFAULT ((0)) FOR [OrderType]
GO
/****** Object:  Default [DF_KS_CoursePJ_UserID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CoursePJ] ADD  CONSTRAINT [DF_KS_CoursePJ_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_CourseFacePeriod_OrderID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFacePeriod] ADD  CONSTRAINT [DF_KS_CourseFacePeriod_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_KS_CourseFacePeriod_CourseID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFacePeriod] ADD  CONSTRAINT [DF_KS_CourseFacePeriod_CourseID]  DEFAULT ((0)) FOR [CourseID]
GO
/****** Object:  Default [DF_KS_CourseFacePeriod_UserID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFacePeriod] ADD  CONSTRAINT [DF_KS_CourseFacePeriod_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_CourseFacePeriod_TcID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFacePeriod] ADD  CONSTRAINT [DF_KS_CourseFacePeriod_TcID]  DEFAULT ((0)) FOR [TcID]
GO
/****** Object:  Default [DF_KS_CourseFacePeriod_ParentID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFacePeriod] ADD  CONSTRAINT [DF_KS_CourseFacePeriod_ParentID]  DEFAULT ((0)) FOR [ParentID]
GO
/****** Object:  Default [DF_KS_CourseFacePeriod_Depth]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFacePeriod] ADD  CONSTRAINT [DF_KS_CourseFacePeriod_Depth]  DEFAULT ((0)) FOR [Depth]
GO
/****** Object:  Default [DF_KS_CourseFacePeriod_Child]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFacePeriod] ADD  CONSTRAINT [DF_KS_CourseFacePeriod_Child]  DEFAULT ((0)) FOR [Child]
GO
/****** Object:  Default [DF_KS_CourseFacePeriod_ParentIDPath]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFacePeriod] ADD  CONSTRAINT [DF_KS_CourseFacePeriod_ParentIDPath]  DEFAULT ((0)) FOR [ParentIDPath]
GO
/****** Object:  Default [DF_KS_CourseFacePeriod_IsFree]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFacePeriod] ADD  CONSTRAINT [DF_KS_CourseFacePeriod_IsFree]  DEFAULT ((0)) FOR [IsFree]
GO
/****** Object:  Default [DF_KS_CourseFacePeriod_Money]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFacePeriod] ADD  CONSTRAINT [DF_KS_CourseFacePeriod_Money]  DEFAULT ((0)) FOR [Money]
GO
/****** Object:  Default [DF_KS_CourseFacePeriod_Score]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFacePeriod] ADD  CONSTRAINT [DF_KS_CourseFacePeriod_Score]  DEFAULT ((0)) FOR [Score]
GO
/****** Object:  Default [DF_KS_CourseFace_Provinceid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_Provinceid]  DEFAULT ((0)) FOR [Provinceid]
GO
/****** Object:  Default [DF_KS_CourseFace_Cityid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_Cityid]  DEFAULT ((0)) FOR [Cityid]
GO
/****** Object:  Default [DF_KS_CourseFace_CountyId]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_CountyId]  DEFAULT ((0)) FOR [CountyId]
GO
/****** Object:  Default [DF_KS_CourseFace_PeriodID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_PeriodID]  DEFAULT ((0)) FOR [PeriodID]
GO
/****** Object:  Default [DF_KS_CourseFace_ChargePeriod]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_ChargePeriod]  DEFAULT ((1)) FOR [ChargePeriod]
GO
/****** Object:  Default [DF_KS_CourseFace_UserID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_CourseFace_Money]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_Money]  DEFAULT ((0)) FOR [Money]
GO
/****** Object:  Default [DF_KS_CourseFace_Price_Member]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_Price_Member]  DEFAULT ((0)) FOR [Price_Member]
GO
/****** Object:  Default [DF_KS_CourseFace_IsExam]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_IsExam]  DEFAULT ((0)) FOR [IsExam]
GO
/****** Object:  Default [DF_KS_CourseFace_popular]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_popular]  DEFAULT ((0)) FOR [popular]
GO
/****** Object:  Default [DF_KS_CourseFace_comment]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_comment]  DEFAULT ((0)) FOR [comment]
GO
/****** Object:  Default [DF_KS_CourseFace_istop]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_istop]  DEFAULT ((0)) FOR [istop]
GO
/****** Object:  Default [DF_KS_CourseFace_addTime]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_addTime]  DEFAULT (getdate()) FOR [addTime]
GO
/****** Object:  Default [DF_KS_CourseFace_TeachWay]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_TeachWay]  DEFAULT ((0)) FOR [TeachWay]
GO
/****** Object:  Default [DF_KS_CourseFace_Verify]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_Verify]  DEFAULT ((0)) FOR [Verify]
GO
/****** Object:  Default [DF_KS_CourseFace_Huandeng]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_Huandeng]  DEFAULT ((0)) FOR [Huandeng]
GO
/****** Object:  Default [DF_KS_CourseFace_IsTemplate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_IsTemplate]  DEFAULT ((0)) FOR [IsTemplate]
GO
/****** Object:  Default [DF_KS_CourseFace_CountPid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_CountPid]  DEFAULT ((0)) FOR [CountPid]
GO
/****** Object:  Default [DF_KS_CourseFace_tryout]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_tryout]  DEFAULT ((0)) FOR [tryout]
GO
/****** Object:  Default [DF_KS_CourseFace_BeginTime]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_BeginTime]  DEFAULT (getdate()) FOR [BeginTime]
GO
/****** Object:  Default [DF_KS_CourseFace_EndTime]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_EndTime]  DEFAULT (getdate()) FOR [EndTime]
GO
/****** Object:  Default [DF_KS_CourseFace_is3g]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_is3g]  DEFAULT ((0)) FOR [is3g]
GO
/****** Object:  Default [DF_KS_CourseFace_IsFree]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_IsFree]  DEFAULT ((0)) FOR [IsFree]
GO
/****** Object:  Default [DF_KS_CourseFace_buycount]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_buycount]  DEFAULT ((0)) FOR [buycount]
GO
/****** Object:  Default [DF_KS_CourseFace_lookcount]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_lookcount]  DEFAULT ((0)) FOR [lookcount]
GO
/****** Object:  Default [DF_KS_CourseFace_coursepf]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_coursepf]  DEFAULT ((0)) FOR [coursepf]
GO
/****** Object:  Default [DF_KS_CourseFace_number]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_number]  DEFAULT ((0)) FOR [number]
GO
/****** Object:  Default [DF_KS_CourseFace_Cashback]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_Cashback]  DEFAULT ((0)) FOR [Cashback]
GO
/****** Object:  Default [DF_KS_CourseFace_EffectiveDay]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_EffectiveDay]  DEFAULT ((0)) FOR [EffectiveDay]
GO
/****** Object:  Default [DF_KS_CourseFace_IsOff]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_IsOff]  DEFAULT ((1)) FOR [IsOff]
GO
/****** Object:  Default [DF_KS_CourseFace_CollectCount]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_CollectCount]  DEFAULT ((0)) FOR [CollectCount]
GO
/****** Object:  Default [DF_KS_CourseFace_pfnum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_pfnum]  DEFAULT ((0)) FOR [pfnum]
GO
/****** Object:  Default [DF_KS_CourseFace_IsRefresh]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_IsRefresh]  DEFAULT ((0)) FOR [IsRefresh]
GO
/****** Object:  Default [DF_KS_CourseFace_jifen]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_jifen]  DEFAULT ((0)) FOR [jifen]
GO
/****** Object:  Default [DF_KS_CourseFace_PanicMoney]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_PanicMoney]  DEFAULT ((0)) FOR [PanicMoney]
GO
/****** Object:  Default [DF_KS_CourseFace_Promotion]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_Promotion]  DEFAULT ((0)) FOR [Promotion]
GO
/****** Object:  Default [DF_KS_CourseFace_shixian]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_shixian]  DEFAULT ((0)) FOR [shixian]
GO
/****** Object:  Default [DF_KS_CourseFace_OpenDate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_OpenDate]  DEFAULT (getdate()) FOR [OpenDate]
GO
/****** Object:  Default [DF_KS_CourseFace_PingTaiRate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_PingTaiRate]  DEFAULT ((0)) FOR [PingTaiRate]
GO
/****** Object:  Default [DF_KS_CourseFace_ProviceRate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_ProviceRate]  DEFAULT ((0)) FOR [ProviceRate]
GO
/****** Object:  Default [DF_KS_CourseFace_CityRate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_CityRate]  DEFAULT ((0)) FOR [CityRate]
GO
/****** Object:  Default [DF_KS_CourseFace_TeacherNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_TeacherNum]  DEFAULT ((0)) FOR [TeacherNum]
GO
/****** Object:  Default [DF_KS_CourseFace_SjNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_SjNum]  DEFAULT ((0)) FOR [SjNum]
GO
/****** Object:  Default [DF_KS_CourseFace_PropNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_PropNum]  DEFAULT ((0)) FOR [PropNum]
GO
/****** Object:  Default [DF_KS_CourseFace_ChatNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_ChatNum]  DEFAULT ((0)) FOR [ChatNum]
GO
/****** Object:  Default [DF_KS_CourseFace_ZlNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_ZlNum]  DEFAULT ((0)) FOR [ZlNum]
GO
/****** Object:  Default [DF_KS_CourseFace_StudentNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_StudentNum]  DEFAULT ((0)) FOR [StudentNum]
GO
/****** Object:  Default [DF_KS_CourseFace_PjNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_PjNum]  DEFAULT ((0)) FOR [PjNum]
GO
/****** Object:  Default [DF_KS_CourseFace_totalc]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_totalc]  DEFAULT ((0)) FOR [totalc]
GO
/****** Object:  Default [DF_KS_CourseFace_totalz]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_totalz]  DEFAULT ((0)) FOR [totalz]
GO
/****** Object:  Default [DF_KS_CourseFace_receivedDay]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF_KS_CourseFace_receivedDay]  DEFAULT ((0)) FOR [receivedDay]
GO
/****** Object:  Default [DF__KS_Course__IsSen__11CC185C]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF__KS_Course__IsSen__11CC185C]  DEFAULT ((0)) FOR [IsSendNote]
GO
/****** Object:  Default [DF__KS_Course__NoteP__12C03C95]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF__KS_Course__NoteP__12C03C95]  DEFAULT ((0)) FOR [NotePrice]
GO
/****** Object:  Default [DF__KS_Course__IsCon__159CA940]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseFace] ADD  CONSTRAINT [DF__KS_Course__IsCon__159CA940]  DEFAULT ((0)) FOR [IsContainTax]
GO
/****** Object:  Default [DF_KS_CourseChat_ChatType]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseChat] ADD  CONSTRAINT [DF_KS_CourseChat_ChatType]  DEFAULT ((3)) FOR [ChatType]
GO
/****** Object:  Default [DF_KS_CourseChat_ChatInfoid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseChat] ADD  CONSTRAINT [DF_KS_CourseChat_ChatInfoid]  DEFAULT ((0)) FOR [ChatInfoid]
GO
/****** Object:  Default [DF_KS_CourseChat_UserId]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseChat] ADD  CONSTRAINT [DF_KS_CourseChat_UserId]  DEFAULT ((0)) FOR [UserId]
GO
/****** Object:  Default [DF_KS_CourseChat_AddData]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseChat] ADD  CONSTRAINT [DF_KS_CourseChat_AddData]  DEFAULT (getdate()) FOR [AddData]
GO
/****** Object:  Default [DF_KS_CourseChat_Courseid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseChat] ADD  CONSTRAINT [DF_KS_CourseChat_Courseid]  DEFAULT ((0)) FOR [Courseid]
GO
/****** Object:  Default [DF_KS_CourseChat_CourseType]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseChat] ADD  CONSTRAINT [DF_KS_CourseChat_CourseType]  DEFAULT ((0)) FOR [CourseType]
GO
/****** Object:  Default [DF_KS_CourseChat_Periodid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseChat] ADD  CONSTRAINT [DF_KS_CourseChat_Periodid]  DEFAULT ((0)) FOR [Periodid]
GO
/****** Object:  Default [DF_KS_CourseChat_ChatStatus]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseChat] ADD  CONSTRAINT [DF_KS_CourseChat_ChatStatus]  DEFAULT ((0)) FOR [ChatStatus]
GO
/****** Object:  Default [DF_KS_CourseChat_TcID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseChat] ADD  CONSTRAINT [DF_KS_CourseChat_TcID]  DEFAULT ((0)) FOR [TcID]
GO
/****** Object:  Default [DF_KS_CourseChat_SchoolID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseChat] ADD  CONSTRAINT [DF_KS_CourseChat_SchoolID]  DEFAULT ((0)) FOR [SchoolID]
GO
/****** Object:  Default [DF_KS_CourseChat_Status]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseChat] ADD  CONSTRAINT [DF_KS_CourseChat_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_CourseChat_parentID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseChat] ADD  CONSTRAINT [DF_KS_CourseChat_parentID]  DEFAULT ((0)) FOR [ParentID]
GO
/****** Object:  Default [DF_KS_CourseChat_IsPublic]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseChat] ADD  CONSTRAINT [DF_KS_CourseChat_IsPublic]  DEFAULT ((0)) FOR [IsPublic]
GO
/****** Object:  Default [DF_KS_CourseChat_ZanNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseChat] ADD  CONSTRAINT [DF_KS_CourseChat_ZanNum]  DEFAULT ((0)) FOR [ZanNum]
GO
/****** Object:  Default [DF_KS_CourseChat_PostNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CourseChat] ADD  CONSTRAINT [DF_KS_CourseChat_PostNum]  DEFAULT ((0)) FOR [PostNum]
GO
/****** Object:  Default [DF_KS_Course_ClassID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_ClassID]  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF_KS_Course_Provinceid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_Provinceid]  DEFAULT ((0)) FOR [Provinceid]
GO
/****** Object:  Default [DF_KS_Course_Cityid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_Cityid]  DEFAULT ((0)) FOR [Cityid]
GO
/****** Object:  Default [DF_KS_Course_CountyId]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_CountyId]  DEFAULT ((0)) FOR [CountyId]
GO
/****** Object:  Default [DF_KS_Course_PeriodID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_PeriodID]  DEFAULT ((0)) FOR [PeriodID]
GO
/****** Object:  Default [DF_KS_Course_TeacherID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_TeacherID]  DEFAULT ((0)) FOR [TeacherID]
GO
/****** Object:  Default [DF_KS_Course_Money]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_Money]  DEFAULT ((0)) FOR [Money]
GO
/****** Object:  Default [DF_KS_Course_Price_Member]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_Price_Member]  DEFAULT ((0)) FOR [Price_Member]
GO
/****** Object:  Default [DF_KS_Course_IsExam]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_IsExam]  DEFAULT ((0)) FOR [IsExam]
GO
/****** Object:  Default [DF_KS_Course_Recommend]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_Recommend]  DEFAULT ((0)) FOR [Recommend]
GO
/****** Object:  Default [DF_KS_Course_popular]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_popular]  DEFAULT ((0)) FOR [popular]
GO
/****** Object:  Default [DF_KS_Course_comment]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_comment]  DEFAULT ((0)) FOR [comment]
GO
/****** Object:  Default [DF_KS_Course_istop]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_istop]  DEFAULT ((0)) FOR [istop]
GO
/****** Object:  Default [DF_KS_Course_addTime]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_addTime]  DEFAULT (getdate()) FOR [addTime]
GO
/****** Object:  Default [DF_KS_Course_Verify]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_Verify]  DEFAULT ((0)) FOR [Verify]
GO
/****** Object:  Default [DF_KS_Course_Huandeng]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_Huandeng]  DEFAULT ((0)) FOR [Huandeng]
GO
/****** Object:  Default [DF_KS_Course_IsTemplate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_IsTemplate]  DEFAULT ((0)) FOR [IsTemplate]
GO
/****** Object:  Default [DF_KS_Course_CountPid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_CountPid]  DEFAULT ((0)) FOR [CountPid]
GO
/****** Object:  Default [DF_KS_Course_tryout]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_tryout]  DEFAULT ((0)) FOR [tryout]
GO
/****** Object:  Default [DF_KS_Course_BeginTime]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_BeginTime]  DEFAULT (getdate()) FOR [BeginTime]
GO
/****** Object:  Default [DF_KS_Course_EndTime]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_EndTime]  DEFAULT (getdate()) FOR [EndTime]
GO
/****** Object:  Default [DF_KS_Course_is3g]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_is3g]  DEFAULT ((0)) FOR [is3g]
GO
/****** Object:  Default [DF_KS_Course_IsFree]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_IsFree]  DEFAULT ((0)) FOR [IsFree]
GO
/****** Object:  Default [DF_KS_Course_buycount]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_buycount]  DEFAULT ((0)) FOR [buycount]
GO
/****** Object:  Default [DF_KS_Course_lookcount]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_lookcount]  DEFAULT ((0)) FOR [lookcount]
GO
/****** Object:  Default [DF_KS_Course_coursepf]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_coursepf]  DEFAULT ((0)) FOR [coursepf]
GO
/****** Object:  Default [DF_KS_Course_regulations]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_regulations]  DEFAULT ((0)) FOR [regulations]
GO
/****** Object:  Default [DF_KS_Course_IsOtherTc]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_IsOtherTc]  DEFAULT ((0)) FOR [IsOtherTc]
GO
/****** Object:  Default [DF_KS_Course_isBind]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_isBind]  DEFAULT ((0)) FOR [isBind]
GO
/****** Object:  Default [DF_KS_Course_ISLoad]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_ISLoad]  DEFAULT ((0)) FOR [ISLoad]
GO
/****** Object:  Default [DF_KS_Course_FixedPrice]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_FixedPrice]  DEFAULT ((0)) FOR [FixedPrice]
GO
/****** Object:  Default [DF_KS_Course_GradeId]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_GradeId]  DEFAULT ((0)) FOR [GradeId]
GO
/****** Object:  Default [DF_KS_Course_Promotion]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_Promotion]  DEFAULT ((0)) FOR [Promotion]
GO
/****** Object:  Default [DF_KS_Course_Limited]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_Limited]  DEFAULT ((0)) FOR [Limited]
GO
/****** Object:  Default [DF_KS_Course_PanicMoney]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_PanicMoney]  DEFAULT ((0)) FOR [PanicMoney]
GO
/****** Object:  Default [DF_KS_Course_jifen]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_jifen]  DEFAULT ((0)) FOR [jifen]
GO
/****** Object:  Default [DF_KS_Course_shixian]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_shixian]  DEFAULT ((0)) FOR [shixian]
GO
/****** Object:  Default [DF_KS_Course_buylimit]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_buylimit]  DEFAULT ((0)) FOR [buylimit]
GO
/****** Object:  Default [DF_KS_Course_system]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_system]  DEFAULT ((0)) FOR [system]
GO
/****** Object:  Default [DF_KS_Course_pfnum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_pfnum]  DEFAULT ((0)) FOR [pfnum]
GO
/****** Object:  Default [DF_KS_Course_Cashback]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_Cashback]  DEFAULT ((0)) FOR [Cashback]
GO
/****** Object:  Default [DF_KS_Course_IsOff]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_IsOff]  DEFAULT ((1)) FOR [IsOff]
GO
/****** Object:  Default [DF_KS_Course_EffectiveDay]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_EffectiveDay]  DEFAULT ((0)) FOR [EffectiveDay]
GO
/****** Object:  Default [DF_KS_Course_CollectCount]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_CollectCount]  DEFAULT ((0)) FOR [CollectCount]
GO
/****** Object:  Default [DF_KS_Course_IsRefresh]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_IsRefresh]  DEFAULT ((0)) FOR [IsRefresh]
GO
/****** Object:  Default [DF_KS_Course_IsPeriod]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_IsPeriod]  DEFAULT ((1)) FOR [IsPeriod]
GO
/****** Object:  Default [DF_KS_Course_LearnLimitDate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_LearnLimitDate]  DEFAULT (getdate()) FOR [LearnLimitDate]
GO
/****** Object:  Default [DF_KS_Course_LimitLearn]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_LimitLearn]  DEFAULT ((0)) FOR [LimitLearn]
GO
/****** Object:  Default [DF_KS_Course_RecScore]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_RecScore]  DEFAULT ((0)) FOR [RecScore]
GO
/****** Object:  Default [DF_KS_Course_PingTaiRat]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_PingTaiRat]  DEFAULT ((0)) FOR [PingTaiRate]
GO
/****** Object:  Default [DF_KS_Course_ProviceRate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_ProviceRate]  DEFAULT ((0)) FOR [ProviceRate]
GO
/****** Object:  Default [DF_KS_Course_LiveType]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_LiveType]  DEFAULT ((0)) FOR [LiveType]
GO
/****** Object:  Default [DF_KS_Course_AccountID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_AccountID]  DEFAULT ((0)) FOR [AccountID]
GO
/****** Object:  Default [DF_KS_Course_LiveState]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_LiveState]  DEFAULT ((0)) FOR [LiveState]
GO
/****** Object:  Default [DF_KS_Course_wlink]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_wlink]  DEFAULT ((0)) FOR [wlink]
GO
/****** Object:  Default [DF_KS_Course_limithours]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_limithours]  DEFAULT ((0)) FOR [limithours]
GO
/****** Object:  Default [DF_KS_Course_IsReChargeSj]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_IsReChargeSj]  DEFAULT ((0)) FOR [IsReChargeSj]
GO
/****** Object:  Default [DF_KS_Course_SchoolID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_SchoolID]  DEFAULT ((0)) FOR [SchoolID]
GO
/****** Object:  Default [DF_KS_Course_TeacherNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_TeacherNum]  DEFAULT ((0)) FOR [TeacherNum]
GO
/****** Object:  Default [DF_KS_Course_SjNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_SjNum]  DEFAULT ((0)) FOR [SjNum]
GO
/****** Object:  Default [DF_KS_Course_PropNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_PropNum]  DEFAULT ((0)) FOR [PropNum]
GO
/****** Object:  Default [DF_KS_Course_ChatNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_ChatNum]  DEFAULT ((0)) FOR [ChatNum]
GO
/****** Object:  Default [DF_KS_Course_ZlNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_ZlNum]  DEFAULT ((0)) FOR [ZlNum]
GO
/****** Object:  Default [DF_KS_Course_StudentNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_StudentNum]  DEFAULT ((0)) FOR [StudentNum]
GO
/****** Object:  Default [DF_KS_Course_PjNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_PjNum]  DEFAULT ((0)) FOR [PjNum]
GO
/****** Object:  Default [DF_KS_Course_totalz]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_totalz]  DEFAULT ((0)) FOR [totalz]
GO
/****** Object:  Default [DF_KS_Course_totalc]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_totalc]  DEFAULT ((0)) FOR [totalc]
GO
/****** Object:  Default [DF_KS_Course_chargeperiod]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_chargeperiod]  DEFAULT ((0)) FOR [chargeperiod]
GO
/****** Object:  Default [DF_KS_Course_receivedDay]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_receivedDay]  DEFAULT ((0)) FOR [receivedDay]
GO
/****** Object:  Default [DF__KS_Course__IsSen__7AE8B304]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF__KS_Course__IsSen__7AE8B304]  DEFAULT ((0)) FOR [IsSendNote]
GO
/****** Object:  Default [DF__KS_Course__NoteP__7BDCD73D]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF__KS_Course__NoteP__7BDCD73D]  DEFAULT ((0)) FOR [NotePrice]
GO
/****** Object:  Default [DF__KS_Course__IsCon__14A88507]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF__KS_Course__IsCon__14A88507]  DEFAULT ((0)) FOR [IsContainTax]
GO
/****** Object:  Default [DF_KS_Course_IsCommentPermit]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_IsCommentPermit]  DEFAULT ((1)) FOR [IsCommentPermit]
GO
/****** Object:  Default [DF_KS_Course_IsRefund]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_Course] ADD  CONSTRAINT [DF_KS_Course_IsRefund]  DEFAULT ((0)) FOR [IsRefund]
GO
/****** Object:  Default [DF_KS_CosZlLog_ZlId]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosZlLog] ADD  CONSTRAINT [DF_KS_CosZlLog_ZlId]  DEFAULT ((0)) FOR [ZlId]
GO
/****** Object:  Default [DF_KS_CosZlLog_adddate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosZlLog] ADD  CONSTRAINT [DF_KS_CosZlLog_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_CosZl_OrderID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosZl] ADD  CONSTRAINT [DF_KS_CosZl_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_KS_CosZl_IsPublic]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosZl] ADD  CONSTRAINT [DF_KS_CosZl_IsPublic]  DEFAULT ((0)) FOR [IsPublic]
GO
/****** Object:  Default [DF_KS_CosZl_AddDate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosZl] ADD  CONSTRAINT [DF_KS_CosZl_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_CosZl_hits]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosZl] ADD  CONSTRAINT [DF_KS_CosZl_hits]  DEFAULT ((0)) FOR [hits]
GO
/****** Object:  Default [DF_KS_CosZl_downs]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosZl] ADD  CONSTRAINT [DF_KS_CosZl_downs]  DEFAULT ((0)) FOR [download]
GO
/****** Object:  Default [DF_KS_CosZl_score]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosZl] ADD  CONSTRAINT [DF_KS_CosZl_score]  DEFAULT ((0)) FOR [score]
GO
/****** Object:  Default [DF_KS_CosZl_verify]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosZl] ADD  CONSTRAINT [DF_KS_CosZl_verify]  DEFAULT ((0)) FOR [verify]
GO
/****** Object:  Default [DF_KS_CosZl_page]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosZl] ADD  CONSTRAINT [DF_KS_CosZl_page]  DEFAULT ((0)) FOR [page]
GO
/****** Object:  Default [DF_KS_CosZl_totalpage]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosZl] ADD  CONSTRAINT [DF_KS_CosZl_totalpage]  DEFAULT ((0)) FOR [totalpage]
GO
/****** Object:  Default [DF_KS_CosZl_prices]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosZl] ADD  CONSTRAINT [DF_KS_CosZl_prices]  DEFAULT ((0)) FOR [prices]
GO
/****** Object:  Default [DF_KS_CosZl_size]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosZl] ADD  CONSTRAINT [DF_KS_CosZl_size]  DEFAULT ((0)) FOR [size]
GO
/****** Object:  Default [DF_KS_CosZl_type]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosZl] ADD  CONSTRAINT [DF_KS_CosZl_type]  DEFAULT ((0)) FOR [type]
GO
/****** Object:  Default [DF_KS_CosVideoAdvertise_AdvertiseType]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosVideoAdvertise] ADD  CONSTRAINT [DF_KS_CosVideoAdvertise_AdvertiseType]  DEFAULT ((1)) FOR [AdvertiseType]
GO
/****** Object:  Default [DF_KS_CosVideoAdvertise_size]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosVideoAdvertise] ADD  CONSTRAINT [DF_KS_CosVideoAdvertise_size]  DEFAULT ((0)) FOR [size]
GO
/****** Object:  Default [DF_KS_CosVideoAdvertise_startDate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosVideoAdvertise] ADD  CONSTRAINT [DF_KS_CosVideoAdvertise_startDate]  DEFAULT (getdate()) FOR [startDate]
GO
/****** Object:  Default [DF_KS_CosVideoAdvertise_endDate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosVideoAdvertise] ADD  CONSTRAINT [DF_KS_CosVideoAdvertise_endDate]  DEFAULT (getdate()) FOR [endDate]
GO
/****** Object:  Default [DF_KS_CosVideoAdvertise_status]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosVideoAdvertise] ADD  CONSTRAINT [DF_KS_CosVideoAdvertise_status]  DEFAULT ((10)) FOR [status]
GO
/****** Object:  Default [DF_KS_CosVideoAdvertise_VideoType]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosVideoAdvertise] ADD  CONSTRAINT [DF_KS_CosVideoAdvertise_VideoType]  DEFAULT ((5)) FOR [VideoType]
GO
/****** Object:  Default [DF_KS_CosVideoAdvertise_AddDate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosVideoAdvertise] ADD  CONSTRAINT [DF_KS_CosVideoAdvertise_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_TeacherScore_UserID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherScore] ADD  CONSTRAINT [DF_KS_TeacherScore_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_TeacherScore_Score]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherScore] ADD  CONSTRAINT [DF_KS_TeacherScore_Score]  DEFAULT ((0)) FOR [Score]
GO
/****** Object:  Default [DF_KS_TeacherScore_CurrentScore]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherScore] ADD  CONSTRAINT [DF_KS_TeacherScore_CurrentScore]  DEFAULT ((0)) FOR [CurrentScore]
GO
/****** Object:  Default [DF_KS_CosTeacherScore_AddDate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherScore] ADD  CONSTRAINT [DF_KS_CosTeacherScore_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_TeacherScore_CaozuoType]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherScore] ADD  CONSTRAINT [DF_KS_TeacherScore_CaozuoType]  DEFAULT ((1)) FOR [CaozuoType]
GO
/****** Object:  Default [DF_KS_TeacherScore_RecordID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherScore] ADD  CONSTRAINT [DF_KS_TeacherScore_RecordID]  DEFAULT ((0)) FOR [RecordID]
GO
/****** Object:  Default [DF_KS_CosTeacherPJ_UserID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherPJ] ADD  CONSTRAINT [DF_KS_CosTeacherPJ_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_CosTeacherPJ_PJstar]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherPJ] ADD  CONSTRAINT [DF_KS_CosTeacherPJ_PJstar]  DEFAULT ((0)) FOR [PJstar]
GO
/****** Object:  Default [DF_KS_CosTeacherPJ_tcID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherPJ] ADD  CONSTRAINT [DF_KS_CosTeacherPJ_tcID]  DEFAULT ((0)) FOR [tcID]
GO
/****** Object:  Default [DF_KS_CosTeacherPJ_PJdate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherPJ] ADD  CONSTRAINT [DF_KS_CosTeacherPJ_PJdate]  DEFAULT (getdate()) FOR [PJdate]
GO
/****** Object:  Default [DF_KS_CosTeacherPJ_status]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherPJ] ADD  CONSTRAINT [DF_KS_CosTeacherPJ_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF_KS_CosTeacherPJ_del]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherPJ] ADD  CONSTRAINT [DF_KS_CosTeacherPJ_del]  DEFAULT ((0)) FOR [del]
GO
/****** Object:  Default [DF_KS_CosCertificate_AddDate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherCertificate] ADD  CONSTRAINT [DF_KS_CosCertificate_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_CosCertificate_Verify]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherCertificate] ADD  CONSTRAINT [DF_KS_CosCertificate_Verify]  DEFAULT ((0)) FOR [Verify]
GO
/****** Object:  Default [DF_KS_CosCertificate_Flag]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherCertificate] ADD  CONSTRAINT [DF_KS_CosCertificate_Flag]  DEFAULT ((1)) FOR [Flag]
GO
/****** Object:  Default [DF_KS_CosCertificate_UserID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherCertificate] ADD  CONSTRAINT [DF_KS_CosCertificate_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_CosCertificate_TcID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherCertificate] ADD  CONSTRAINT [DF_KS_CosCertificate_TcID]  DEFAULT ((0)) FOR [TcID]
GO
/****** Object:  Default [DF_KS_CosTeacherCertificate_VerifyTime]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacherCertificate] ADD  CONSTRAINT [DF_KS_CosTeacherCertificate_VerifyTime]  DEFAULT (getdate()) FOR [VerifyTime]
GO
/****** Object:  Default [DF_KS_CosTeacher_Provinceid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_Provinceid]  DEFAULT ((0)) FOR [Provinceid]
GO
/****** Object:  Default [DF_KS_CosTeacher_Cityid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_Cityid]  DEFAULT ((0)) FOR [Cityid]
GO
/****** Object:  Default [DF_KS_CosTeacher_CourseID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_CourseID]  DEFAULT ((0)) FOR [CourseID]
GO
/****** Object:  Default [DF_KS_CosTeacher_sex]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_sex]  DEFAULT ((0)) FOR [sex]
GO
/****** Object:  Default [DF_KS_CosTeacher_verify]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_verify]  DEFAULT ((0)) FOR [verify]
GO
/****** Object:  Default [DF_KS_CosTeacher_adddate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_CosTeacher_UserID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_CosTeacher_SchoolID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_SchoolID]  DEFAULT ((0)) FOR [SchoolID]
GO
/****** Object:  Default [DF_KS_CosTeacher_Grade]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_Grade]  DEFAULT ((1)) FOR [Grade]
GO
/****** Object:  Default [DF_KS_CosTeacher_OrderTotal]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_OrderTotal]  DEFAULT ((0)) FOR [OrderTotal]
GO
/****** Object:  Default [DF_KS_CosTeacher_CourseTotal]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_CourseTotal]  DEFAULT ((0)) FOR [CourseTotal]
GO
/****** Object:  Default [DF_KS_CosTeacher_AskTotal]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_AskTotal]  DEFAULT ((0)) FOR [AskTotal]
GO
/****** Object:  Default [DF_KS_CosTeacher_AnswerTotal]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_AnswerTotal]  DEFAULT ((0)) FOR [AnswerTotal]
GO
/****** Object:  Default [DF_KS_CosTeacher_CountyId]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_CountyId]  DEFAULT ((0)) FOR [CountyId]
GO
/****** Object:  Default [DF_KS_CosTeacher_GradeId]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_GradeId]  DEFAULT ((0)) FOR [GradeId]
GO
/****** Object:  Default [DF_KS_CosTeacher_SubjectId]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_SubjectId]  DEFAULT ((0)) FOR [SubjectId]
GO
/****** Object:  Default [DF_KS_CosTeacher_system]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_system]  DEFAULT ((0)) FOR [system]
GO
/****** Object:  Default [DF_KS_CosTeacher_totalPJ]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_totalPJ]  DEFAULT ((0)) FOR [totalPJ]
GO
/****** Object:  Default [DF_KS_CosTeacher_MessageCount]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_MessageCount]  DEFAULT ((0)) FOR [MessageCount]
GO
/****** Object:  Default [DF_KS_CosTeacher_PJCount]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_PJCount]  DEFAULT ((0)) FOR [PJCount]
GO
/****** Object:  Default [DF_KS_CosTeacher_PJRate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_PJRate]  DEFAULT ((0)) FOR [PJRate]
GO
/****** Object:  Default [DF_KS_CosTeacher_IsRecommend]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_IsRecommend]  DEFAULT ((0)) FOR [IsRecommend]
GO
/****** Object:  Default [DF_KS_CosTeacher_LookCount]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_LookCount]  DEFAULT ((0)) FOR [LookCount]
GO
/****** Object:  Default [DF_KS_CosTeacher_totalc]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_totalc]  DEFAULT ((0)) FOR [totalc]
GO
/****** Object:  Default [DF_KS_CosTeacher_totalz]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_totalz]  DEFAULT ((0)) FOR [totalz]
GO
/****** Object:  Default [DF_KS_CosTeacher_midrate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_midrate]  DEFAULT ((0)) FOR [midrate]
GO
/****** Object:  Default [DF_KS_CosTeacher_badrate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_badrate]  DEFAULT ((0)) FOR [badrate]
GO
/****** Object:  Default [DF_KS_CosTeacher_IsRefresh]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_IsRefresh]  DEFAULT ((0)) FOR [IsRefresh]
GO
/****** Object:  Default [DF_KS_CosTeacher_CreditScore]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_CreditScore]  DEFAULT ((0)) FOR [CreditScore]
GO
/****** Object:  Default [DF_KS_CosTeacher_ScoreItemID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_ScoreItemID]  DEFAULT ((0)) FOR [ScoreItemID]
GO
/****** Object:  Default [DF_KS_CosTeacher_DuanXinTiaoShu]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_DuanXinTiaoShu]  DEFAULT ((0)) FOR [DuanXinTiaoShu]
GO
/****** Object:  Default [DF_KS_CosTeacher_SMSTotal]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_SMSTotal]  DEFAULT ((0)) FOR [SMSTotal]
GO
/****** Object:  Default [DF_KS_CosTeacher_XueLiNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_XueLiNum]  DEFAULT ((0)) FOR [XueLiNum]
GO
/****** Object:  Default [DF_KS_CosTeacher_ZhiYeNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_ZhiYeNum]  DEFAULT ((0)) FOR [ZhiYeNum]
GO
/****** Object:  Default [DF__KS_CosTea__Total__5026DB83]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  DEFAULT ((0)) FOR [TotalSale]
GO
/****** Object:  Default [DF_KS_CosTeacher_DivideInto]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_DivideInto]  DEFAULT ((0)) FOR [DivideInto]
GO
/****** Object:  Default [DF_KS_CosTeacher_Withdrawals]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosTeacher] ADD  CONSTRAINT [DF_KS_CosTeacher_Withdrawals]  DEFAULT ((0)) FOR [Withdrawals]
GO
/****** Object:  Default [DF_KS_CosSMSLog_AddDate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosSMSLog] ADD  CONSTRAINT [DF_KS_CosSMSLog_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_CosSMSLog_IsSuccess]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosSMSLog] ADD  CONSTRAINT [DF_KS_CosSMSLog_IsSuccess]  DEFAULT ((0)) FOR [IsSuccess]
GO
/****** Object:  Default [DF_KS_CosSMSLog_Status]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosSMSLog] ADD  CONSTRAINT [DF_KS_CosSMSLog_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_CourseID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_CourseID]  DEFAULT ((0)) FOR [CourseID]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_Price_1]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_Price_1]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_IsAnonymous]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_IsAnonymous]  DEFAULT ((0)) FOR [IsAnonymous]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_IsChangeBuy]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_IsChangeBuy]  DEFAULT ((0)) FOR [IsChangeBuy]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_IsLimitBuy]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_IsLimitBuy]  DEFAULT ((0)) FOR [IsLimitBuy]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_LimitBuyTaskID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_LimitBuyTaskID]  DEFAULT ((0)) FOR [LimitBuyTaskID]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_AttrID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_AttrID]  DEFAULT ((0)) FOR [AttrID]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_flag]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_flag]  DEFAULT ((0)) FOR [flag]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_shixian]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_shixian]  DEFAULT ((365)) FOR [shixian]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_IsNumber]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_IsNumber]  DEFAULT ((0)) FOR [IsNumber]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_ctityid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_ctityid]  DEFAULT ((0)) FOR [cityid]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_BundleSaleCourseID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_BundleSaleCourseID]  DEFAULT ((0)) FOR [BundleSaleCourseID]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_Cashback]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_Cashback]  DEFAULT ((0)) FOR [Cashback]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_EffectiveDay]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_EffectiveDay]  DEFAULT ((0)) FOR [EffectiveDay]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_orderScore]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_orderScore]  DEFAULT ((0)) FOR [orderScore]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_RecScore]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_RecScore]  DEFAULT ((0)) FOR [RecScore]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_PingTaiRate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_PingTaiRate]  DEFAULT ((0)) FOR [PingTaiRate]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_ProviceRate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_ProviceRate]  DEFAULT ((0)) FOR [ProviceRate]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_CityRate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_CityRate]  DEFAULT ((0)) FOR [CityRate]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_proportionPT]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_proportionPT]  DEFAULT ((0)) FOR [proportionPT]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_proportionPr]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_proportionPr]  DEFAULT ((0)) FOR [proportionPr]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_proportionCt]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_proportionCt]  DEFAULT ((0)) FOR [proportionCt]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_teachway]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_teachway]  DEFAULT ((1)) FOR [bindtype]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_limilearn]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_limilearn]  DEFAULT ((0)) FOR [limitlearn]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_SchoolID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_SchoolID]  DEFAULT ((0)) FOR [SchoolID]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_Num]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_Num]  DEFAULT ((0)) FOR [OrderFlag]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_cosType]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_cosType]  DEFAULT ((0)) FOR [OrderPromotion]
GO
/****** Object:  Default [DF_KS_CosShoppingCart_UserID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosShoppingCart] ADD  CONSTRAINT [DF_KS_CosShoppingCart_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_CosPropItem_Courseid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPropItem] ADD  CONSTRAINT [DF_KS_CosPropItem_Courseid]  DEFAULT ((0)) FOR [Courseid]
GO
/****** Object:  Default [DF_KS_CosPropItem_Lessonid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPropItem] ADD  CONSTRAINT [DF_KS_CosPropItem_Lessonid]  DEFAULT ((0)) FOR [Lessonid]
GO
/****** Object:  Default [DF_KS_CosPropItem_Proptype]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPropItem] ADD  CONSTRAINT [DF_KS_CosPropItem_Proptype]  DEFAULT ((0)) FOR [Proptype]
GO
/****** Object:  Default [DF_KS_CosPropItem_Propid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPropItem] ADD  CONSTRAINT [DF_KS_CosPropItem_Propid]  DEFAULT ((0)) FOR [Propid]
GO
/****** Object:  Default [DF_KS_CosPropItem_Times]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPropItem] ADD  CONSTRAINT [DF_KS_CosPropItem_Times]  DEFAULT ((0)) FOR [Times]
GO
/****** Object:  Default [DF_KS_CosPropItem_Userid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPropItem] ADD  CONSTRAINT [DF_KS_CosPropItem_Userid]  DEFAULT ((0)) FOR [Userid]
GO
/****** Object:  Default [DF_KS_CosPropItem_qiangtype]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPropItem] ADD  CONSTRAINT [DF_KS_CosPropItem_qiangtype]  DEFAULT ((0)) FOR [QiangType]
GO
/****** Object:  Default [DF_KS_CosPropItem_adddate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPropItem] ADD  CONSTRAINT [DF_KS_CosPropItem_adddate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_CosPropItem_gametype]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPropItem] ADD  CONSTRAINT [DF_KS_CosPropItem_gametype]  DEFAULT ((0)) FOR [GameType]
GO
/****** Object:  Default [DF_KS_CosPropItem_CourseType]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPropItem] ADD  CONSTRAINT [DF_KS_CosPropItem_CourseType]  DEFAULT ((0)) FOR [CourseType]
GO
/****** Object:  Default [DF_KS_CosProp_Courseid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosProp] ADD  CONSTRAINT [DF_KS_CosProp_Courseid]  DEFAULT ((0)) FOR [Courseid]
GO
/****** Object:  Default [DF_KS_CosProp_Type]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosProp] ADD  CONSTRAINT [DF_KS_CosProp_Type]  DEFAULT ((0)) FOR [Type]
GO
/****** Object:  Default [DF_KS_CosProp_Bindid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosProp] ADD  CONSTRAINT [DF_KS_CosProp_Bindid]  DEFAULT ((0)) FOR [Bindid]
GO
/****** Object:  Default [DF_KS_CosProp_Times]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosProp] ADD  CONSTRAINT [DF_KS_CosProp_Times]  DEFAULT ((0)) FOR [Times]
GO
/****** Object:  Default [DF_KS_CosProp_Worknum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosProp] ADD  CONSTRAINT [DF_KS_CosProp_Worknum]  DEFAULT ((0)) FOR [Worknum]
GO
/****** Object:  Default [DF_KS_CosProp_Addtime]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosProp] ADD  CONSTRAINT [DF_KS_CosProp_Addtime]  DEFAULT (getdate()) FOR [Addtime]
GO
/****** Object:  Default [DF_KS_CosProp_Userid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosProp] ADD  CONSTRAINT [DF_KS_CosProp_Userid]  DEFAULT ((0)) FOR [Userid]
GO
/****** Object:  Default [DF_KS_CosProp_Loadtype]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosProp] ADD  CONSTRAINT [DF_KS_CosProp_Loadtype]  DEFAULT ((0)) FOR [Loadtype]
GO
/****** Object:  Default [DF_KS_CosProp_Videostatus]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosProp] ADD  CONSTRAINT [DF_KS_CosProp_Videostatus]  DEFAULT ((0)) FOR [Videostatus]
GO
/****** Object:  Default [DF_KS_CosProp_Seekstatus]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosProp] ADD  CONSTRAINT [DF_KS_CosProp_Seekstatus]  DEFAULT ((0)) FOR [Seekstatus]
GO
/****** Object:  Default [DF_KS_CosProp_CourseType]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosProp] ADD  CONSTRAINT [DF_KS_CosProp_CourseType]  DEFAULT ((0)) FOR [CourseType]
GO
/****** Object:  Default [DF_KS_CosPeriod_CourseID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_CourseID]  DEFAULT ((0)) FOR [CourseID]
GO
/****** Object:  Default [DF_KS_CosPeriod_IsFree]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_IsFree]  DEFAULT ((0)) FOR [IsFree]
GO
/****** Object:  Default [DF_KS_CosPeriod_IsExample]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_IsExample]  DEFAULT ((0)) FOR [IsExample]
GO
/****** Object:  Default [DF_KS_CosPeriod_timeCount]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_timeCount]  DEFAULT ((0)) FOR [timeCount]
GO
/****** Object:  Default [DF_KS_CosPeriod_parentid]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_parentid]  DEFAULT ((0)) FOR [parentid]
GO
/****** Object:  Default [DF_KS_CosPeriod_addtype]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_addtype]  DEFAULT ((0)) FOR [addtype]
GO
/****** Object:  Default [DF_KS_CosPeriod_root]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_root]  DEFAULT ((0)) FOR [root]
GO
/****** Object:  Default [DF_KS_CosPeriod_child]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_child]  DEFAULT ((0)) FOR [child]
GO
/****** Object:  Default [DF_KS_CosPeriod_depth]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_depth]  DEFAULT ((0)) FOR [depth]
GO
/****** Object:  Default [DF_KS_CosPeriod_type]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_type]  DEFAULT ((0)) FOR [type]
GO
/****** Object:  Default [DF_KS_CosPeriod_IsExam]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_IsExam]  DEFAULT ((0)) FOR [IsExam]
GO
/****** Object:  Default [DF_KS_CosPeriod_jifen]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_jifen]  DEFAULT ((0)) FOR [jifen]
GO
/****** Object:  Default [DF_KS_CosPeriod_IsrRpeat]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_IsrRpeat]  DEFAULT ((0)) FOR [IsRepeat]
GO
/****** Object:  Default [DF_KS_CosPeriod_money]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_money]  DEFAULT ((0)) FOR [money]
GO
/****** Object:  Default [DF_KS_CosPeriod_IsThreeScreen]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_IsThreeScreen]  DEFAULT ((0)) FOR [IsThreeScreen]
GO
/****** Object:  Default [DF_KS_CosPeriod_IsListening]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_IsListening]  DEFAULT ((0)) FOR [IsListening]
GO
/****** Object:  Default [DF_KS_CosPeriod_ListeningSeconds]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_ListeningSeconds]  DEFAULT ((0)) FOR [ListeningSeconds]
GO
/****** Object:  Default [DF_KS_CosPeriod_ban_seek_by_limit_time]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_ban_seek_by_limit_time]  DEFAULT ((0)) FOR [ban_seek]
GO
/****** Object:  Default [DF_KS_CosPeriod_limitlearnTime]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_limitlearnTime]  DEFAULT ((0)) FOR [limitlearnTime]
GO
/****** Object:  Default [DF_KS_CosPeriod_limitlearn]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosPeriod] ADD  CONSTRAINT [DF_KS_CosPeriod_limitlearn]  DEFAULT ((0)) FOR [limitlearn]
GO
/****** Object:  Default [DF__KS_CosOrd__Money__17AD7836]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderReturn] ADD  DEFAULT ((0)) FOR [Money]
GO
/****** Object:  Default [DF__KS_CosOrd__Money__18A19C6F]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderReturn] ADD  DEFAULT ((0)) FOR [MoneyType]
GO
/****** Object:  Default [DF__KS_CosOrd__Statu__1995C0A8]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderReturn] ADD  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF__KS_CosOrd__Statu__1A89E4E1]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderLog] ADD  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_CosOrderItem_Price_Market]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_CosOrderItem_Price_Market]  DEFAULT ((0)) FOR [Price_Market]
GO
/****** Object:  Default [DF_KS_CosOrderItem_Price]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_CosOrderItem_Price]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF_KS_COSOrderItem_OrderTotalPrice]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_OrderTotalPrice]  DEFAULT ((0)) FOR [OrderTotalPrice]
GO
/****** Object:  Default [DF__KS_CosOrd__NoteP__22F6A45E]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF__KS_CosOrd__NoteP__22F6A45E]  DEFAULT ((0)) FOR [NotePrice]
GO
/****** Object:  Default [DF__KS_COSOrd__Freig__2D687A82]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF__KS_COSOrd__Freig__2D687A82]  DEFAULT ((0)) FOR [Freight]
GO
/****** Object:  Default [DF__KS_CosOrd__TaxPr__23EAC897]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF__KS_CosOrd__TaxPr__23EAC897]  DEFAULT ((0)) FOR [TaxPrice]
GO
/****** Object:  Default [DF_KS_CosOrderItem_num]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_CosOrderItem_num]  DEFAULT ((0)) FOR [num]
GO
/****** Object:  Default [DF_KS_CosOrderItem_TotalPrice]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_CosOrderItem_TotalPrice]  DEFAULT ((0)) FOR [TotalPrice]
GO
/****** Object:  Default [DF_KS_COSOrderItem_IsNumber]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_IsNumber]  DEFAULT ((0)) FOR [IsNumber]
GO
/****** Object:  Default [DF_KS_COSOrderItem_shixian]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_shixian]  DEFAULT ((0)) FOR [shixian]
GO
/****** Object:  Default [DF_KS_COSOrderItem_UserID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_COSOrderItem_IsPJ]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_IsPJ]  DEFAULT ((0)) FOR [IsPJ]
GO
/****** Object:  Default [DF_KS_COSOrderItem_PayDiscountMoney]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_PayDiscountMoney]  DEFAULT ((0)) FOR [PayDiscountMoney]
GO
/****** Object:  Default [DF_KS_COSOrderItem_EffectiveDay]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_EffectiveDay]  DEFAULT ((0)) FOR [EffectiveDay]
GO
/****** Object:  Default [DF_KS_CosOrderItem_IsChangedBuy]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_CosOrderItem_IsChangedBuy]  DEFAULT ((0)) FOR [IsChangeBuy]
GO
/****** Object:  Default [DF_KS_CosOrderItem_LimitBuyTaskID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_CosOrderItem_LimitBuyTaskID]  DEFAULT ((0)) FOR [LimitBuyTaskID]
GO
/****** Object:  Default [DF_KS_CosOrderItem_IsLimitBuy]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_CosOrderItem_IsLimitBuy]  DEFAULT ((0)) FOR [IsLimitBuy]
GO
/****** Object:  Default [DF_KS_CosOrderItem_IsBundleSale]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_CosOrderItem_IsBundleSale]  DEFAULT ((0)) FOR [IsBundleSale]
GO
/****** Object:  Default [DF_KS_CosOrderItem_ChangeScore]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_CosOrderItem_ChangeScore]  DEFAULT ((0)) FOR [ChangeScore]
GO
/****** Object:  Default [DF__KS_COSOrd__Freig__2E5C9EBB]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF__KS_COSOrd__Freig__2E5C9EBB]  DEFAULT ((0)) FOR [FreightType]
GO
/****** Object:  Default [DF__KS_COSOrd__CityI__2F50C2F4]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF__KS_COSOrd__CityI__2F50C2F4]  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF__KS_COSOrd__price__3044E72D]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF__KS_COSOrd__price__3044E72D]  DEFAULT ((0)) FOR [price_cost]
GO
/****** Object:  Default [DF_KS_CosOrderItem_IsCmt]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_CosOrderItem_IsCmt]  DEFAULT ((0)) FOR [IsCmt]
GO
/****** Object:  Default [DF_KS_COSOrderItem_Status]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_COSOrderItem_RecScore]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_RecScore]  DEFAULT ((0)) FOR [RecScore]
GO
/****** Object:  Default [DF_KS_COSOrderItem_PingTaiRate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_PingTaiRate]  DEFAULT ((0)) FOR [PingTaiRate]
GO
/****** Object:  Default [DF_KS_COSOrderItem_ProviceRate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_ProviceRate]  DEFAULT ((0)) FOR [ProviceRate]
GO
/****** Object:  Default [DF_KS_COSOrderItem_CityRate]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_CityRate]  DEFAULT ((0)) FOR [CityRate]
GO
/****** Object:  Default [DF_KS_COSOrderItem_proportionPT]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_proportionPT]  DEFAULT ((0)) FOR [proportionPT]
GO
/****** Object:  Default [DF_KS_COSOrderItem_proportionPr]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_proportionPr]  DEFAULT ((0)) FOR [proportionPr]
GO
/****** Object:  Default [DF_KS_COSOrderItem_proportionCt]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_proportionCt]  DEFAULT ((0)) FOR [proportionCt]
GO
/****** Object:  Default [DF_KS_COSOrderItem_bindtype]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_bindtype]  DEFAULT ((1)) FOR [bindtype]
GO
/****** Object:  Default [DF_KS_COSOrderItem_limitlearn]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_limitlearn]  DEFAULT ((0)) FOR [limitlearn]
GO
/****** Object:  Default [DF_KS_COSOrderItem_SchoolID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_SchoolID]  DEFAULT ((0)) FOR [SchoolID]
GO
/****** Object:  Default [DF_KS_COSOrderItem_parentID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_parentID]  DEFAULT ((0)) FOR [parentID]
GO
/****** Object:  Default [DF_KS_COSOrderItem_FreeOrder]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_COSOrderItem_FreeOrder]  DEFAULT ((0)) FOR [FreeOrder]
GO
/****** Object:  Default [DF__KS_CosOrd__ItemT__713F4D39]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF__KS_CosOrd__ItemT__713F4D39]  DEFAULT ((0)) FOR [ItemType]
GO
/****** Object:  Default [DF_KS_CosOrderItem_IsBuyAllCos]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_CosOrderItem_IsBuyAllCos]  DEFAULT ((1)) FOR [IsBuyAllCos]
GO
/****** Object:  Default [DF_KS_CosOrderItem_JiFen]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrderItem] ADD  CONSTRAINT [DF_KS_CosOrderItem_JiFen]  DEFAULT ((0)) FOR [JiFen]
GO
/****** Object:  Default [DF_KS_CosOrder_CartID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_CartID]  DEFAULT ((0)) FOR [CartID]
GO
/****** Object:  Default [DF_KS_CosOrder_UserID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_CosOrder_price]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_price]  DEFAULT ((0)) FOR [price]
GO
/****** Object:  Default [DF_KS_CosOrder_Freight]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_Freight]  DEFAULT ((0)) FOR [Freight]
GO
/****** Object:  Default [DF_KS_CosOrder_UseCouponMoney]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_UseCouponMoney]  DEFAULT ((0)) FOR [UseCouponMoney]
GO
/****** Object:  Default [DF_KS_CosOrder_UserHongBaoMoney]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_UserHongBaoMoney]  DEFAULT ((0)) FOR [UserHongBaoMoney]
GO
/****** Object:  Default [DF_KS_CosOrder_UserCahseMoney]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_UserCahseMoney]  DEFAULT ((0)) FOR [UserCahseMoney]
GO
/****** Object:  Default [DF_KS_CosOrder_PayDiscountMoney]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_PayDiscountMoney]  DEFAULT ((0)) FOR [PayDiscountMoney]
GO
/****** Object:  Default [DF_KS_CosOrder_Invoiced]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_Invoiced]  DEFAULT ((0)) FOR [IsInvoice]
GO
/****** Object:  Default [DF_KS_CosOrder_Invoiced_1]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_Invoiced_1]  DEFAULT ((0)) FOR [Invoiced]
GO
/****** Object:  Default [DF_KS_CosOrder_MoneyReceipt]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_MoneyReceipt]  DEFAULT ((0)) FOR [MoneyReceipt]
GO
/****** Object:  Default [DF__KS_CosOrd__NoteP__50BD6F0E]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF__KS_CosOrd__NoteP__50BD6F0E]  DEFAULT ((0)) FOR [NotePrice]
GO
/****** Object:  Default [DF_KS_CosOrder_InputTime]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_InputTime]  DEFAULT (getdate()) FOR [InputTime]
GO
/****** Object:  Default [DF_KS_CosOrder_Score]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_Score]  DEFAULT ((0)) FOR [OrderScore]
GO
/****** Object:  Default [DF_KS_CosOrder_ScoreTF]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_ScoreTF]  DEFAULT ((0)) FOR [ScoreTF]
GO
/****** Object:  Default [DF_KS_CosOrder_ProvinceID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_ProvinceID]  DEFAULT ((0)) FOR [ProvinceID]
GO
/****** Object:  Default [DF_KS_CosOrder_CityID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_CityID]  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF_KS_CosOrder_CountyID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_CountyID]  DEFAULT ((0)) FOR [CountyID]
GO
/****** Object:  Default [DF_KS_CosOrder_DeliverStatus]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_DeliverStatus]  DEFAULT ((0)) FOR [DeliverStatus]
GO
/****** Object:  Default [DF_KS_CosOrder_IsAnonymous]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_IsAnonymous]  DEFAULT ((0)) FOR [IsAnonymous]
GO
/****** Object:  Default [DF_KS_CosOrder_PaymentPlatId]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_PaymentPlatId]  DEFAULT ((0)) FOR [PaymentPlatId]
GO
/****** Object:  Default [DF_KS_CosOrder_PayStatus]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_PayStatus]  DEFAULT ((0)) FOR [PayStatus]
GO
/****** Object:  Default [DF_KS_CosOrder_SmsNum]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_SmsNum]  DEFAULT ((0)) FOR [SmsNum]
GO
/****** Object:  Default [DF_KS_CosOrder_IsTips]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_IsTips]  DEFAULT ((0)) FOR [IsTips]
GO
/****** Object:  Default [DF_KS_CosOrder_ChangeScore]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_ChangeScore]  DEFAULT ((0)) FOR [ChangeScore]
GO
/****** Object:  Default [DF_KS_CosOrder_AttrID]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_AttrID]  DEFAULT ((0)) FOR [AttrID]
GO
/****** Object:  Default [DF_KS_CosOrder_IsNumber]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_IsNumber]  DEFAULT ((0)) FOR [IsNumber]
GO
/****** Object:  Default [DF_KS_CosOrder_IsPJ]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_IsPJ]  DEFAULT ((0)) FOR [IsPJ]
GO
/****** Object:  Default [DF_KS_CosOrder_EffectiveDay]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_EffectiveDay]  DEFAULT ((0)) FOR [EffectiveDay]
GO
/****** Object:  Default [DF_KS_CosOrder_OrderDevice]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_OrderDevice]  DEFAULT ((0)) FOR [OrderDevice]
GO
/****** Object:  Default [DF_KS_CosOrder_RecScore]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_RecScore]  DEFAULT ((0)) FOR [RecScore]
GO
/****** Object:  Default [DF__KS_CosOrd__Marki__704B2900]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF__KS_CosOrd__Marki__704B2900]  DEFAULT ((0)) FOR [MarkingWay]
GO
/****** Object:  Default [DF__KS_CosOrd__IsSen__2B8BEA5F]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF__KS_CosOrd__IsSen__2B8BEA5F]  DEFAULT ((0)) FOR [IsSendNote]
GO
/****** Object:  Default [DF_KS_CosOrder_OrderFlag]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_OrderFlag]  DEFAULT ((0)) FOR [OrderFlag]
GO
/****** Object:  Default [DF_KS_CosOrder_OrderPromotion]    Script Date: 12/12/2018 20:03:58 ******/
ALTER TABLE [KS_CosOrder] ADD  CONSTRAINT [DF_KS_CosOrder_OrderPromotion]  DEFAULT ((0)) FOR [OrderPromotion]
GO
/****** Object:  Default [DF__KS_CosLog__Money__62108194]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLogInvoice] ADD  DEFAULT ((0)) FOR [MoneyTotal]
GO
/****** Object:  Default [DF__KS_CosLog__Deliv__6304A5CD]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLogDeliver] ADD  DEFAULT ((0)) FOR [DeliverType]
GO
/****** Object:  Default [DF__KS_CosLog__Expre__63F8CA06]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLogDeliver] ADD  DEFAULT ((0)) FOR [ExpressCorpID]
GO
/****** Object:  Default [DF__KS_CosLog__Statu__64ECEE3F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLogDeliver] ADD  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_CosLiveSeverItem_livetType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveServerItem] ADD  CONSTRAINT [DF_KS_CosLiveSeverItem_livetType]  DEFAULT ((0)) FOR [type]
GO
/****** Object:  Default [DF_KS_CosLiveSeverItem_maxchannel]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveServerItem] ADD  CONSTRAINT [DF_KS_CosLiveSeverItem_maxchannel]  DEFAULT ((0)) FOR [maxchannel]
GO
/****** Object:  Default [DF_KS_CosLiveSeverItem_issys]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveServerItem] ADD  CONSTRAINT [DF_KS_CosLiveSeverItem_issys]  DEFAULT ((0)) FOR [issys]
GO
/****** Object:  Default [DF_KS_CosLiveServerItem_status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveServerItem] ADD  CONSTRAINT [DF_KS_CosLiveServerItem_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_CourseID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_CourseID]  DEFAULT ((0)) FOR [CourseID]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_IsFree]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_IsFree]  DEFAULT ((0)) FOR [IsFree]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_IsExample]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_IsExample]  DEFAULT ((1)) FOR [IsExample]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_views]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_views]  DEFAULT ((0)) FOR [views]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_begintime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_begintime]  DEFAULT (getdate()) FOR [LiveTime]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_timeCount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_timeCount]  DEFAULT ((0)) FOR [timeCount]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_parentid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_parentid]  DEFAULT ((0)) FOR [parentid]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_addtype]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_addtype]  DEFAULT ((0)) FOR [addtype]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_root]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_root]  DEFAULT ((0)) FOR [root]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_child]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_child]  DEFAULT ((0)) FOR [child]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_depth]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_depth]  DEFAULT ((0)) FOR [depth]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_IsPlayBack]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_IsPlayBack]  DEFAULT ((0)) FOR [IsPlayBack]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_IsExam]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_IsExam]  DEFAULT ((0)) FOR [IsExam]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_type]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_type]  DEFAULT ((0)) FOR [type]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_InvalidDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_InvalidDate]  DEFAULT (getdate()) FOR [InvalidDate]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_IsOutsideLink]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_IsOutsideLink]  DEFAULT ((0)) FOR [IsOutsideLink]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_IsLogIn]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_IsLogIn]  DEFAULT ((0)) FOR [IsLogIn]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_money]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_money]  DEFAULT ((0)) FOR [money]
GO
/****** Object:  Default [DF_KS_CoslivePeriod_limitlearn]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoslivePeriod] ADD  CONSTRAINT [DF_KS_CoslivePeriod_limitlearn]  DEFAULT ((0)) FOR [limitlearn]
GO
/****** Object:  Default [DF_KS_CosLiveManageRoom_CourseID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveManageRoom] ADD  CONSTRAINT [DF_KS_CosLiveManageRoom_CourseID]  DEFAULT ((0)) FOR [CourseID]
GO
/****** Object:  Default [DF_KS_CosLiveManageRoom_Livetype]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveManageRoom] ADD  CONSTRAINT [DF_KS_CosLiveManageRoom_Livetype]  DEFAULT ((0)) FOR [Livetype]
GO
/****** Object:  Default [DF_KS_CosLiveManageRoom_accountid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveManageRoom] ADD  CONSTRAINT [DF_KS_CosLiveManageRoom_accountid]  DEFAULT ((0)) FOR [accountid]
GO
/****** Object:  Default [DF_KS_CosLiveMangeRoom_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveManageRoom] ADD  CONSTRAINT [DF_KS_CosLiveMangeRoom_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_CosLiveManageRoom_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveManageRoom] ADD  CONSTRAINT [DF_KS_CosLiveManageRoom_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_CosLiveManageRoom_course_id]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveManageRoom] ADD  CONSTRAINT [DF_KS_CosLiveManageRoom_course_id]  DEFAULT ((0)) FOR [course_id]
GO
/****** Object:  Default [DF_KS_CosLiveHold_userid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveHold] ADD  CONSTRAINT [DF_KS_CosLiveHold_userid]  DEFAULT ((0)) FOR [userid]
GO
/****** Object:  Default [DF_KS_CosLiveHold_holdnum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveHold] ADD  CONSTRAINT [DF_KS_CosLiveHold_holdnum]  DEFAULT ((0)) FOR [holdnum]
GO
/****** Object:  Default [DF_KS_CosLiveHold_acid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveHold] ADD  CONSTRAINT [DF_KS_CosLiveHold_acid]  DEFAULT ((0)) FOR [acid]
GO
/****** Object:  Default [DF_KS_CosLiveHold_usertype]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveHold] ADD  CONSTRAINT [DF_KS_CosLiveHold_usertype]  DEFAULT ((0)) FOR [usertype]
GO
/****** Object:  Default [DF_KS_CosLiveHold_fasong]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveHold] ADD  CONSTRAINT [DF_KS_CosLiveHold_fasong]  DEFAULT ((0)) FOR [fasong]
GO
/****** Object:  Default [DF_KS_CosLiveHold_jieshou]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveHold] ADD  CONSTRAINT [DF_KS_CosLiveHold_jieshou]  DEFAULT ((0)) FOR [jieshou]
GO
/****** Object:  Default [DF_KS_CosLiveHold_lasttime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveHold] ADD  CONSTRAINT [DF_KS_CosLiveHold_lasttime]  DEFAULT (getdate()) FOR [lasttime]
GO
/****** Object:  Default [DF_KS_CosLiveHold_contribution]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveHold] ADD  CONSTRAINT [DF_KS_CosLiveHold_contribution]  DEFAULT ((0)) FOR [contribution]
GO
/****** Object:  Default [DF_KS_CosLivecombo_cbmoney]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveCombo] ADD  CONSTRAINT [DF_KS_CosLivecombo_cbmoney]  DEFAULT ((0)) FOR [cbmoney]
GO
/****** Object:  Default [DF_KS_CosLivecombo_cbnum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveCombo] ADD  CONSTRAINT [DF_KS_CosLivecombo_cbnum]  DEFAULT ((0)) FOR [cbnum]
GO
/****** Object:  Default [DF_KS_CosLivecombo_acid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveCombo] ADD  CONSTRAINT [DF_KS_CosLivecombo_acid]  DEFAULT ((0)) FOR [acid]
GO
/****** Object:  Default [DF_KS_CosLivecombo_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveCombo] ADD  CONSTRAINT [DF_KS_CosLivecombo_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_CosLivecombo_sellnum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveCombo] ADD  CONSTRAINT [DF_KS_CosLivecombo_sellnum]  DEFAULT ((0)) FOR [sellnum]
GO
/****** Object:  Default [DF_KS_CosLiveacOrder_userid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacOrder] ADD  CONSTRAINT [DF_KS_CosLiveacOrder_userid]  DEFAULT ((0)) FOR [UserId]
GO
/****** Object:  Default [DF_KS_CosLiveacOrder_acid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacOrder] ADD  CONSTRAINT [DF_KS_CosLiveacOrder_acid]  DEFAULT ((0)) FOR [AcId]
GO
/****** Object:  Default [DF_KS_CosLiveacOrder_comboid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacOrder] ADD  CONSTRAINT [DF_KS_CosLiveacOrder_comboid]  DEFAULT ((0)) FOR [ComboId]
GO
/****** Object:  Default [DF_KS_CosLiveacOrder_buycount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacOrder] ADD  CONSTRAINT [DF_KS_CosLiveacOrder_buycount]  DEFAULT ((0)) FOR [BuyCount]
GO
/****** Object:  Default [DF_KS_CosLiveacOrder_buydate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacOrder] ADD  CONSTRAINT [DF_KS_CosLiveacOrder_buydate]  DEFAULT (getdate()) FOR [BuyDate]
GO
/****** Object:  Default [DF_KS_CosLiveacOrder_price]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacOrder] ADD  CONSTRAINT [DF_KS_CosLiveacOrder_price]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF_KS_CosLiveacOrder_acnum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacOrder] ADD  CONSTRAINT [DF_KS_CosLiveacOrder_acnum]  DEFAULT ((0)) FOR [AcNum]
GO
/****** Object:  Default [DF_KS_CosLiveacOrder_buytype]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacOrder] ADD  CONSTRAINT [DF_KS_CosLiveacOrder_buytype]  DEFAULT ((0)) FOR [BuyType]
GO
/****** Object:  Default [DF_KS_CosLiveacOrder_HBtype]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacOrder] ADD  CONSTRAINT [DF_KS_CosLiveacOrder_HBtype]  DEFAULT ((0)) FOR [HBType]
GO
/****** Object:  Default [DF_KS_CosLiveacClass_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacClass] ADD  CONSTRAINT [DF_KS_CosLiveacClass_adddate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_CosLiveacClass_isxiala]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacClass] ADD  CONSTRAINT [DF_KS_CosLiveacClass_isxiala]  DEFAULT ((0)) FOR [IsXiala]
GO
/****** Object:  Default [DF_KS_CosLiveacClass_status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacClass] ADD  CONSTRAINT [DF_KS_CosLiveacClass_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF_KS_CosLiveacClass_contribution]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacClass] ADD  CONSTRAINT [DF_KS_CosLiveacClass_contribution]  DEFAULT ((0)) FOR [ContriBution]
GO
/****** Object:  Default [DF_KS_CosLiveacClass_type]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacClass] ADD  CONSTRAINT [DF_KS_CosLiveacClass_type]  DEFAULT ((0)) FOR [Type]
GO
/****** Object:  Default [DF_KS_CosLiveacClass_CashMoneys]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacClass] ADD  CONSTRAINT [DF_KS_CosLiveacClass_CashMoneys]  DEFAULT ((0)) FOR [CashMoneys]
GO
/****** Object:  Default [DF_KS_CosLiveacClass_gametype]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveacClass] ADD  CONSTRAINT [DF_KS_CosLiveacClass_gametype]  DEFAULT ((0)) FOR [gametype]
GO
/****** Object:  Default [DF_KS_CosLiveac_senderid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveac] ADD  CONSTRAINT [DF_KS_CosLiveac_senderid]  DEFAULT ((0)) FOR [senderid]
GO
/****** Object:  Default [DF_KS_CosLiveac_sendnum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveac] ADD  CONSTRAINT [DF_KS_CosLiveac_sendnum]  DEFAULT ((0)) FOR [sendnum]
GO
/****** Object:  Default [DF_KS_CosLiveac_senddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveac] ADD  CONSTRAINT [DF_KS_CosLiveac_senddate]  DEFAULT (getdate()) FOR [senddate]
GO
/****** Object:  Default [DF_KS_CosLiveac_sendertype]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveac] ADD  CONSTRAINT [DF_KS_CosLiveac_sendertype]  DEFAULT ((0)) FOR [sendertype]
GO
/****** Object:  Default [DF_KS_CosLiveac_periodID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveac] ADD  CONSTRAINT [DF_KS_CosLiveac_periodID]  DEFAULT ((0)) FOR [periodID]
GO
/****** Object:  Default [DF_KS_CosLiveac_courseID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveac] ADD  CONSTRAINT [DF_KS_CosLiveac_courseID]  DEFAULT ((0)) FOR [courseID]
GO
/****** Object:  Default [DF_KS_CosLiveac_status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveac] ADD  CONSTRAINT [DF_KS_CosLiveac_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF_KS_CosLiveac_acid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveac] ADD  CONSTRAINT [DF_KS_CosLiveac_acid]  DEFAULT ((0)) FOR [acid]
GO
/****** Object:  Default [DF_KS_CosLiveac_contribution]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLiveac] ADD  CONSTRAINT [DF_KS_CosLiveac_contribution]  DEFAULT ((0)) FOR [contribution]
GO
/****** Object:  Default [DF_KS_CosLearnTime_userid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLearnTime] ADD  CONSTRAINT [DF_KS_CosLearnTime_userid]  DEFAULT ((0)) FOR [userid]
GO
/****** Object:  Default [DF_KS_CosLearnTime_PeriodID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLearnTime] ADD  CONSTRAINT [DF_KS_CosLearnTime_PeriodID]  DEFAULT ((0)) FOR [PeriodID]
GO
/****** Object:  Default [DF_KS_CosLearnTime_TimeCount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLearnTime] ADD  CONSTRAINT [DF_KS_CosLearnTime_TimeCount]  DEFAULT ((0)) FOR [TimeCount]
GO
/****** Object:  Default [DF_KS_CosLearnTime_LearnCount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLearnTime] ADD  CONSTRAINT [DF_KS_CosLearnTime_LearnCount]  DEFAULT ((0)) FOR [LearnCount]
GO
/****** Object:  Default [DF_KS_CosLearnTime_MaxLearnCount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLearnTime] ADD  CONSTRAINT [DF_KS_CosLearnTime_MaxLearnCount]  DEFAULT ((0)) FOR [MaxLearnCount]
GO
/****** Object:  Default [DF_KS_CosLearnTime_Learned]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLearnTime] ADD  CONSTRAINT [DF_KS_CosLearnTime_Learned]  DEFAULT ((0)) FOR [Learned]
GO
/****** Object:  Default [DF_KS_CosLearnTime_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLearnTime] ADD  CONSTRAINT [DF_KS_CosLearnTime_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_CosLearnTime_LastDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLearnTime] ADD  CONSTRAINT [DF_KS_CosLearnTime_LastDate]  DEFAULT (getdate()) FOR [LastDate]
GO
/****** Object:  Default [DF_KS_CosLearnTime_typeflag]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLearnTime] ADD  CONSTRAINT [DF_KS_CosLearnTime_typeflag]  DEFAULT ((0)) FOR [cosType]
GO
/****** Object:  Default [DF_KS_CosLearnTime_status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLearnTime] ADD  CONSTRAINT [DF_KS_CosLearnTime_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF_KS_CosLearnRecord_PayStatus]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosLearnRecord] ADD  CONSTRAINT [DF_KS_CosLearnRecord_PayStatus]  DEFAULT ((0)) FOR [PayStatus]
GO
/****** Object:  Default [DF_KS_CosHomeWork_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosHomeWork] ADD  CONSTRAINT [DF_KS_CosHomeWork_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_CosHomeWork_UserID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosHomeWork] ADD  CONSTRAINT [DF_KS_CosHomeWork_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_CosHomeWork_Verify]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosHomeWork] ADD  CONSTRAINT [DF_KS_CosHomeWork_Verify]  DEFAULT ((0)) FOR [Verify]
GO
/****** Object:  Default [DF_KS_CosHomeWork_IsExam]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosHomeWork] ADD  CONSTRAINT [DF_KS_CosHomeWork_IsExam]  DEFAULT ((0)) FOR [IsExam]
GO
/****** Object:  Default [DF_KS_CosHomeWork_IsAuto]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosHomeWork] ADD  CONSTRAINT [DF_KS_CosHomeWork_IsAuto]  DEFAULT ((0)) FOR [IsAuto]
GO
/****** Object:  Default [DF_KS_CosHomeWork_IsWXNotice]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosHomeWork] ADD  CONSTRAINT [DF_KS_CosHomeWork_IsWXNotice]  DEFAULT ((0)) FOR [IsWXNotice]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_CourseID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_CourseID]  DEFAULT ((0)) FOR [CourseID]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_timeCount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_timeCount]  DEFAULT ((0)) FOR [timeCount]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_IsFree]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_IsFree]  DEFAULT ((0)) FOR [IsFree]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_IsExample]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_IsExample]  DEFAULT ((0)) FOR [IsExample]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_parentid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_parentid]  DEFAULT ((0)) FOR [parentid]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_addtype]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_addtype]  DEFAULT ((0)) FOR [addtype]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_root]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_root]  DEFAULT ((0)) FOR [root]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_child]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_child]  DEFAULT ((0)) FOR [child]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_depth]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_depth]  DEFAULT ((0)) FOR [depth]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_type]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_type]  DEFAULT ((0)) FOR [type]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_IsExam]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_IsExam]  DEFAULT ((0)) FOR [IsExam]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_jifen]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_jifen]  DEFAULT ((0)) FOR [jifen]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_teachway]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_teachway]  DEFAULT ((0)) FOR [teachway]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_LiveTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_LiveTime]  DEFAULT (getdate()) FOR [LiveTime]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_InvalidDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_InvalidDate]  DEFAULT (getdate()) FOR [InvalidDate]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_money]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_money]  DEFAULT ((0)) FOR [money]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_status]  DEFAULT ((-1)) FOR [status]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_IsOutsideLink]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_IsOutsideLink]  DEFAULT ((0)) FOR [IsOutsideLink]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_IsRepeat]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_IsRepeat]  DEFAULT ((0)) FOR [IsRepeat]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_ListeningSeconds]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_ListeningSeconds]  DEFAULT ((0)) FOR [ListeningSeconds]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_IsPlayBack]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_IsPlayBack]  DEFAULT ((0)) FOR [IsPlayBack]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_ban_seek]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_ban_seek]  DEFAULT ((0)) FOR [ban_seek]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_limitlearnTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_limitlearnTime]  DEFAULT ((0)) FOR [limitlearnTime]
GO
/****** Object:  Default [DF_KS_CosGroupPeriod_limitlearn]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosGroupPeriod] ADD  CONSTRAINT [DF_KS_CosGroupPeriod_limitlearn]  DEFAULT ((0)) FOR [limitlearn]
GO
/****** Object:  Default [DF_KS_CosField_FieldModeType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosField] ADD  CONSTRAINT [DF_KS_CosField_FieldModeType]  DEFAULT ((0)) FOR [FieldModeType]
GO
/****** Object:  Default [DF_KS_CosField_FieldType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosField] ADD  CONSTRAINT [DF_KS_CosField_FieldType]  DEFAULT ((1)) FOR [FieldType]
GO
/****** Object:  Default [DF_KS_CosField_InputItem]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosField] ADD  CONSTRAINT [DF_KS_CosField_InputItem]  DEFAULT ((0)) FOR [InputItem]
GO
/****** Object:  Default [DF_KS_CosField_IsDisabled]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosField] ADD  CONSTRAINT [DF_KS_CosField_IsDisabled]  DEFAULT ((1)) FOR [IsDisabled]
GO
/****** Object:  Default [DF_KS_CosField_FieldWidth]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosField] ADD  CONSTRAINT [DF_KS_CosField_FieldWidth]  DEFAULT ((0)) FOR [FieldWidth]
GO
/****** Object:  Default [DF_KS_CosField_Orderid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosField] ADD  CONSTRAINT [DF_KS_CosField_Orderid]  DEFAULT ((0)) FOR [Orderid]
GO
/****** Object:  Default [DF_KS_CosField_FieldHeight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosField] ADD  CONSTRAINT [DF_KS_CosField_FieldHeight]  DEFAULT ((0)) FOR [FieldHeight]
GO
/****** Object:  Default [DF_KS_CosField_MaxFileSize]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosField] ADD  CONSTRAINT [DF_KS_CosField_MaxFileSize]  DEFAULT ((0)) FOR [MaxFileSize]
GO
/****** Object:  Default [DF_KS_CosFaceType_Orderid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosFaceType] ADD  CONSTRAINT [DF_KS_CosFaceType_Orderid]  DEFAULT ((0)) FOR [Orderid]
GO
/****** Object:  Default [DF_KS_CosFaceType_ParentId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosFaceType] ADD  CONSTRAINT [DF_KS_CosFaceType_ParentId]  DEFAULT ((0)) FOR [ParentId]
GO
/****** Object:  Default [DF_KS_CosFaceType_Depth]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosFaceType] ADD  CONSTRAINT [DF_KS_CosFaceType_Depth]  DEFAULT ((0)) FOR [Depth]
GO
/****** Object:  Default [DF_KS_CosFaceType_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosFaceType] ADD  CONSTRAINT [DF_KS_CosFaceType_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_CoseUserzan_UserID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoseUserzan] ADD  CONSTRAINT [DF_KS_CoseUserzan_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_CoseUserzan_tcid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoseUserzan] ADD  CONSTRAINT [DF_KS_CoseUserzan_tcid]  DEFAULT ((0)) FOR [tcid]
GO
/****** Object:  Default [DF_KS_CoseUserzan_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoseUserzan] ADD  CONSTRAINT [DF_KS_CoseUserzan_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_CoseUserzan_channelid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CoseUserzan] ADD  CONSTRAINT [DF_KS_CoseUserzan_channelid]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF_KS_CosContribution_userid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosContribution] ADD  CONSTRAINT [DF_KS_CosContribution_userid]  DEFAULT ((0)) FOR [userid]
GO
/****** Object:  Default [DF_KS_CosContribution_contribution]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosContribution] ADD  CONSTRAINT [DF_KS_CosContribution_contribution]  DEFAULT ((0)) FOR [contribution]
GO
/****** Object:  Default [DF_KS_CosContribution_sendtime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosContribution] ADD  CONSTRAINT [DF_KS_CosContribution_sendtime]  DEFAULT ((0)) FOR [sendtime]
GO
/****** Object:  Default [DF_KS_CosContribution_lasttime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosContribution] ADD  CONSTRAINT [DF_KS_CosContribution_lasttime]  DEFAULT (getdate()) FOR [lasttime]
GO
/****** Object:  Default [DF_KS_CosCollageDetail_CollageID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollageDetail] ADD  CONSTRAINT [DF_KS_CosCollageDetail_CollageID]  DEFAULT ((0)) FOR [CollageID]
GO
/****** Object:  Default [DF_KS_CosCollageDetail_UserID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollageDetail] ADD  CONSTRAINT [DF_KS_CosCollageDetail_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_CosCollageDetail_UserType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollageDetail] ADD  CONSTRAINT [DF_KS_CosCollageDetail_UserType]  DEFAULT ((0)) FOR [UserType]
GO
/****** Object:  Default [DF_KS_CosCollageDetail_TotalNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollageDetail] ADD  CONSTRAINT [DF_KS_CosCollageDetail_TotalNum]  DEFAULT ((0)) FOR [TotalNum]
GO
/****** Object:  Default [DF_KS_CosCollageDetail_CourseID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollageDetail] ADD  CONSTRAINT [DF_KS_CosCollageDetail_CourseID]  DEFAULT ((0)) FOR [CourseID]
GO
/****** Object:  Default [DF_KS_CosCollageDetail_CourseType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollageDetail] ADD  CONSTRAINT [DF_KS_CosCollageDetail_CourseType]  DEFAULT ((0)) FOR [CourseType]
GO
/****** Object:  Default [DF_KS_CosCollageDetail_Price]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollageDetail] ADD  CONSTRAINT [DF_KS_CosCollageDetail_Price]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF_KS_CosCollageDetail_OrderPrice]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollageDetail] ADD  CONSTRAINT [DF_KS_CosCollageDetail_OrderPrice]  DEFAULT ((0)) FOR [OrderPrice]
GO
/****** Object:  Default [DF_KS_CosCollageDetail_NotePrice]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollageDetail] ADD  CONSTRAINT [DF_KS_CosCollageDetail_NotePrice]  DEFAULT ((0)) FOR [NotePrice]
GO
/****** Object:  Default [DF_KS_CosCollageDetail_TaxPrice]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollageDetail] ADD  CONSTRAINT [DF_KS_CosCollageDetail_TaxPrice]  DEFAULT ((0)) FOR [TaxPrice]
GO
/****** Object:  Default [DF_KS_CosCollageDetail_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollageDetail] ADD  CONSTRAINT [DF_KS_CosCollageDetail_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_CosCollageDetail_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollageDetail] ADD  CONSTRAINT [DF_KS_CosCollageDetail_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF__KS_CosCol__Cours__447793BA]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollage] ADD  CONSTRAINT [DF__KS_CosCol__Cours__447793BA]  DEFAULT ((0)) FOR [CourseID]
GO
/****** Object:  Default [DF__KS_CosCol__Cours__456BB7F3]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollage] ADD  CONSTRAINT [DF__KS_CosCol__Cours__456BB7F3]  DEFAULT ((0)) FOR [CourseType]
GO
/****** Object:  Default [DF__KS_CosCol__Price__465FDC2C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollage] ADD  CONSTRAINT [DF__KS_CosCol__Price__465FDC2C]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF__KS_CosCol__Numbe__47540065]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollage] ADD  CONSTRAINT [DF__KS_CosCol__Numbe__47540065]  DEFAULT ((0)) FOR [Number]
GO
/****** Object:  Default [DF__KS_CosCol__Limit__4848249E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollage] ADD  CONSTRAINT [DF__KS_CosCol__Limit__4848249E]  DEFAULT ((0)) FOR [LimitHours]
GO
/****** Object:  Default [DF__KS_CosCol__Heade__493C48D7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollage] ADD  CONSTRAINT [DF__KS_CosCol__Heade__493C48D7]  DEFAULT ((0)) FOR [HeaderPrice]
GO
/****** Object:  Default [DF__KS_CosCol__Commo__4A306D10]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollage] ADD  CONSTRAINT [DF__KS_CosCol__Commo__4A306D10]  DEFAULT ((0)) FOR [CommonPrice]
GO
/****** Object:  Default [DF_KS_CosCollage_TotalCount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollage] ADD  CONSTRAINT [DF_KS_CosCollage_TotalCount]  DEFAULT ((0)) FOR [TotalCount]
GO
/****** Object:  Default [DF_KS_CosCollage_SuccessCount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollage] ADD  CONSTRAINT [DF_KS_CosCollage_SuccessCount]  DEFAULT ((0)) FOR [SuccessCount]
GO
/****** Object:  Default [DF_KS_CosCollage_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollage] ADD  CONSTRAINT [DF_KS_CosCollage_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF__KS_CosCol__AddDa__4B249149]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCollage] ADD  CONSTRAINT [DF__KS_CosCol__AddDa__4B249149]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_CosClassStudent_UserID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassStudent] ADD  CONSTRAINT [DF_KS_CosClassStudent_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_CosClassStudent_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassStudent] ADD  CONSTRAINT [DF_KS_CosClassStudent_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_CosClassStudent_Isdel]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassStudent] ADD  CONSTRAINT [DF_KS_CosClassStudent_Isdel]  DEFAULT ((0)) FOR [Isdel]
GO
/****** Object:  Default [DF_KS_CosClassStudent_IsPj]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassStudent] ADD  CONSTRAINT [DF_KS_CosClassStudent_IsPj]  DEFAULT ((0)) FOR [IsPj]
GO
/****** Object:  Default [DF_KS_CosClassStudent_RoomID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassStudent] ADD  CONSTRAINT [DF_KS_CosClassStudent_RoomID]  DEFAULT ((0)) FOR [RoomID]
GO
/****** Object:  Default [DF_KS_CosClassStudent_AskCount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassStudent] ADD  CONSTRAINT [DF_KS_CosClassStudent_AskCount]  DEFAULT ((0)) FOR [AskCount]
GO
/****** Object:  Default [DF_KS_CosClassStudent_verify]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassStudent] ADD  CONSTRAINT [DF_KS_CosClassStudent_verify]  DEFAULT ((0)) FOR [verify]
GO
/****** Object:  Default [DF_KS_CosClassRoom_Verify]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_Verify]  DEFAULT ((0)) FOR [Verify]
GO
/****** Object:  Default [DF_KS_CosClassRoom_IsBuy]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_IsBuy]  DEFAULT ((0)) FOR [IsBuy]
GO
/****** Object:  Default [DF_KS_CosClassRoom_Money]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_Money]  DEFAULT ((0)) FOR [Money]
GO
/****** Object:  Default [DF_KS_CosClassRoom_Price_Member]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_Price_Member]  DEFAULT ((0)) FOR [Price_Member]
GO
/****** Object:  Default [DF_KS_CosClassRoom_IsFree]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_IsFree]  DEFAULT ((0)) FOR [IsFree]
GO
/****** Object:  Default [DF_KS_CosClassRoom_ISLoad]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_ISLoad]  DEFAULT ((0)) FOR [ISLoad]
GO
/****** Object:  Default [DF_KS_CosClassRoom_FixedPrice]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_FixedPrice]  DEFAULT ((0)) FOR [FixedPrice]
GO
/****** Object:  Default [DF_KS_CosClassRoom_BanzhuRenID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_BanzhuRenID]  DEFAULT ((0)) FOR [BanzhuRenID]
GO
/****** Object:  Default [DF_KS_CosClassRoom_UserID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_CosClassRoom_system]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_system]  DEFAULT ((0)) FOR [system]
GO
/****** Object:  Default [DF_KS_CosClassRoom_addTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_addTime]  DEFAULT (getdate()) FOR [addTime]
GO
/****** Object:  Default [DF_KS_CosClassRoom_Score]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_Score]  DEFAULT ((0)) FOR [Score]
GO
/****** Object:  Default [DF_KS_CosClassRoom_LookCount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_LookCount]  DEFAULT ((0)) FOR [LookCount]
GO
/****** Object:  Default [DF_KS_CosClassRoom_BuyCount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_BuyCount]  DEFAULT ((0)) FOR [BuyCount]
GO
/****** Object:  Default [DF_KS_CosClassRoom_CourseCount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_CourseCount]  DEFAULT ((0)) FOR [CourseCount]
GO
/****** Object:  Default [DF_KS_CosClassRoom_IsExam]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_IsExam]  DEFAULT ((0)) FOR [IsExam]
GO
/****** Object:  Default [DF_KS_CosClassRoom_pfnum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_pfnum]  DEFAULT ((0)) FOR [pfnum]
GO
/****** Object:  Default [DF_KS_CosClassRoom_AskCount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_AskCount]  DEFAULT ((0)) FOR [AskCount]
GO
/****** Object:  Default [DF_KS_CosClassRoom_IsPublic]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_IsPublic]  DEFAULT ((0)) FOR [IsPublic]
GO
/****** Object:  Default [DF_KS_CosClassRoom_AllowAdd]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_AllowAdd]  DEFAULT ((0)) FOR [AllowAdd]
GO
/****** Object:  Default [DF_KS_CosClassRoom_NoticeNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_NoticeNum]  DEFAULT ((0)) FOR [NoticeNum]
GO
/****** Object:  Default [DF_KS_CosClassRoom_SchoolID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF_KS_CosClassRoom_SchoolID]  DEFAULT ((0)) FOR [SchoolID]
GO
/****** Object:  Default [DF__KS_CosCla__SkinI__79F48ECB]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF__KS_CosCla__SkinI__79F48ECB]  DEFAULT ((0)) FOR [SkinID]
GO
/****** Object:  Default [DF__KS_CosCla__IsBin__40870745]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassRoom] ADD  CONSTRAINT [DF__KS_CosCla__IsBin__40870745]  DEFAULT ((0)) FOR [IsBindable]
GO
/****** Object:  Default [DF_KS_CosClassNotice_RoomID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassNotice] ADD  CONSTRAINT [DF_KS_CosClassNotice_RoomID]  DEFAULT ((0)) FOR [RoomID]
GO
/****** Object:  Default [DF_KS_CosClassNotice_verify]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassNotice] ADD  CONSTRAINT [DF_KS_CosClassNotice_verify]  DEFAULT ((0)) FOR [verify]
GO
/****** Object:  Default [DF__KS_CosCla__RoomI__1A1FD08D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassManage] ADD  DEFAULT ((0)) FOR [RoomID]
GO
/****** Object:  Default [DF_KS_CosClassManage_TcID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassManage] ADD  CONSTRAINT [DF_KS_CosClassManage_TcID]  DEFAULT ((0)) FOR [TcID]
GO
/****** Object:  Default [DF__KS_CosCla__Cours__1C0818FF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassManage] ADD  DEFAULT ((0)) FOR [CourseID]
GO
/****** Object:  Default [DF__KS_CosCla__TaskT__1CFC3D38]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassManage] ADD  DEFAULT ((0)) FOR [TaskType]
GO
/****** Object:  Default [DF__KS_CosCla__Cours__1DF06171]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClassManage] ADD  DEFAULT ((0)) FOR [CourseType]
GO
/****** Object:  Default [DF_KS_CosClass_Type]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClass] ADD  CONSTRAINT [DF_KS_CosClass_Type]  DEFAULT ((0)) FOR [Type]
GO
/****** Object:  Default [DF_KS_CosClass_ParentID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClass] ADD  CONSTRAINT [DF_KS_CosClass_ParentID]  DEFAULT ((0)) FOR [ParentID]
GO
/****** Object:  Default [DF_KS_CosClass_Root]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClass] ADD  CONSTRAINT [DF_KS_CosClass_Root]  DEFAULT ((0)) FOR [Root]
GO
/****** Object:  Default [DF_KS_CosClass_Depth]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClass] ADD  CONSTRAINT [DF_KS_CosClass_Depth]  DEFAULT ((0)) FOR [Depth]
GO
/****** Object:  Default [DF_KS_CosClass_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClass] ADD  CONSTRAINT [DF_KS_CosClass_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_KS_CosClass_Child]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClass] ADD  CONSTRAINT [DF_KS_CosClass_Child]  DEFAULT ((0)) FOR [Child]
GO
/****** Object:  Default [DF_KS_CosClass_PrevID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClass] ADD  CONSTRAINT [DF_KS_CosClass_PrevID]  DEFAULT ((0)) FOR [PrevID]
GO
/****** Object:  Default [DF_KS_CosClass_NextID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClass] ADD  CONSTRAINT [DF_KS_CosClass_NextID]  DEFAULT ((0)) FOR [NextID]
GO
/****** Object:  Default [DF_KS_CosClass_ShowInTop]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClass] ADD  CONSTRAINT [DF_KS_CosClass_ShowInTop]  DEFAULT ((0)) FOR [ShowInTop]
GO
/****** Object:  Default [DF_KS_CosClass_IsHide]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClass] ADD  CONSTRAINT [DF_KS_CosClass_IsHide]  DEFAULT ((1)) FOR [IsHide]
GO
/****** Object:  Default [DF_KS_CosClass_ISTemplate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosClass] ADD  CONSTRAINT [DF_KS_CosClass_ISTemplate]  DEFAULT ((0)) FOR [ISTemplate]
GO
/****** Object:  Default [DF_KS_cosCashback;_courseid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCashback] ADD  CONSTRAINT [DF_KS_cosCashback;_courseid]  DEFAULT ((0)) FOR [courseid]
GO
/****** Object:  Default [DF_KS_cosCashback;_orderType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCashback] ADD  CONSTRAINT [DF_KS_cosCashback;_orderType]  DEFAULT ((0)) FOR [orderType]
GO
/****** Object:  Default [DF_KS_cosCashback;_type]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCashback] ADD  CONSTRAINT [DF_KS_cosCashback;_type]  DEFAULT ((0)) FOR [type]
GO
/****** Object:  Default [DF_KS_cosCashback;_money]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCashback] ADD  CONSTRAINT [DF_KS_cosCashback;_money]  DEFAULT ((0)) FOR [money]
GO
/****** Object:  Default [DF_KS_cosCashback_UserID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCashback] ADD  CONSTRAINT [DF_KS_cosCashback_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_cosCashback;_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCashback] ADD  CONSTRAINT [DF_KS_cosCashback;_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_cosCashback;_flag]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosCashback] ADD  CONSTRAINT [DF_KS_cosCashback;_flag]  DEFAULT ((0)) FOR [flag]
GO
/****** Object:  Default [DF_KS_CosBundleSale_bindcourseid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosBundleSale] ADD  CONSTRAINT [DF_KS_CosBundleSale_bindcourseid]  DEFAULT ((0)) FOR [bindcourseid]
GO
/****** Object:  Default [DF_KS_CosBundleSale_type]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosBundleSale] ADD  CONSTRAINT [DF_KS_CosBundleSale_type]  DEFAULT ((0)) FOR [type]
GO
/****** Object:  Default [DF_KS_CosBundleSale_orderid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosBundleSale] ADD  CONSTRAINT [DF_KS_CosBundleSale_orderid]  DEFAULT ((0)) FOR [orderid]
GO
/****** Object:  Default [DF_KS_CosBundleSale_IsSelect]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosBundleSale] ADD  CONSTRAINT [DF_KS_CosBundleSale_IsSelect]  DEFAULT ((1)) FOR [IsSelect]
GO
/****** Object:  Default [DF_KS_CosBj_PeriodID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosBj] ADD  CONSTRAINT [DF_KS_CosBj_PeriodID]  DEFAULT ((0)) FOR [PeriodID]
GO
/****** Object:  Default [DF_KS_CosBj_type]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosBj] ADD  CONSTRAINT [DF_KS_CosBj_type]  DEFAULT ((0)) FOR [type]
GO
/****** Object:  Default [DF_KS_CosBj_share]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosBj] ADD  CONSTRAINT [DF_KS_CosBj_share]  DEFAULT ((0)) FOR [share]
GO
/****** Object:  Default [DF_KS_CosAgentShop_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosAgentShop] ADD  CONSTRAINT [DF_KS_CosAgentShop_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_CosAgentShop_SkinID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosAgentShop] ADD  CONSTRAINT [DF_KS_CosAgentShop_SkinID]  DEFAULT ((0)) FOR [SkinID]
GO
/****** Object:  Default [DF_KS_CosAgentShop_TotalYJ]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosAgentShop] ADD  CONSTRAINT [DF_KS_CosAgentShop_TotalYJ]  DEFAULT ((0)) FOR [TotalYJ]
GO
/****** Object:  Default [DF_KS_CosAgentShop_TotalFXS]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosAgentShop] ADD  CONSTRAINT [DF_KS_CosAgentShop_TotalFXS]  DEFAULT ((0)) FOR [TotalFXS]
GO
/****** Object:  Default [DF__KS_CosAge__Store__53584DE9]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosAgentShop] ADD  DEFAULT ((0)) FOR [StoreSkinID]
GO
/****** Object:  Default [DF__KS_CosAge__IsOnS__544C7222]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_CosAgentShop] ADD  DEFAULT ((0)) FOR [IsOnSkin]
GO
/****** Object:  Default [DF__KS_FieldG__Chann__5540965B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_FieldGroup] ADD  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF__KS_FieldG__Order__5634BA94]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_FieldGroup] ADD  DEFAULT ((0)) FOR [OrderId]
GO
/****** Object:  Default [DF__KS_FieldG__IsSys__5728DECD]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_FieldGroup] ADD  DEFAULT ((0)) FOR [IsSys]
GO
/****** Object:  Default [DF__KS_Favori__Chann__581D0306]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Favorite] ADD  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF__KS_Favori__InfoI__5911273F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Favorite] ADD  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF_KS_Favorite_FtType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Favorite] ADD  CONSTRAINT [DF_KS_Favorite_FtType]  DEFAULT ((0)) FOR [FtType]
GO
/****** Object:  Default [DF_KS_Favorite_UserID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Favorite] ADD  CONSTRAINT [DF_KS_Favorite_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_EnterPriseSpread_Courseid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseSpread] ADD  CONSTRAINT [DF_KS_EnterPriseSpread_Courseid]  DEFAULT ((0)) FOR [Courseid]
GO
/****** Object:  Default [DF_KS_EnterPriseSpread_Type]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseSpread] ADD  CONSTRAINT [DF_KS_EnterPriseSpread_Type]  DEFAULT ((0)) FOR [Type]
GO
/****** Object:  Default [DF_KS_EnterPriseSpread_Money]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseSpread] ADD  CONSTRAINT [DF_KS_EnterPriseSpread_Money]  DEFAULT ((0)) FOR [Money]
GO
/****** Object:  Default [DF_KS_EnterPriseSpread_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseSpread] ADD  CONSTRAINT [DF_KS_EnterPriseSpread_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_EnterPriseSpread_IsPay]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseSpread] ADD  CONSTRAINT [DF_KS_EnterPriseSpread_IsPay]  DEFAULT ((0)) FOR [IsPay]
GO
/****** Object:  Default [DF_KS_EnterPriseSpread_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseSpread] ADD  CONSTRAINT [DF_KS_EnterPriseSpread_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_EnterPriseSpread_BeginDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseSpread] ADD  CONSTRAINT [DF_KS_EnterPriseSpread_BeginDate]  DEFAULT (getdate()) FOR [BeginDate]
GO
/****** Object:  Default [DF_KS_EnterPriseSpread_EndDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseSpread] ADD  CONSTRAINT [DF_KS_EnterPriseSpread_EndDate]  DEFAULT (getdate()) FOR [EndDate]
GO
/****** Object:  Default [DF_KS_EnterPriseSpread_PassDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseSpread] ADD  CONSTRAINT [DF_KS_EnterPriseSpread_PassDate]  DEFAULT (getdate()) FOR [PassDate]
GO
/****** Object:  Default [DF_KS_EnterPriseSpread_PayDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseSpread] ADD  CONSTRAINT [DF_KS_EnterPriseSpread_PayDate]  DEFAULT (getdate()) FOR [PayDate]
GO
/****** Object:  Default [DF_KS_EnterPriseSpread_EffectiveDay]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseSpread] ADD  CONSTRAINT [DF_KS_EnterPriseSpread_EffectiveDay]  DEFAULT ((0)) FOR [EffectiveDay]
GO
/****** Object:  Default [DF_KS_EnterPriseSpread_ShowStatus]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseSpread] ADD  CONSTRAINT [DF_KS_EnterPriseSpread_ShowStatus]  DEFAULT ((0)) FOR [ShowStatus]
GO
/****** Object:  Default [DF_KS_EnterPriseSpread_ShowDay]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseSpread] ADD  CONSTRAINT [DF_KS_EnterPriseSpread_ShowDay]  DEFAULT ((0)) FOR [ShowDay]
GO
/****** Object:  Default [DF_KS_EnterPriseScore_Score]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseScore] ADD  CONSTRAINT [DF_KS_EnterPriseScore_Score]  DEFAULT ((0)) FOR [Score]
GO
/****** Object:  Default [DF_KS_EnterPriseScore_CurrentScore]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseScore] ADD  CONSTRAINT [DF_KS_EnterPriseScore_CurrentScore]  DEFAULT ((0)) FOR [CurrentScore]
GO
/****** Object:  Default [DF_KS_EnterPriseScore_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseScore] ADD  CONSTRAINT [DF_KS_EnterPriseScore_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_EnterPriseScore_ItemID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseScore] ADD  CONSTRAINT [DF_KS_EnterPriseScore_ItemID]  DEFAULT ((0)) FOR [ItemID]
GO
/****** Object:  Default [DF_KS_EnterPriseScore_CaozuoType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseScore] ADD  CONSTRAINT [DF_KS_EnterPriseScore_CaozuoType]  DEFAULT ((0)) FOR [CaozuoType]
GO
/****** Object:  Default [DF_KS_EnterPriseRZ_UserId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseRZ] ADD  CONSTRAINT [DF_KS_EnterPriseRZ_UserId]  DEFAULT ((0)) FOR [UserId]
GO
/****** Object:  Default [DF_KS_EnterPriseRZ_verify]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseRZ] ADD  CONSTRAINT [DF_KS_EnterPriseRZ_verify]  DEFAULT ((0)) FOR [verify]
GO
/****** Object:  Default [DF_KS_EnterPriseRZ_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseRZ] ADD  CONSTRAINT [DF_KS_EnterPriseRZ_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_EnterPriseRZ_EpId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseRZ] ADD  CONSTRAINT [DF_KS_EnterPriseRZ_EpId]  DEFAULT ((0)) FOR [EpId]
GO
/****** Object:  Default [DF_KS_EnterPriseRZ_Class]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseRZ] ADD  CONSTRAINT [DF_KS_EnterPriseRZ_Class]  DEFAULT ((0)) FOR [orderId]
GO
/****** Object:  Default [DF_KS_EnterPriseRZ_Year]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseRZ] ADD  CONSTRAINT [DF_KS_EnterPriseRZ_Year]  DEFAULT ((0)) FOR [Year]
GO
/****** Object:  Default [DF_KS_EnterPriseRZ_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseRZ] ADD  CONSTRAINT [DF_KS_EnterPriseRZ_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_EnterPriseRZ_begindate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseRZ] ADD  CONSTRAINT [DF_KS_EnterPriseRZ_begindate]  DEFAULT (getdate()) FOR [begindate]
GO
/****** Object:  Default [DF_KS_EnterPriseRZ_IsRealRz]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseRZ] ADD  CONSTRAINT [DF_KS_EnterPriseRZ_IsRealRz]  DEFAULT ((0)) FOR [IsRealRz]
GO
/****** Object:  Default [DF_KS_EnterPriseRZ_IsBanxueRz]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseRZ] ADD  CONSTRAINT [DF_KS_EnterPriseRZ_IsBanxueRz]  DEFAULT ((0)) FOR [IsBanxueRz]
GO
/****** Object:  Default [DF_KS_JobPower_Type]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_Type]  DEFAULT ((0)) FOR [Type]
GO
/****** Object:  Default [DF_KS_JobPower_Num]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_Num]  DEFAULT ((0)) FOR [Num]
GO
/****** Object:  Default [DF_KS_JobPower_Money]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_Money]  DEFAULT ((0)) FOR [Money]
GO
/****** Object:  Default [DF_KS_JobPower_Job]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_Job]  DEFAULT ((0)) FOR [Job]
GO
/****** Object:  Default [DF_KS_JobPower_Resume]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_Resume]  DEFAULT ((0)) FOR [Resume]
GO
/****** Object:  Default [DF_KS_JobPower_SLogoDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_SLogoDate]  DEFAULT ((0)) FOR [SLogoDate]
GO
/****** Object:  Default [DF_KS_JobPower_BLogoDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_BLogoDate]  DEFAULT ((0)) FOR [BLogoDate]
GO
/****** Object:  Default [DF_KS_JobPower_Course]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_Course]  DEFAULT ((0)) FOR [Course]
GO
/****** Object:  Default [DF_KS_JobPower_Face]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_Face]  DEFAULT ((0)) FOR [Face]
GO
/****** Object:  Default [DF_KS_JobPower_Teacher]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_Teacher]  DEFAULT ((0)) FOR [Teacher]
GO
/****** Object:  Default [DF_KS_JobPower_News]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_News]  DEFAULT ((0)) FOR [News]
GO
/****** Object:  Default [DF_KS_JobPower_photo]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_photo]  DEFAULT ((0)) FOR [photo]
GO
/****** Object:  Default [DF_KS_JobPower_Campus]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_Campus]  DEFAULT ((0)) FOR [Campus]
GO
/****** Object:  Default [DF_KS_JobPower_ad]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_ad]  DEFAULT ((0)) FOR [ad]
GO
/****** Object:  Default [DF_KS_JobPower_moban]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_moban]  DEFAULT ((0)) FOR [moban]
GO
/****** Object:  Default [DF_KS_JobPower_duanxin]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_duanxin]  DEFAULT ((0)) FOR [duanxin]
GO
/****** Object:  Default [DF_KS_JobPower_GradeLevel]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_GradeLevel]  DEFAULT ((0)) FOR [GradeLevel]
GO
/****** Object:  Default [DF_KS_JobPower_IsShowCopyRight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_IsShowCopyRight]  DEFAULT ((0)) FOR [IsShowCopyRight]
GO
/****** Object:  Default [DF_KS_JobPower_IsShowNewsClass]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_IsShowNewsClass]  DEFAULT ((0)) FOR [IsShowNewsClass]
GO
/****** Object:  Default [DF_KS_JobPower_IsShowTwoCom]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_IsShowTwoCom]  DEFAULT ((0)) FOR [IsShowTwoCom]
GO
/****** Object:  Default [DF_KS_JobPower_IsShowSEO]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_IsShowSEO]  DEFAULT ((0)) FOR [IsShowSEO]
GO
/****** Object:  Default [DF_KS_JobPower_Live]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_Live]  DEFAULT ((0)) FOR [Live]
GO
/****** Object:  Default [DF_KS_JobPower_YunVideo]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_YunVideo]  DEFAULT ((0)) FOR [YunVideo]
GO
/****** Object:  Default [DF_KS_JobPower_DivideMoney]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_DivideMoney]  DEFAULT ((100)) FOR [DivideMoney]
GO
/****** Object:  Default [DF_KS_JobPower_liveNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_liveNum]  DEFAULT ((0)) FOR [liveNum]
GO
/****** Object:  Default [DF_KS_JobPower_LiveTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_LiveTime]  DEFAULT ((0)) FOR [LiveTime]
GO
/****** Object:  Default [DF_KS_JobPower_priceverify]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePower] ADD  CONSTRAINT [DF_KS_JobPower_priceverify]  DEFAULT ((0)) FOR [priceverify]
GO
/****** Object:  Default [DF_KS_EnterPrisePhoto_orderid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePhoto] ADD  CONSTRAINT [DF_KS_EnterPrisePhoto_orderid]  DEFAULT ((0)) FOR [orderid]
GO
/****** Object:  Default [DF_KS_EnterPrisePhoto_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePhoto] ADD  CONSTRAINT [DF_KS_EnterPrisePhoto_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_EnterPrisePhoto_status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePhoto] ADD  CONSTRAINT [DF_KS_EnterPrisePhoto_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF_KS_EnterPrisePhoto_userid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePhoto] ADD  CONSTRAINT [DF_KS_EnterPrisePhoto_userid]  DEFAULT ((0)) FOR [userid]
GO
/****** Object:  Default [DF_KS_EnterPrisePhoto_SchoolID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrisePhoto] ADD  CONSTRAINT [DF_KS_EnterPrisePhoto_SchoolID]  DEFAULT ((0)) FOR [SchoolID]
GO
/****** Object:  Default [DF_KS_EnterPriseNewsClass_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNewsClass] ADD  CONSTRAINT [DF_KS_EnterPriseNewsClass_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_KS_EnterPriseNewsClass_IsShow]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNewsClass] ADD  CONSTRAINT [DF_KS_EnterPriseNewsClass_IsShow]  DEFAULT ((0)) FOR [IsShow]
GO
/****** Object:  Default [DF_KS_EnterPriseNewsClass_UserId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNewsClass] ADD  CONSTRAINT [DF_KS_EnterPriseNewsClass_UserId]  DEFAULT ((0)) FOR [UserId]
GO
/****** Object:  Default [DF_KS_EnterPriseNewsClass_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNewsClass] ADD  CONSTRAINT [DF_KS_EnterPriseNewsClass_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_EnterPriseNewsClass_ParentID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNewsClass] ADD  CONSTRAINT [DF_KS_EnterPriseNewsClass_ParentID]  DEFAULT ((0)) FOR [ParentID]
GO
/****** Object:  Default [DF_KS_EnterPriseNewsClass_Root]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNewsClass] ADD  CONSTRAINT [DF_KS_EnterPriseNewsClass_Root]  DEFAULT ((0)) FOR [Root]
GO
/****** Object:  Default [DF_KS_EnterPriseNewsClass_Depth]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNewsClass] ADD  CONSTRAINT [DF_KS_EnterPriseNewsClass_Depth]  DEFAULT ((0)) FOR [Depth]
GO
/****** Object:  Default [DF_KS_EnterPriseNewsClass_Child]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNewsClass] ADD  CONSTRAINT [DF_KS_EnterPriseNewsClass_Child]  DEFAULT ((0)) FOR [Child]
GO
/****** Object:  Default [DF_KS_EnterPriseNewsClass_PrevID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNewsClass] ADD  CONSTRAINT [DF_KS_EnterPriseNewsClass_PrevID]  DEFAULT ((0)) FOR [PrevID]
GO
/****** Object:  Default [DF_KS_EnterPriseNewsClass_NextID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNewsClass] ADD  CONSTRAINT [DF_KS_EnterPriseNewsClass_NextID]  DEFAULT ((0)) FOR [NextID]
GO
/****** Object:  Default [DF_KS_EnterPriseNews_status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNews] ADD  CONSTRAINT [DF_KS_EnterPriseNews_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF_KS_EnterPriseNews_classid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNews] ADD  CONSTRAINT [DF_KS_EnterPriseNews_classid]  DEFAULT ((0)) FOR [classid]
GO
/****** Object:  Default [DF_KS_EnterPriseNews_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNews] ADD  CONSTRAINT [DF_KS_EnterPriseNews_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_EnterPriseNews_Hits]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNews] ADD  CONSTRAINT [DF_KS_EnterPriseNews_Hits]  DEFAULT ((0)) FOR [Hits]
GO
/****** Object:  Default [DF_KS_EnterPriseNews_IsRecommend]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNews] ADD  CONSTRAINT [DF_KS_EnterPriseNews_IsRecommend]  DEFAULT ((1)) FOR [IsRecommend]
GO
/****** Object:  Default [DF_KS_EnterPriseNews_IsFabu]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNews] ADD  CONSTRAINT [DF_KS_EnterPriseNews_IsFabu]  DEFAULT ((1)) FOR [IsFabu]
GO
/****** Object:  Default [DF_KS_EnterPriseNews_IsComment]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNews] ADD  CONSTRAINT [DF_KS_EnterPriseNews_IsComment]  DEFAULT ((0)) FOR [IsComment]
GO
/****** Object:  Default [DF_KS_EnterPriseNews_SchoolID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseNews] ADD  CONSTRAINT [DF_KS_EnterPriseNews_SchoolID]  DEFAULT ((0)) FOR [SchoolID]
GO
/****** Object:  Default [DF_KS_EnterpriseMessage_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterpriseMessage] ADD  CONSTRAINT [DF_KS_EnterpriseMessage_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_EnterpriseMessage_Flag]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterpriseMessage] ADD  CONSTRAINT [DF_KS_EnterpriseMessage_Flag]  DEFAULT ((0)) FOR [Flag]
GO
/****** Object:  Default [DF_KS_EnterpriseMessage_ReplayDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterpriseMessage] ADD  CONSTRAINT [DF_KS_EnterpriseMessage_ReplayDate]  DEFAULT (getdate()) FOR [ReplayDate]
GO
/****** Object:  Default [DF_KS_EnterpriseMessage_IsReply]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterpriseMessage] ADD  CONSTRAINT [DF_KS_EnterpriseMessage_IsReply]  DEFAULT ((0)) FOR [IsReply]
GO
/****** Object:  Default [DF_KS_EnterpriseComment_newsID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterpriseComment] ADD  CONSTRAINT [DF_KS_EnterpriseComment_newsID]  DEFAULT ((0)) FOR [newsID]
GO
/****** Object:  Default [DF_KS_EnterpriseComment_EpId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterpriseComment] ADD  CONSTRAINT [DF_KS_EnterpriseComment_EpId]  DEFAULT ((0)) FOR [EpId]
GO
/****** Object:  Default [DF_KS_EnterpriseComment_AddTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterpriseComment] ADD  CONSTRAINT [DF_KS_EnterpriseComment_AddTime]  DEFAULT (getdate()) FOR [AddTime]
GO
/****** Object:  Default [DF_KS_EnterpriseComment_ReplayDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterpriseComment] ADD  CONSTRAINT [DF_KS_EnterpriseComment_ReplayDate]  DEFAULT (getdate()) FOR [ReplayDate]
GO
/****** Object:  Default [DF_KS_EnterpriseComment_Flag]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterpriseComment] ADD  CONSTRAINT [DF_KS_EnterpriseComment_Flag]  DEFAULT ((0)) FOR [Flag]
GO
/****** Object:  Default [DF_KS_EnterpriseComment_Verify]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterpriseComment] ADD  CONSTRAINT [DF_KS_EnterpriseComment_Verify]  DEFAULT ((1)) FOR [Verify]
GO
/****** Object:  Default [DF_KS_EnterPriseCatetory_type]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseCatetory] ADD  CONSTRAINT [DF_KS_EnterPriseCatetory_type]  DEFAULT ((0)) FOR [type]
GO
/****** Object:  Default [DF_KS_EnterPriseCampus_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseCampus] ADD  CONSTRAINT [DF_KS_EnterPriseCampus_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_EnterPriseCampus_userid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseCampus] ADD  CONSTRAINT [DF_KS_EnterPriseCampus_userid]  DEFAULT ((0)) FOR [userid]
GO
/****** Object:  Default [DF_KS_EnterPriseCampus_SchoolID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseCampus] ADD  CONSTRAINT [DF_KS_EnterPriseCampus_SchoolID]  DEFAULT ((0)) FOR [SchoolID]
GO
/****** Object:  Default [DF_KS_EnterPriseBack_userid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseBack] ADD  CONSTRAINT [DF_KS_EnterPriseBack_userid]  DEFAULT ((0)) FOR [userid]
GO
/****** Object:  Default [DF_KS_EnterPriseBack_epid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseBack] ADD  CONSTRAINT [DF_KS_EnterPriseBack_epid]  DEFAULT ((0)) FOR [epid]
GO
/****** Object:  Default [DF_KS_EnterPriseBack_sendId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseBack] ADD  CONSTRAINT [DF_KS_EnterPriseBack_sendId]  DEFAULT ((0)) FOR [sendId]
GO
/****** Object:  Default [DF_KS_EnterPriseAdvert_EPid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAdvert] ADD  CONSTRAINT [DF_KS_EnterPriseAdvert_EPid]  DEFAULT ((0)) FOR [EPid]
GO
/****** Object:  Default [DF_KS_EnterPriseAdvert_width]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAdvert] ADD  CONSTRAINT [DF_KS_EnterPriseAdvert_width]  DEFAULT ((0)) FOR [width]
GO
/****** Object:  Default [DF_KS_EnterPriseAdvert_height]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAdvert] ADD  CONSTRAINT [DF_KS_EnterPriseAdvert_height]  DEFAULT ((0)) FOR [height]
GO
/****** Object:  Default [DF_KS_EnterPriseAdvert_bengintime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAdvert] ADD  CONSTRAINT [DF_KS_EnterPriseAdvert_bengintime]  DEFAULT (getdate()) FOR [bengintime]
GO
/****** Object:  Default [DF_KS_EnterPriseAdvert_endtime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAdvert] ADD  CONSTRAINT [DF_KS_EnterPriseAdvert_endtime]  DEFAULT (getdate()) FOR [endtime]
GO
/****** Object:  Default [DF_KS_EnterPriseAdvert_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAdvert] ADD  CONSTRAINT [DF_KS_EnterPriseAdvert_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_EnterPriseAdvert_istime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAdvert] ADD  CONSTRAINT [DF_KS_EnterPriseAdvert_istime]  DEFAULT ((0)) FOR [istime]
GO
/****** Object:  Default [DF_KS_EnterPriseAdvert_orderid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAdvert] ADD  CONSTRAINT [DF_KS_EnterPriseAdvert_orderid]  DEFAULT ((0)) FOR [orderid]
GO
/****** Object:  Default [DF_KS_EnterPriseAdvert_Verify]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAdvert] ADD  CONSTRAINT [DF_KS_EnterPriseAdvert_Verify]  DEFAULT ((1)) FOR [Verify]
GO
/****** Object:  Default [DF_KS_EnterPriseAccount_verify]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAccount] ADD  CONSTRAINT [DF_KS_EnterPriseAccount_verify]  DEFAULT ((0)) FOR [verify]
GO
/****** Object:  Default [DF_KS_EnterPriseAccount_status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAccount] ADD  CONSTRAINT [DF_KS_EnterPriseAccount_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF_KS_EnterPriseAccount_epid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAccount] ADD  CONSTRAINT [DF_KS_EnterPriseAccount_epid]  DEFAULT ((0)) FOR [epid]
GO
/****** Object:  Default [DF_KS_EnterPriseAccount_WayType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAccount] ADD  CONSTRAINT [DF_KS_EnterPriseAccount_WayType]  DEFAULT ((0)) FOR [WayType]
GO
/****** Object:  Default [DF_KS_EnterPriseAccount_Money]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAccount] ADD  CONSTRAINT [DF_KS_EnterPriseAccount_Money]  DEFAULT ((0)) FOR [Money]
GO
/****** Object:  Default [DF_KS_EnterPriseAccount_RealMoney]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAccount] ADD  CONSTRAINT [DF_KS_EnterPriseAccount_RealMoney]  DEFAULT ((0)) FOR [RealMoney]
GO
/****** Object:  Default [DF_KS_EnterPriseAccount_chargeMoney]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAccount] ADD  CONSTRAINT [DF_KS_EnterPriseAccount_chargeMoney]  DEFAULT ((0)) FOR [chargeMoney]
GO
/****** Object:  Default [DF_KS_EnterPriseAccount_begindate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAccount] ADD  CONSTRAINT [DF_KS_EnterPriseAccount_begindate]  DEFAULT (getdate()) FOR [begindate]
GO
/****** Object:  Default [DF_KS_EnterPriseAccount_enddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAccount] ADD  CONSTRAINT [DF_KS_EnterPriseAccount_enddate]  DEFAULT (getdate()) FOR [enddate]
GO
/****** Object:  Default [DF_KS_EnterPriseAccount_tcid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAccount] ADD  CONSTRAINT [DF_KS_EnterPriseAccount_tcid]  DEFAULT ((0)) FOR [tcid]
GO
/****** Object:  Default [DF_KS_EnterPriseAccount_UserID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPriseAccount] ADD  CONSTRAINT [DF_KS_EnterPriseAccount_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsJob]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsJob]  DEFAULT ((0)) FOR [IsJob]
GO
/****** Object:  Default [DF_KS_EnterPrise_TemplateID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_TemplateID]  DEFAULT ((0)) FOR [TemplateID]
GO
/****** Object:  Default [DF_KS_EnterPrise_verify]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_verify]  DEFAULT ((0)) FOR [verify]
GO
/****** Object:  Default [DF_KS_EnterPrise_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_EnterPrice_RegisteredCapital]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrice_RegisteredCapital]  DEFAULT ((0)) FOR [RegisteredCapital]
GO
/****** Object:  Default [DF_KS_EnterPrice_industryID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrice_industryID]  DEFAULT ((0)) FOR [industryID]
GO
/****** Object:  Default [DF_KS_EnterPrise_industryPID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_industryPID]  DEFAULT ((0)) FOR [industryPID]
GO
/****** Object:  Default [DF_KS_EnterPrise_SubCatetoryID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_SubCatetoryID]  DEFAULT ((0)) FOR [SubCatetoryID]
GO
/****** Object:  Default [DF_KS_EnterPrice_LNSIZE]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrice_LNSIZE]  DEFAULT ((0)) FOR [LNSIZE]
GO
/****** Object:  Default [DF_KS_EnterPrise_ProvinceID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_ProvinceID]  DEFAULT ((0)) FOR [ProvinceID]
GO
/****** Object:  Default [DF_KS_EnterPrise_CityID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_CityID]  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF_KS_EnterPrise_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_EnterPrise_Hits]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_Hits]  DEFAULT ((0)) FOR [Hits]
GO
/****** Object:  Default [DF_KS_EnterPrise_Recommend]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_Recommend]  DEFAULT ((0)) FOR [Recommend]
GO
/****** Object:  Default [DF_KS_EnterPrise_Free]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_Free]  DEFAULT ((0)) FOR [Free]
GO
/****** Object:  Default [DF_KS_EnterPrise_JobFree]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_JobFree]  DEFAULT ((0)) FOR [JobFree]
GO
/****** Object:  Default [DF_KS_EnterPrise_newsTotal]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_newsTotal]  DEFAULT ((0)) FOR [newsTotal]
GO
/****** Object:  Default [DF_KS_EnterPrise_CourseTotal]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_CourseTotal]  DEFAULT ((0)) FOR [CourseTotal]
GO
/****** Object:  Default [DF_KS_EnterPrise_FaceTotal]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_FaceTotal]  DEFAULT ((0)) FOR [FaceTotal]
GO
/****** Object:  Default [DF_KS_EnterPrise_TeacherTotal]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_TeacherTotal]  DEFAULT ((0)) FOR [TeacherTotal]
GO
/****** Object:  Default [DF_KS_EnterPrise_AskTotal]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_AskTotal]  DEFAULT ((0)) FOR [AskTotal]
GO
/****** Object:  Default [DF_KS_EnterPrise_MessageTotal]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_MessageTotal]  DEFAULT ((0)) FOR [MessageTotal]
GO
/****** Object:  Default [DF_KS_EnterPrise_OrderTotal]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_OrderTotal]  DEFAULT ((0)) FOR [OrderTotal]
GO
/****** Object:  Default [DF_KS_EnterPrise_SmsTotal]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_SmsTotal]  DEFAULT ((0)) FOR [SmsTotal]
GO
/****** Object:  Default [DF_KS_EnterPrise_CountyId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_CountyId]  DEFAULT ((0)) FOR [CountyId]
GO
/****** Object:  Default [DF_KS_EnterPrise_PosionTotal]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_PosionTotal]  DEFAULT ((0)) FOR [PosionTotal]
GO
/****** Object:  Default [DF_KS_EnterPrise_LetterTotal]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_LetterTotal]  DEFAULT ((0)) FOR [LetterTotal]
GO
/****** Object:  Default [DF_KS_EnterPrise_InterViewTotal]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_InterViewTotal]  DEFAULT ((0)) FOR [InterViewTotal]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsContact]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsContact]  DEFAULT ((0)) FOR [IsContact]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsSite]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsSite]  DEFAULT ((0)) FOR [IsSite]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsPhcon]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsPhcon]  DEFAULT ((0)) FOR [IsPhcon]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsReply]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsReply]  DEFAULT ((0)) FOR [IsReply]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsFamous]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsFamous]  DEFAULT ((0)) FOR [IsFamous]
GO
/****** Object:  Default [DF_KS_EnterPrise_Hot]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_Hot]  DEFAULT ((0)) FOR [Hot]
GO
/****** Object:  Default [DF_KS_EnterPrise_Important]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_Important]  DEFAULT ((0)) FOR [Important]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsSms]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsSms]  DEFAULT ((0)) FOR [IsSms]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsEmail]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsEmail]  DEFAULT ((0)) FOR [IsEmail]
GO
/****** Object:  Default [DF_KS_EnterPrise_OtherEmail]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_OtherEmail]  DEFAULT ('提醒邮箱') FOR [OtherEmail]
GO
/****** Object:  Default [DF_KS_EnterPrise_system]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_system]  DEFAULT ((0)) FOR [system]
GO
/****** Object:  Default [DF_KS_EnterPrise_subDomainStatus]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_subDomainStatus]  DEFAULT ((0)) FOR [subDomainStatus]
GO
/****** Object:  Default [DF_KS_EnterPrise_style]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_style]  DEFAULT ((1)) FOR [style]
GO
/****** Object:  Default [DF_KS_EnterPrise_TotalLearning]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_TotalLearning]  DEFAULT ((0)) FOR [TotalLearning]
GO
/****** Object:  Default [DF_KS_EnterPrise_RzStatus]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_RzStatus]  DEFAULT ((0)) FOR [RzStatus]
GO
/****** Object:  Default [DF_KS_EnterPrise_ScoreItemID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_ScoreItemID]  DEFAULT ((26)) FOR [ScoreItemID]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsOpenAdvert]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsOpenAdvert]  DEFAULT ((1)) FOR [IsOpenAdvert]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsOpenNewsComment]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsOpenNewsComment]  DEFAULT ((0)) FOR [IsOpenNewsComment]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsOpenMsg]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsOpenMsg]  DEFAULT ((0)) FOR [IsOpenMsg]
GO
/****** Object:  Default [DF_KS_EnterPrise_DuanXinTiaoshu]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_DuanXinTiaoshu]  DEFAULT ((0)) FOR [DuanXinTiaoshu]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsCuiDan]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsCuiDan]  DEFAULT ((0)) FOR [IsCuiDan]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsFuWan]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsFuWan]  DEFAULT ((0)) FOR [IsFuWan]
GO
/****** Object:  Default [DF_KS_EnterPrise_starPf]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_starPf]  DEFAULT ((0)) FOR [starPf]
GO
/****** Object:  Default [DF_KS_EnterPrise_mideva]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_mideva]  DEFAULT ((0)) FOR [mideva]
GO
/****** Object:  Default [DF_KS_EnterPrise_badeva]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_badeva]  DEFAULT ((0)) FOR [badeva]
GO
/****** Object:  Default [DF_KS_EnterPrise_totaleva]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_totaleva]  DEFAULT ((0)) FOR [totaleva]
GO
/****** Object:  Default [DF_KS_EnterPrise_ZanNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_ZanNum]  DEFAULT ((0)) FOR [ZanNum]
GO
/****** Object:  Default [DF_KS_EnterPrise_CsCount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_CsCount]  DEFAULT ((0)) FOR [CollectCount]
GO
/****** Object:  Default [DF_KS_EnterPrise_LiveTotal]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_LiveTotal]  DEFAULT ((0)) FOR [LiveTotal]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsSetPrice]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsSetPrice]  DEFAULT ((0)) FOR [IsSetPrice]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsOnline]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsOnline]  DEFAULT ((0)) FOR [IsOnline]
GO
/****** Object:  Default [DF_KS_EnterPrise_IsLive]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_IsLive]  DEFAULT ((0)) FOR [IsLive]
GO
/****** Object:  Default [DF_KS_EnterPrise_DirectorStatus]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_DirectorStatus]  DEFAULT ((0)) FOR [DirectorStatus]
GO
/****** Object:  Default [DF__KS_EnterP__Total__2D7432D1]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF__KS_EnterP__Total__2D7432D1]  DEFAULT ((0)) FOR [TotalSale]
GO
/****** Object:  Default [DF_KS_EnterPrise_DivideInto]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_DivideInto]  DEFAULT ((0)) FOR [DivideInto]
GO
/****** Object:  Default [DF_KS_EnterPrise_Withdrawals]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_EnterPrise] ADD  CONSTRAINT [DF_KS_EnterPrise_Withdrawals]  DEFAULT ((0)) FOR [Withdrawals]
GO
/****** Object:  Default [DF__KS_DownSe__DownI__6C190EBB]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_DownServer] ADD  CONSTRAINT [DF__KS_DownSe__DownI__6C190EBB]  DEFAULT ((0)) FOR [DownID]
GO
/****** Object:  Default [DF__KS_DownSe__Chann__6D0D32F4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_DownServer] ADD  CONSTRAINT [DF__KS_DownSe__Chann__6D0D32F4]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF__KS_DownSe__rooti__6E01572D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_DownServer] ADD  CONSTRAINT [DF__KS_DownSe__rooti__6E01572D]  DEFAULT ((0)) FOR [rootid]
GO
/****** Object:  Default [DF__KS_DownSe__order__6EF57B66]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_DownServer] ADD  CONSTRAINT [DF__KS_DownSe__order__6EF57B66]  DEFAULT ((0)) FOR [orders]
GO
/****** Object:  Default [DF__KS_DownSe__paren__6FE99F9F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_DownServer] ADD  CONSTRAINT [DF__KS_DownSe__paren__6FE99F9F]  DEFAULT ((0)) FOR [parentid]
GO
/****** Object:  Default [DF__KS_DownSe__child__70DDC3D8]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_DownServer] ADD  CONSTRAINT [DF__KS_DownSe__child__70DDC3D8]  DEFAULT ((0)) FOR [child]
GO
/****** Object:  Default [DF__KS_DownSe__IsLoc__71D1E811]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_DownServer] ADD  CONSTRAINT [DF__KS_DownSe__IsLoc__71D1E811]  DEFAULT ((0)) FOR [IsLock]
GO
/****** Object:  Default [DF__KS_DownSe__IsOut__72C60C4A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_DownServer] ADD  CONSTRAINT [DF__KS_DownSe__IsOut__72C60C4A]  DEFAULT ((0)) FOR [IsOuter]
GO
/****** Object:  Default [DF__KS_DownSe__AllDo__73BA3083]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_DownServer] ADD  CONSTRAINT [DF__KS_DownSe__AllDo__73BA3083]  DEFAULT ((0)) FOR [AllDownHits]
GO
/****** Object:  Default [DF__KS_DownSe__DayDo__74AE54BC]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_DownServer] ADD  CONSTRAINT [DF__KS_DownSe__DayDo__74AE54BC]  DEFAULT ((0)) FOR [DayDownHits]
GO
/****** Object:  Default [DF__KS_DownSe__HitsT__75A278F5]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_DownServer] ADD  CONSTRAINT [DF__KS_DownSe__HitsT__75A278F5]  DEFAULT (getdate()) FOR [HitsTime]
GO
/****** Object:  Default [DF__KS_DiggLi__Chann__66603565]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_DiggList] ADD  CONSTRAINT [DF__KS_DiggLi__Chann__66603565]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF__KS_DiggLi__InfoI__6754599E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_DiggList] ADD  CONSTRAINT [DF__KS_DiggLi__InfoI__6754599E]  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF__KS_DiggLi__Suppo__68487DD7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_DiggList] ADD  CONSTRAINT [DF__KS_DiggLi__Suppo__68487DD7]  DEFAULT ((0)) FOR [SupportNum]
GO
/****** Object:  Default [DF__KS_DiggLi__Again__693CA210]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_DiggList] ADD  CONSTRAINT [DF__KS_DiggLi__Again__693CA210]  DEFAULT ((0)) FOR [AgainstNum]
GO
/****** Object:  Default [DF__KS_Digg__Channel__7B313519]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Digg] ADD  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF__KS_Digg__InfoID__7C255952]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Digg] ADD  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF__KS_Digg__DiggID__7D197D8B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Digg] ADD  DEFAULT ((0)) FOR [DiggID]
GO
/****** Object:  Default [DF__KS_Digg__DiggTyp__7E0DA1C4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Digg] ADD  DEFAULT ((0)) FOR [DiggType]
GO
/****** Object:  Default [DF__KS_Model__ModelS__43D61337]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__ModelS__43D61337]  DEFAULT ((0)) FOR [ModelStatus]
GO
/****** Object:  Default [DF__KS_Model__FsoLis__44CA3770]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__FsoLis__44CA3770]  DEFAULT ((2)) FOR [FsoListNum]
GO
/****** Object:  Default [DF_KS_Model_SeoOption]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF_KS_Model_SeoOption]  DEFAULT ((0)) FOR [SeoOption]
GO
/****** Object:  Default [DF__KS_Model__Charge__45BE5BA9]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__Charge__45BE5BA9]  DEFAULT ((0)) FOR [ChargesOption]
GO
/****** Object:  Default [DF__KS_Model__Attrib__46B27FE2]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__Attrib__46B27FE2]  DEFAULT ((0)) FOR [AttributeOption]
GO
/****** Object:  Default [DF__KS_Model__Receip__47A6A41B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__Receip__47A6A41B]  DEFAULT ((0)) FOR [ReceiptOption]
GO
/****** Object:  Default [DF_KS_Model_PKOption]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF_KS_Model_PKOption]  DEFAULT ((0)) FOR [PKOption]
GO
/****** Object:  Default [DF__KS_Model__BasicT__489AC854]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__BasicT__489AC854]  DEFAULT ((0)) FOR [BasicType]
GO
/****** Object:  Default [DF__KS_Model__AdminU__498EEC8D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__AdminU__498EEC8D]  DEFAULT ((1)) FOR [AdminUpFilesTF]
GO
/****** Object:  Default [DF__KS_Model__UserUp__4A8310C6]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__UserUp__4A8310C6]  DEFAULT ((0)) FOR [UserUpFilesTF]
GO
/****** Object:  Default [DF__KS_Model__AllowU__4B7734FF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__AllowU__4B7734FF]  DEFAULT ((0)) FOR [AllowUpFilesSize]
GO
/****** Object:  Default [DF__KS_Model__AllowP__4C6B5938]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__AllowP__4C6B5938]  DEFAULT ((0)) FOR [AllowPublication]
GO
/****** Object:  Default [DF_KS_Model_RecycleBin]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF_KS_Model_RecycleBin]  DEFAULT ((0)) FOR [RecycleBin]
GO
/****** Object:  Default [DF__KS_Model__Public__4D5F7D71]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__Public__4D5F7D71]  DEFAULT ((0)) FOR [PublicationVerify]
GO
/****** Object:  Default [DF_KS_Model_PublicationModifyVerify]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF_KS_Model_PublicationModifyVerify]  DEFAULT ((0)) FOR [PublicationModifyVerify]
GO
/****** Object:  Default [DF__KS_Model__Commen__4E53A1AA]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__Commen__4E53A1AA]  DEFAULT ((0)) FOR [CommentType]
GO
/****** Object:  Default [DF__KS_Model__Commen__4F47C5E3]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__Commen__4F47C5E3]  DEFAULT ((0)) FOR [CommentLen]
GO
/****** Object:  Default [DF__KS_Model__Newest__503BEA1C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__Newest__503BEA1C]  DEFAULT ((0)) FOR [NewestDay]
GO
/****** Object:  Default [DF__KS_Model__FsoHtm__51300E55]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__FsoHtm__51300E55]  DEFAULT ((1)) FOR [FsoHtmlType]
GO
/****** Object:  Default [DF__KS_Model__DiggBy__5224328E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__DiggBy__5224328E]  DEFAULT ((0)) FOR [DiggByVisitor]
GO
/****** Object:  Default [DF__KS_Model__DiggRe__531856C7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__DiggRe__531856C7]  DEFAULT ((0)) FOR [DiggRepeat]
GO
/****** Object:  Default [DF__KS_Model__DiggPe__540C7B00]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  CONSTRAINT [DF__KS_Model__DiggPe__540C7B00]  DEFAULT ((0)) FOR [DiggPerTimes]
GO
/****** Object:  Default [DF__KS_Model__Search__13FCE2E3]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  DEFAULT ((0)) FOR [SearchTF]
GO
/****** Object:  Default [DF__KS_Model__ModelO__14F1071C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Model] ADD  DEFAULT ((0)) FOR [ModelOrderId]
GO
/****** Object:  Default [DF__KS_Messag__Subje__15E52B55]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Message] ADD  DEFAULT ((0)) FOR [SubjectID]
GO
/****** Object:  Default [DF__KS_Messag__Verif__16D94F8E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Message] ADD  DEFAULT ((0)) FOR [Verify]
GO
/****** Object:  Default [DF__KS_Messag__ReadT__17CD73C7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Message] ADD  DEFAULT ((0)) FOR [ReadTF]
GO
/****** Object:  Default [DF__KS_Messag__DelTf__18C19800]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Message] ADD  DEFAULT ((0)) FOR [DelTf]
GO
/****** Object:  Default [DF__KS_Messag__PMsgI__19B5BC39]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Message] ADD  DEFAULT ((0)) FOR [PMsgID]
GO
/****** Object:  Default [DF__KS_LogSms__IsSuc__1AA9E072]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogSms] ADD  DEFAULT ((0)) FOR [IsSuccess]
GO
/****** Object:  Default [DF_KS_LogScore_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogScore] ADD  CONSTRAINT [DF_KS_LogScore_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_LogScore_Score]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogScore] ADD  CONSTRAINT [DF_KS_LogScore_Score]  DEFAULT ((0)) FOR [Score]
GO
/****** Object:  Default [DF_KS_LogScore_NowScore]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogScore] ADD  CONSTRAINT [DF_KS_LogScore_NowScore]  DEFAULT ((0)) FOR [NowScore]
GO
/****** Object:  Default [DF_KS_LogScore_AvailableScore]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogScore] ADD  CONSTRAINT [DF_KS_LogScore_AvailableScore]  DEFAULT ((0)) FOR [AvailableScore]
GO
/****** Object:  Default [DF_KS_LogScore_ChannelID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogScore] ADD  CONSTRAINT [DF_KS_LogScore_ChannelID]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF_KS_LogScore_infoid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogScore] ADD  CONSTRAINT [DF_KS_LogScore_infoid]  DEFAULT ((0)) FOR [infoid]
GO
/****** Object:  Default [DF__KS_LogSco__Times__748F2482]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogScore] ADD  CONSTRAINT [DF__KS_LogSco__Times__748F2482]  DEFAULT ((0)) FOR [Times]
GO
/****** Object:  Default [DF_KS_LogPoint_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogPoint] ADD  CONSTRAINT [DF_KS_LogPoint_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF__KS_LogPoi__Chann__37703C52]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogPoint] ADD  CONSTRAINT [DF__KS_LogPoi__Chann__37703C52]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF__KS_LogPoi__InfoI__3864608B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogPoint] ADD  CONSTRAINT [DF__KS_LogPoi__InfoI__3864608B]  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF__KS_LogPoi__InOrO__395884C4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogPoint] ADD  CONSTRAINT [DF__KS_LogPoi__InOrO__395884C4]  DEFAULT ((0)) FOR [InOrOutFlag]
GO
/****** Object:  Default [DF__KS_LogPoi__Point__3A4CA8FD]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogPoint] ADD  CONSTRAINT [DF__KS_LogPoi__Point__3A4CA8FD]  DEFAULT ((0)) FOR [Point]
GO
/****** Object:  Default [DF_KS_LogPoint_NowPoint]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogPoint] ADD  CONSTRAINT [DF_KS_LogPoint_NowPoint]  DEFAULT ((0)) FOR [NowPoint]
GO
/****** Object:  Default [DF__KS_LogPoi__Times__3B40CD36]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogPoint] ADD  CONSTRAINT [DF__KS_LogPoi__Times__3B40CD36]  DEFAULT ((0)) FOR [Times]
GO
/****** Object:  Default [DF_KS_LogMoney_ChannelID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogMoney] ADD  CONSTRAINT [DF_KS_LogMoney_ChannelID]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF_KS_LogMoney_InfoID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogMoney] ADD  CONSTRAINT [DF_KS_LogMoney_InfoID]  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF_KS_LogMoney_MoneyType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogMoney] ADD  CONSTRAINT [DF_KS_LogMoney_MoneyType]  DEFAULT ((0)) FOR [MoneyType]
GO
/****** Object:  Default [DF_KS_LogMoney_PaymentID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogMoney] ADD  CONSTRAINT [DF_KS_LogMoney_PaymentID]  DEFAULT ((0)) FOR [PaymentID]
GO
/****** Object:  Default [DF_KS_LogMoney_PayTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogMoney] ADD  CONSTRAINT [DF_KS_LogMoney_PayTime]  DEFAULT (getdate()) FOR [PayTime]
GO
/****** Object:  Default [DF_KS_LogMoney_Times]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogMoney] ADD  CONSTRAINT [DF_KS_LogMoney_Times]  DEFAULT ((0)) FOR [Times]
GO
/****** Object:  Default [DF__KS_LogMon__RealM__71B2B7D7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogMoney] ADD  CONSTRAINT [DF__KS_LogMon__RealM__71B2B7D7]  DEFAULT ((0)) FOR [RealMoney]
GO
/****** Object:  Default [DF__KS_LogMon__Disco__72A6DC10]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LogMoney] ADD  CONSTRAINT [DF__KS_LogMon__Disco__72A6DC10]  DEFAULT ((0)) FOR [Discount]
GO
/****** Object:  Default [DF__KS_Log__ResultTF__2EDAF651]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Log] ADD  CONSTRAINT [DF__KS_Log__ResultTF__2EDAF651]  DEFAULT ((0)) FOR [ResultTF]
GO
/****** Object:  Default [DF__KS_LabelC__Paren__236943A5]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LabelClass] ADD  CONSTRAINT [DF__KS_LabelC__Paren__236943A5]  DEFAULT ((0)) FOR [ParentID]
GO
/****** Object:  Default [DF__KS_LabelC__from3__32816A03]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LabelClass] ADD  DEFAULT ((0)) FOR [from3g]
GO
/****** Object:  Default [DF__KS_LabelC__Templ__33758E3C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_LabelClass] ADD  DEFAULT ((0)) FOR [TemplateID]
GO
/****** Object:  Default [DF__KS_Label__ClassI__2180FB33]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Label] ADD  CONSTRAINT [DF__KS_Label__ClassI__2180FB33]  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF__KS_Label__from3g__355DD6AE]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Label] ADD  DEFAULT ((0)) FOR [from3g]
GO
/****** Object:  Default [DF__KS_Label__Templa__3651FAE7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Label] ADD  DEFAULT ((0)) FOR [TemplateID]
GO
/****** Object:  Default [DF__KS_KeyTag__TagsH__1AD3FDA4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_KeyTags] ADD  CONSTRAINT [DF__KS_KeyTag__TagsH__1AD3FDA4]  DEFAULT ((0)) FOR [TagsHits]
GO
/****** Object:  Default [DF__KS_KeyTag__Today__1BC821DD]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_KeyTags] ADD  CONSTRAINT [DF__KS_KeyTag__Today__1BC821DD]  DEFAULT ((0)) FOR [TodayHits]
GO
/****** Object:  Default [DF__KS_KeyTag__Yeste__1CBC4616]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_KeyTags] ADD  CONSTRAINT [DF__KS_KeyTag__Yeste__1CBC4616]  DEFAULT ((0)) FOR [YesterDayHits]
GO
/****** Object:  Default [DF__KS_KeyTag__WeekH__1DB06A4F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_KeyTags] ADD  CONSTRAINT [DF__KS_KeyTag__WeekH__1DB06A4F]  DEFAULT ((0)) FOR [WeekHits]
GO
/****** Object:  Default [DF__KS_KeyTag__LastU__1EA48E88]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_KeyTags] ADD  CONSTRAINT [DF__KS_KeyTag__LastU__1EA48E88]  DEFAULT (getdate()) FOR [LastUseTime]
GO
/****** Object:  Default [DF__KS_KeyTag__Statu__1F98B2C1]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_KeyTags] ADD  CONSTRAINT [DF__KS_KeyTag__Statu__1F98B2C1]  DEFAULT ((1)) FOR [Status]
GO
/****** Object:  Default [DF_KS_KeyTags_Type]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_KeyTags] ADD  CONSTRAINT [DF_KS_KeyTags_Type]  DEFAULT ((0)) FOR [Type]
GO
/****** Object:  Default [DF_KS_KeyTags_CourseNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_KeyTags] ADD  CONSTRAINT [DF_KS_KeyTags_CourseNum]  DEFAULT ((0)) FOR [CourseNum]
GO
/****** Object:  Default [DF_KS_KeyTags_SjNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_KeyTags] ADD  CONSTRAINT [DF_KS_KeyTags_SjNum]  DEFAULT ((0)) FOR [SjNum]
GO
/****** Object:  Default [DF_KS_KeyTags_UserNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_KeyTags] ADD  CONSTRAINT [DF_KS_KeyTags_UserNum]  DEFAULT ((0)) FOR [UserNum]
GO
/****** Object:  Default [DF__KS_JSFile__Class__40CF895A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_JSFile] ADD  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF__KS_JSFile__from3__41C3AD93]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_JSFile] ADD  DEFAULT ((0)) FOR [from3g]
GO
/****** Object:  Default [DF__KS_JSFile__Templ__42B7D1CC]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_JSFile] ADD  DEFAULT ((0)) FOR [TemplateID]
GO
/****** Object:  Default [DF__KS_InnerL__Statu__43ABF605]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InnerLink] ADD  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_InnerLink_Num]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InnerLink] ADD  CONSTRAINT [DF_KS_InnerLink_Num]  DEFAULT ((0)) FOR [Times]
GO
/****** Object:  Default [DF_KS_InfoList_ChannelID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_ChannelID]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF_KS_InfoList_HitsByDay]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_HitsByDay]  DEFAULT ((0)) FOR [HitsByDay]
GO
/****** Object:  Default [DF_KS_InfoList_HitsByWeek]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_HitsByWeek]  DEFAULT ((0)) FOR [HitsByWeek]
GO
/****** Object:  Default [DF_KS_InfoList_HitsByMonth]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_HitsByMonth]  DEFAULT ((0)) FOR [HitsByMonth]
GO
/****** Object:  Default [DF_KS_InfoList_LastHitsTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_LastHitsTime]  DEFAULT (getdate()) FOR [LastHitsTime]
GO
/****** Object:  Default [DF_KS_InfoList_RefreshTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_RefreshTF]  DEFAULT ((0)) FOR [RefreshTF]
GO
/****** Object:  Default [DF_KS_InfoList_ShowOn3G]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_ShowOn3G]  DEFAULT ((0)) FOR [ShowOn3G]
GO
/****** Object:  Default [DF_KS_InfoList_ProID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_ProID]  DEFAULT ((0)) FOR [ProID]
GO
/****** Object:  Default [DF_KS_InfoList_CityID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_CityID]  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF_KS_InfoList_CountyID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_CountyID]  DEFAULT ((0)) FOR [CountyID]
GO
/****** Object:  Default [DF_KS_InfoList_Verify]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_Verify]  DEFAULT ((0)) FOR [Verify]
GO
/****** Object:  Default [DF_KS_InfoList_InfoPurview]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_InfoPurview]  DEFAULT ((0)) FOR [InfoPurview]
GO
/****** Object:  Default [DF_KS_InfoList_ArrGroupID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_ArrGroupID]  DEFAULT ('0') FOR [ArrGroupID]
GO
/****** Object:  Default [DF_KS_InfoList_ReadPoint]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_ReadPoint]  DEFAULT ((0)) FOR [ReadPoint]
GO
/****** Object:  Default [DF_KS_InfoList_ChargeType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_ChargeType]  DEFAULT ((0)) FOR [ChargeType]
GO
/****** Object:  Default [DF_KS_InfoList_PitchTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_PitchTime]  DEFAULT ((24)) FOR [PitchTime]
GO
/****** Object:  Default [DF_KS_InfoList_ReadTimes]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_ReadTimes]  DEFAULT ((10)) FOR [ReadTimes]
GO
/****** Object:  Default [DF_KS_InfoList_DividePercent]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_DividePercent]  DEFAULT ((0)) FOR [DividePercent]
GO
/****** Object:  Default [DF_KS_InfoList_PKID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_PKID]  DEFAULT ((0)) FOR [PKID]
GO
/****** Object:  Default [DF_KS_InfoList_VoteID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_VoteID]  DEFAULT ((0)) FOR [VoteID]
GO
/****** Object:  Default [DF_KS_InfoList_CommentNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_CommentNum]  DEFAULT ((0)) FOR [CommentNum]
GO
/****** Object:  Default [DF_KS_InfoList_DelTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_DelTF]  DEFAULT ((0)) FOR [DelTF]
GO
/****** Object:  Default [DF_KS_InfoList_AttachmentCharge]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_AttachmentCharge]  DEFAULT ((0)) FOR [AttachmentCharge]
GO
/****** Object:  Default [DF_KS_InfoList_AttachmentChargeOnce]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_AttachmentChargeOnce]  DEFAULT ((0)) FOR [AttachmentChargeOnce]
GO
/****** Object:  Default [DF_KS_InfoList_SocialIDs]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF_KS_InfoList_SocialIDs]  DEFAULT ((0)) FOR [SocialIDs]
GO
/****** Object:  Default [DF__KS_InfoLi__Provi__5B837F96]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF__KS_InfoLi__Provi__5B837F96]  DEFAULT ((0)) FOR [ProvinceID]
GO
/****** Object:  Default [DF__KS_InfoLi__IsTip__5BC376B8]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  CONSTRAINT [DF__KS_InfoLi__IsTip__5BC376B8]  DEFAULT ((0)) FOR [IsTips]
GO
/****** Object:  Default [DF__KS_InfoLi__GoodN__5F54107A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  DEFAULT ((0)) FOR [GoodNum]
GO
/****** Object:  Default [DF__KS_InfoLi__BadNu__604834B3]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  DEFAULT ((0)) FOR [BadNum]
GO
/****** Object:  Default [DF__KS_InfoLi__FavNu__613C58EC]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  DEFAULT ((0)) FOR [FavNum]
GO
/****** Object:  Default [DF__KS_InfoLi__Share__62307D25]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_InfoList] ADD  DEFAULT ((0)) FOR [ShareNum]
GO
/****** Object:  Default [DF_KS_MoodProject_UserOnce]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodProject] ADD  CONSTRAINT [DF_KS_MoodProject_UserOnce]  DEFAULT ((0)) FOR [UserOnce]
GO
/****** Object:  Default [DF_KS_MoodProject_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodProject] ADD  CONSTRAINT [DF_KS_MoodProject_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_MoodProject_TimeLimit]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodProject] ADD  CONSTRAINT [DF_KS_MoodProject_TimeLimit]  DEFAULT ((0)) FOR [TimeLimit]
GO
/****** Object:  Default [DF_KS_MoodList_MoodID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_MoodID]  DEFAULT ((0)) FOR [MoodID]
GO
/****** Object:  Default [DF_KS_MoodList_ChannelID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_ChannelID]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF_KS_MoodList_InfoID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_InfoID]  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF_KS_MoodList_M0]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_M0]  DEFAULT ((0)) FOR [M0]
GO
/****** Object:  Default [DF_KS_MoodList_M1]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_M1]  DEFAULT ((0)) FOR [M1]
GO
/****** Object:  Default [DF_KS_MoodList_M2]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_M2]  DEFAULT ((0)) FOR [M2]
GO
/****** Object:  Default [DF_KS_MoodList_M3]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_M3]  DEFAULT ((0)) FOR [M3]
GO
/****** Object:  Default [DF_KS_MoodList_M4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_M4]  DEFAULT ((0)) FOR [M4]
GO
/****** Object:  Default [DF_KS_MoodList_M5]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_M5]  DEFAULT ((0)) FOR [M5]
GO
/****** Object:  Default [DF_KS_MoodList_M6]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_M6]  DEFAULT ((0)) FOR [M6]
GO
/****** Object:  Default [DF_KS_MoodList_M7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_M7]  DEFAULT ((0)) FOR [M7]
GO
/****** Object:  Default [DF_KS_MoodList_M8]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_M8]  DEFAULT ((0)) FOR [M8]
GO
/****** Object:  Default [DF_KS_MoodList_M9]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_M9]  DEFAULT ((0)) FOR [M9]
GO
/****** Object:  Default [DF_KS_MoodList_M10]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_M10]  DEFAULT ((0)) FOR [M10]
GO
/****** Object:  Default [DF_KS_MoodList_M11]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_M11]  DEFAULT ((0)) FOR [M11]
GO
/****** Object:  Default [DF_KS_MoodList_M12]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_M12]  DEFAULT ((0)) FOR [M12]
GO
/****** Object:  Default [DF_KS_MoodList_M13]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_M13]  DEFAULT ((0)) FOR [M13]
GO
/****** Object:  Default [DF_KS_MoodList_M14]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_MoodList] ADD  CONSTRAINT [DF_KS_MoodList_M14]  DEFAULT ((0)) FOR [M14]
GO
/****** Object:  Default [DF__KS_PKGD__UserID__772B9A0B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_PKGD] ADD  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF__KS_Paymen__PayId__781FBE44]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_PaymentPlatItem] ADD  DEFAULT ((0)) FOR [PayId]
GO
/****** Object:  Default [DF__KS_Paymen__IsDef__7913E27D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_PaymentPlatItem] ADD  DEFAULT ((0)) FOR [IsDefault]
GO
/****** Object:  Default [DF_KS_PaymentPlat_showflag]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_PaymentPlat] ADD  CONSTRAINT [DF_KS_PaymentPlat_showflag]  DEFAULT ((0)) FOR [showflag]
GO
/****** Object:  Default [DF_KS_Admin_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Admin] ADD  CONSTRAINT [DF_KS_Admin_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_Admin_LastLoginTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Admin] ADD  CONSTRAINT [DF_KS_Admin_LastLoginTime]  DEFAULT (getdate()) FOR [LastLoginTime]
GO
/****** Object:  Default [DF_KS_Admin_LastLogoutTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Admin] ADD  CONSTRAINT [DF_KS_Admin_LastLogoutTime]  DEFAULT (getdate()) FOR [LastLogoutTime]
GO
/****** Object:  Default [DF__KS_Admin__LoginT__7B905C75]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Admin] ADD  CONSTRAINT [DF__KS_Admin__LoginT__7B905C75]  DEFAULT ((0)) FOR [LoginTimes]
GO
/****** Object:  Default [DF__KS_Admin__Locked__7C8480AE]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Admin] ADD  CONSTRAINT [DF__KS_Admin__Locked__7C8480AE]  DEFAULT ((0)) FOR [Locked]
GO
/****** Object:  Default [DF_KS_Admin_SysAdmin]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Admin] ADD  CONSTRAINT [DF_KS_Admin_SysAdmin]  DEFAULT ((0)) FOR [SysAdmin]
GO
/****** Object:  Default [DF__KS_Admin__UserTy__7D78A4E7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Admin] ADD  CONSTRAINT [DF__KS_Admin__UserTy__7D78A4E7]  DEFAULT ('0') FOR [UserType]
GO
/****** Object:  Default [DF_KS_Admin_DocPower]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Admin] ADD  CONSTRAINT [DF_KS_Admin_DocPower]  DEFAULT ((0)) FOR [DocPower]
GO
/****** Object:  Default [DF__KS_Admin__Role__122A7461]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Admin] ADD  CONSTRAINT [DF__KS_Admin__Role__122A7461]  DEFAULT ((0)) FOR [Role]
GO
/****** Object:  Default [DF_KS_Admin_ProvinceId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Admin] ADD  CONSTRAINT [DF_KS_Admin_ProvinceId]  DEFAULT ((0)) FOR [ProvinceId]
GO
/****** Object:  Default [DF_KS_Admin_CityId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Admin] ADD  CONSTRAINT [DF_KS_Admin_CityId]  DEFAULT ((0)) FOR [CityId]
GO
/****** Object:  Default [DF_KS_Admin_CountyId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Admin] ADD  CONSTRAINT [DF_KS_Admin_CountyId]  DEFAULT ((0)) FOR [CountyId]
GO
/****** Object:  Default [DF_KS_AccessTokens_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_AccessTokens] ADD  CONSTRAINT [DF_KS_AccessTokens_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_ProBundleSelect_ProID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBundleSelect] ADD  CONSTRAINT [DF_KS_ProBundleSelect_ProID]  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF_KS_ProBundleSelect_Price]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBundleSelect] ADD  CONSTRAINT [DF_KS_ProBundleSelect_Price]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF_KS_ProBundleSelect_Num]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBundleSelect] ADD  CONSTRAINT [DF_KS_ProBundleSelect_Num]  DEFAULT ((0)) FOR [Num]
GO
/****** Object:  Default [DF_KS_ProBundleSelect_addDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBundleSelect] ADD  CONSTRAINT [DF_KS_ProBundleSelect_addDate]  DEFAULT (getdate()) FOR [addDate]
GO
/****** Object:  Default [DF_KS_ProBundleSelect_attrid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBundleSelect] ADD  CONSTRAINT [DF_KS_ProBundleSelect_attrid]  DEFAULT ((0)) FOR [attrid]
GO
/****** Object:  Default [DF_KS_ProBundleSale_proid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBundleSale] ADD  CONSTRAINT [DF_KS_ProBundleSale_proid]  DEFAULT ((0)) FOR [infoid]
GO
/****** Object:  Default [DF_KS_ProBundleSale_kbproid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBundleSale] ADD  CONSTRAINT [DF_KS_ProBundleSale_kbproid]  DEFAULT ((0)) FOR [kbinfoid]
GO
/****** Object:  Default [DF_KS_ProBundleSale_kbprice]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBundleSale] ADD  CONSTRAINT [DF_KS_ProBundleSale_kbprice]  DEFAULT ((0)) FOR [kbprice]
GO
/****** Object:  Default [DF_KS_ProBundleSale_attrid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBundleSale] ADD  CONSTRAINT [DF_KS_ProBundleSale_attrid]  DEFAULT ((0)) FOR [attrid]
GO
/****** Object:  Default [DF_KS_ProBrandR_ClassID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBrandR] ADD  CONSTRAINT [DF_KS_ProBrandR_ClassID]  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF_KS_ProClassBrandR_BrandID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBrandR] ADD  CONSTRAINT [DF_KS_ProClassBrandR_BrandID]  DEFAULT ((0)) FOR [BrandID]
GO
/****** Object:  Default [DF_KS_ClassBrand_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBrand] ADD  CONSTRAINT [DF_KS_ClassBrand_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_KS_ClassBrand_ShowInTop]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBrand] ADD  CONSTRAINT [DF_KS_ClassBrand_ShowInTop]  DEFAULT ((0)) FOR [ShowInTop]
GO
/****** Object:  Default [DF_KS_ClassBrand_Recommend]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBrand] ADD  CONSTRAINT [DF_KS_ClassBrand_Recommend]  DEFAULT ((0)) FOR [Recommend]
GO
/****** Object:  Default [DF_KS_ProBrand_num]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBrand] ADD  CONSTRAINT [DF_KS_ProBrand_num]  DEFAULT ((0)) FOR [num]
GO
/****** Object:  Default [DF__KS_ProBoo__CityN__15B0212B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBookCodeType] ADD  DEFAULT ((0)) FOR [CityNum]
GO
/****** Object:  Default [DF__KS_ProBoo__IsOpe__16A44564]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBookCodeType] ADD  DEFAULT ((0)) FOR [IsOpenApply]
GO
/****** Object:  Default [DF__KS_ProBoo__Apply__1798699D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBookCodeType] ADD  DEFAULT ((0)) FOR [ApplyMustLogin]
GO
/****** Object:  Default [DF__KS_ProBoo__Apply__188C8DD6]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBookCodeType] ADD  DEFAULT ((0)) FOR [ApplyNum]
GO
/****** Object:  Default [DF_KS_ProBookCodeType_UseApplyCity]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBookCodeType] ADD  CONSTRAINT [DF_KS_ProBookCodeType_UseApplyCity]  DEFAULT ((0)) FOR [UseApplyCity]
GO
/****** Object:  Default [DF__KS_ProBoo__IsUse__1A74D648]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBookCode] ADD  DEFAULT ((0)) FOR [IsUsed]
GO
/****** Object:  Default [DF__KS_ProBoo__TypeI__1B68FA81]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBookCode] ADD  DEFAULT ((0)) FOR [TypeID]
GO
/****** Object:  Default [DF__KS_ProBoo__CityI__1C5D1EBA]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBookCode] ADD  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF__KS_ProBoo__Provi__1D5142F3]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBookCode] ADD  DEFAULT ((0)) FOR [ProvinceId]
GO
/****** Object:  Default [DF__KS_ProBoo__Count__1E45672C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBookCode] ADD  DEFAULT ((0)) FOR [CountyID]
GO
/****** Object:  Default [DF__KS_ProBoo__IsPub__1F398B65]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBookCode] ADD  DEFAULT ((0)) FOR [IsPub]
GO
/****** Object:  Default [DF__KS_ProBid__InfoI__202DAF9E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBiddingAsk] ADD  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF__KS_ProBid__Money__2121D3D7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBiddingAsk] ADD  DEFAULT ((0)) FOR [Money]
GO
/****** Object:  Default [DF__KS_ProBid__UserI__2215F810]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBiddingAsk] ADD  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF__KS_ProBid__Statu__230A1C49]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBiddingAsk] ADD  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF__KS_ProBidd__IsZB__23FE4082]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBiddingAsk] ADD  DEFAULT ((0)) FOR [IsZB]
GO
/****** Object:  Default [DF__KS_ProBid__Agent__24F264BB]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBiddingAsk] ADD  DEFAULT ((0)) FOR [AgentPrice]
GO
/****** Object:  Default [DF__KS_ProBid__InfoI__25E688F4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBidding] ADD  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF__KS_ProBid__Money__26DAAD2D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBidding] ADD  DEFAULT ((0)) FOR [Money]
GO
/****** Object:  Default [DF__KS_ProBidd__Bail__27CED166]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBidding] ADD  DEFAULT ((0)) FOR [Bail]
GO
/****** Object:  Default [DF__KS_ProBiddi__Num__28C2F59F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBidding] ADD  DEFAULT ((0)) FOR [Num]
GO
/****** Object:  Default [DF__KS_ProBid__Exten__29B719D8]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBidding] ADD  DEFAULT ((0)) FOR [ExtendTime]
GO
/****** Object:  Default [DF__KS_ProBid__Hight__2AAB3E11]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBidding] ADD  DEFAULT ((0)) FOR [HightMoney]
GO
/****** Object:  Default [DF__KS_ProBid__Times__2B9F624A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBidding] ADD  DEFAULT ((0)) FOR [Times]
GO
/****** Object:  Default [DF__KS_ProBid__IsEnd__2C938683]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProBidding] ADD  DEFAULT ((0)) FOR [IsEnd]
GO
/****** Object:  Default [DF_KS_ProAsk_ProID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProAsk] ADD  CONSTRAINT [DF_KS_ProAsk_ProID]  DEFAULT ((0)) FOR [ProID]
GO
/****** Object:  Default [DF_KS_ProAsk_ProductType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProAsk] ADD  CONSTRAINT [DF_KS_ProAsk_ProductType]  DEFAULT ((0)) FOR [ProductType]
GO
/****** Object:  Default [DF__KS_ProAmo__ProID__2F6FF32E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProAmount] ADD  DEFAULT ((0)) FOR [ProID]
GO
/****** Object:  Default [DF__KS_ProAmo__AttrI__30641767]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProAmount] ADD  DEFAULT ((0)) FOR [AttrID]
GO
/****** Object:  Default [DF__KS_ProAmo__Store__31583BA0]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProAmount] ADD  DEFAULT ((0)) FOR [StoreID]
GO
/****** Object:  Default [DF__KS_ProAmo__Amoun__324C5FD9]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProAmount] ADD  DEFAULT ((0)) FOR [Amount]
GO
/****** Object:  Default [DF_KS_ProAddress_ProvinceID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProAddress] ADD  CONSTRAINT [DF_KS_ProAddress_ProvinceID]  DEFAULT ((0)) FOR [ProvinceID]
GO
/****** Object:  Default [DF_KS_ProAddress_CityID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProAddress] ADD  CONSTRAINT [DF_KS_ProAddress_CityID]  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF_KS_ProAddress_CountyID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProAddress] ADD  CONSTRAINT [DF_KS_ProAddress_CountyID]  DEFAULT ((0)) FOR [CountyID]
GO
/****** Object:  Default [DF_KS_ProAddress_IsDefault]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProAddress] ADD  CONSTRAINT [DF_KS_ProAddress_IsDefault]  DEFAULT ((0)) FOR [IsDefault]
GO
/****** Object:  Default [DF_KS_PKZT_UserTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_PKZT] ADD  CONSTRAINT [DF_KS_PKZT_UserTF]  DEFAULT ((0)) FOR [UserTF]
GO
/****** Object:  Default [DF_KS_PKZT_OnceTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_PKZT] ADD  CONSTRAINT [DF_KS_PKZT_OnceTF]  DEFAULT ((0)) FOR [OnceTF]
GO
/****** Object:  Default [DF_KS_PKZT_VerifyTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_PKZT] ADD  CONSTRAINT [DF_KS_PKZT_VerifyTF]  DEFAULT ((0)) FOR [VerifyTF]
GO
/****** Object:  Default [DF_KS_PKZT_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_PKZT] ADD  CONSTRAINT [DF_KS_PKZT_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_PKZT_TimeLimit]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_PKZT] ADD  CONSTRAINT [DF_KS_PKZT_TimeLimit]  DEFAULT ((0)) FOR [TimeLimit]
GO
/****** Object:  Default [DF_KS_PKZT_BeginDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_PKZT] ADD  CONSTRAINT [DF_KS_PKZT_BeginDate]  DEFAULT (getdate()) FOR [BeginDate]
GO
/****** Object:  Default [DF_KS_PKZT_EndDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_PKZT] ADD  CONSTRAINT [DF_KS_PKZT_EndDate]  DEFAULT (getdate()) FOR [EndDate]
GO
/****** Object:  Default [DF_KS_PKZT_ZFVotes]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_PKZT] ADD  CONSTRAINT [DF_KS_PKZT_ZFVotes]  DEFAULT ((0)) FOR [ZFVotes]
GO
/****** Object:  Default [DF_KS_PKZT_FFVotes]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_PKZT] ADD  CONSTRAINT [DF_KS_PKZT_FFVotes]  DEFAULT ((0)) FOR [FFVotes]
GO
/****** Object:  Default [DF__KS_ProCou__Defau__3FA65AF7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCouponMessage] ADD  DEFAULT ((0)) FOR [DefaultNum]
GO
/****** Object:  Default [DF__KS_ProCou__MsgWa__409A7F30]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCouponMessage] ADD  DEFAULT ((0)) FOR [MsgWarnType]
GO
/****** Object:  Default [DF_KS_ProCoupon_FaceValue]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCoupon] ADD  CONSTRAINT [DF_KS_ProCoupon_FaceValue]  DEFAULT ((0)) FOR [FaceValue]
GO
/****** Object:  Default [DF_KS_ProCoupon_MinAmount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCoupon] ADD  CONSTRAINT [DF_KS_ProCoupon_MinAmount]  DEFAULT ((0)) FOR [MinAmount]
GO
/****** Object:  Default [DF_KS_ProCoupon_CouponType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCoupon] ADD  CONSTRAINT [DF_KS_ProCoupon_CouponType]  DEFAULT ((0)) FOR [CouponType]
GO
/****** Object:  Default [DF_KS_ProCoupon_BeginDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCoupon] ADD  CONSTRAINT [DF_KS_ProCoupon_BeginDate]  DEFAULT (getdate()) FOR [BeginDate]
GO
/****** Object:  Default [DF_KS_ProCoupon_EndDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCoupon] ADD  CONSTRAINT [DF_KS_ProCoupon_EndDate]  DEFAULT (getdate()) FOR [EndDate]
GO
/****** Object:  Default [DF_KS_ProCoupon_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCoupon] ADD  CONSTRAINT [DF_KS_ProCoupon_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_ProCoupon_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCoupon] ADD  CONSTRAINT [DF_KS_ProCoupon_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_ProCoupon_MaxDiscount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCoupon] ADD  CONSTRAINT [DF_KS_ProCoupon_MaxDiscount]  DEFAULT ((0)) FOR [MaxDiscount]
GO
/****** Object:  Default [DF_KS_ProCoupon_LimitType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCoupon] ADD  CONSTRAINT [DF_KS_ProCoupon_LimitType]  DEFAULT ((0)) FOR [LimitType]
GO
/****** Object:  Default [DF_KS_ProCoupon_LimitIds]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCoupon] ADD  CONSTRAINT [DF_KS_ProCoupon_LimitIds]  DEFAULT ((1000)) FOR [LimitProIds]
GO
/****** Object:  Default [DF_KS_ProCoupon_isshow]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCoupon] ADD  CONSTRAINT [DF_KS_ProCoupon_isshow]  DEFAULT ((0)) FOR [isshow]
GO
/****** Object:  Default [DF_KS_ProCommentReply_cmtid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCommentReply] ADD  CONSTRAINT [DF_KS_ProCommentReply_cmtid]  DEFAULT ((0)) FOR [cmtid]
GO
/****** Object:  Default [DF_KS_ProCommentReply_userid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCommentReply] ADD  CONSTRAINT [DF_KS_ProCommentReply_userid]  DEFAULT ((0)) FOR [userid]
GO
/****** Object:  Default [DF_KS_ProComment_ProID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProComment] ADD  CONSTRAINT [DF_KS_ProComment_ProID]  DEFAULT ((0)) FOR [ProID]
GO
/****** Object:  Default [DF_KS_ProComment_StarNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProComment] ADD  CONSTRAINT [DF_KS_ProComment_StarNum]  DEFAULT ((0)) FOR [StarNum]
GO
/****** Object:  Default [DF_KS_ProComment_CmtType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProComment] ADD  CONSTRAINT [DF_KS_ProComment_CmtType]  DEFAULT ((0)) FOR [CmtType]
GO
/****** Object:  Default [DF_KS_ProComment_Support]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProComment] ADD  CONSTRAINT [DF_KS_ProComment_Support]  DEFAULT ((0)) FOR [Support]
GO
/****** Object:  Default [DF_KS_ProComment_CmtNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProComment] ADD  CONSTRAINT [DF_KS_ProComment_CmtNum]  DEFAULT ((0)) FOR [CmtNum]
GO
/****** Object:  Default [DF_KS_ProComment_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProComment] ADD  CONSTRAINT [DF_KS_ProComment_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF__KS_ProCom__order__53AD53A4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProComment] ADD  DEFAULT ((0)) FOR [orderType]
GO
/****** Object:  Default [DF_KS_ProComment_IsReply]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProComment] ADD  CONSTRAINT [DF_KS_ProComment_IsReply]  DEFAULT ((0)) FOR [IsReply]
GO
/****** Object:  Default [DF_KS_ProCouponUser_CouponId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCouponUser] ADD  CONSTRAINT [DF_KS_ProCouponUser_CouponId]  DEFAULT ((0)) FOR [CouponId]
GO
/****** Object:  Default [DF_KS_ProCouponUser_UseFlag]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCouponUser] ADD  CONSTRAINT [DF_KS_ProCouponUser_UseFlag]  DEFAULT ((0)) FOR [UseFlag]
GO
/****** Object:  Default [DF_KS_ProCouponUser_AvailableMoney]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCouponUser] ADD  CONSTRAINT [DF_KS_ProCouponUser_AvailableMoney]  DEFAULT ((0)) FOR [AvailableMoney]
GO
/****** Object:  Default [DF_KS_ProCouponUser_IsExtend]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProCouponUser] ADD  CONSTRAINT [DF_KS_ProCouponUser_IsExtend]  DEFAULT ((0)) FOR [IsExtend]
GO
/****** Object:  Default [DF_KS_ProductList_ChannelID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_ChannelID]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF_KS_ProductList_Weight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_Weight]  DEFAULT ((0)) FOR [Weight]
GO
/****** Object:  Default [DF_KS_ProductList_priority]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_priority]  DEFAULT ((0)) FOR [priority]
GO
/****** Object:  Default [DF_KS_ProductList_Hits]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_Hits]  DEFAULT ((0)) FOR [Hits]
GO
/****** Object:  Default [DF_KS_ProductList_BrandID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_BrandID]  DEFAULT ((0)) FOR [BrandID]
GO
/****** Object:  Default [DF_KS_ProductList_HitsByDay]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_HitsByDay]  DEFAULT ((0)) FOR [HitsByDay]
GO
/****** Object:  Default [DF_KS_ProductList_HitsByWeek]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_HitsByWeek]  DEFAULT ((0)) FOR [HitsByWeek]
GO
/****** Object:  Default [DF_KS_ProductList_HitsByMonth]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_HitsByMonth]  DEFAULT ((0)) FOR [HitsByMonth]
GO
/****** Object:  Default [DF_KS_ProductList_LastHitsTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_LastHitsTime]  DEFAULT (getdate()) FOR [LastHitsTime]
GO
/****** Object:  Default [DF_KS_ProductList_Amount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_Amount]  DEFAULT ((0)) FOR [Amount]
GO
/****** Object:  Default [DF_KS_ProductList_AlarmNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_AlarmNum]  DEFAULT ((0)) FOR [AlarmNum]
GO
/****** Object:  Default [DF_KS_ProductList_Price]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_Price]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF_KS_ProductList_Price_Member]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_Price_Member]  DEFAULT ((0)) FOR [Price_Member]
GO
/****** Object:  Default [DF_KS_ProductList_GroupPrice]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_GroupPrice]  DEFAULT ((0)) FOR [GroupPrice]
GO
/****** Object:  Default [DF_KS_ProductList_TaxTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_TaxTF]  DEFAULT ((0)) FOR [TaxTF]
GO
/****** Object:  Default [DF_KS_ProductList_Tax]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_Tax]  DEFAULT ((0)) FOR [Tax]
GO
/****** Object:  Default [DF_KS_ProductList_MinOrderNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_MinOrderNum]  DEFAULT ((0)) FOR [MinOrderNum]
GO
/****** Object:  Default [DF_KS_ProductList_MaxOrderNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_MaxOrderNum]  DEFAULT ((0)) FOR [MaxOrderNum]
GO
/****** Object:  Default [DF_KS_ProductList_VoteID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_VoteID]  DEFAULT ((0)) FOR [VoteID]
GO
/****** Object:  Default [DF_KS_ProductList_ShowOn3G]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_ShowOn3G]  DEFAULT ((0)) FOR [ShowOn3G]
GO
/****** Object:  Default [DF_KS_ProductList_RefreshTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_RefreshTF]  DEFAULT ((0)) FOR [RefreshTF]
GO
/****** Object:  Default [DF_KS_ProductList_Verify]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_Verify]  DEFAULT ((0)) FOR [Verify]
GO
/****** Object:  Default [DF_KS_ProductList_Point]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_Point]  DEFAULT ((0)) FOR [Score]
GO
/****** Object:  Default [DF_KS_ProductList_DelTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_DelTF]  DEFAULT ((0)) FOR [DelTF]
GO
/****** Object:  Default [DF_KS_ProductList_HasSold]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_HasSold]  DEFAULT ((0)) FOR [HasSold]
GO
/****** Object:  Default [DF_KS_ProductList_CommentNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_CommentNum]  DEFAULT ((0)) FOR [CommentNum]
GO
/****** Object:  Default [DF_KS_ProductList_CmtNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_CmtNum]  DEFAULT ((0)) FOR [CmtNum]
GO
/****** Object:  Default [DF_KS_ProductList_AskNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_AskNum]  DEFAULT ((0)) FOR [AskNum]
GO
/****** Object:  Default [DF_KS_ProductList_AttachmentCharge]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_AttachmentCharge]  DEFAULT ((0)) FOR [AttachmentCharge]
GO
/****** Object:  Default [DF_KS_ProductList_AttachmentChargeOnce]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_AttachmentChargeOnce]  DEFAULT ((0)) FOR [AttachmentChargeOnce]
GO
/****** Object:  Default [DF_KS_ProductList_IsScoreChange]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_IsScoreChange]  DEFAULT ((0)) FOR [IsScoreChange]
GO
/****** Object:  Default [DF_KS_ProductList_ChangeScore]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_ChangeScore]  DEFAULT ((0)) FOR [ChangeScore]
GO
/****** Object:  Default [DF_KS_ProductList_SocialIDs]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_SocialIDs]  DEFAULT ((0)) FOR [SocialIDs]
GO
/****** Object:  Default [DF__KS_Produc__Front__2818EA29]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__Front__2818EA29]  DEFAULT ((0)) FOR [FrontPrice]
GO
/****** Object:  Default [DF__KS_Produc__PayTy__290D0E62]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__PayTy__290D0E62]  DEFAULT ((0)) FOR [PayType]
GO
/****** Object:  Default [DF__KS_Produc__IsBoo__54D68207]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__IsBoo__54D68207]  DEFAULT ((0)) FOR [IsBookCode]
GO
/****** Object:  Default [DF__KS_Produc__BookC__55CAA640]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__BookC__55CAA640]  DEFAULT ((0)) FOR [BookCodeTypeID]
GO
/****** Object:  Default [DF__KS_Produc__Limit__56BECA79]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__Limit__56BECA79]  DEFAULT ((0)) FOR [LimitCityNum]
GO
/****** Object:  Default [DF__KS_Produc__IsPro__57B2EEB2]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__IsPro__57B2EEB2]  DEFAULT ((0)) FOR [IsPromotions]
GO
/****** Object:  Default [DF__KS_Produc__Provi__58A712EB]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__Provi__58A712EB]  DEFAULT ((0)) FOR [ProvinceID]
GO
/****** Object:  Default [DF__KS_Produc__CityI__599B3724]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__CityI__599B3724]  DEFAULT ((0)) FOR [CityId]
GO
/****** Object:  Default [DF__KS_Produc__Count__5A8F5B5D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__Count__5A8F5B5D]  DEFAULT ((0)) FOR [CountyId]
GO
/****** Object:  Default [DF__KS_Produc__IsGro__294D0584]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__IsGro__294D0584]  DEFAULT ((0)) FOR [IsGroupRate]
GO
/****** Object:  Default [DF__KS_Produc__payId__68C86C1B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__payId__68C86C1B]  DEFAULT ((0)) FOR [payId]
GO
/****** Object:  Default [DF__KS_Produc__Limit__5DABBF2A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__Limit__5DABBF2A]  DEFAULT ((0)) FOR [LimitBuyType]
GO
/****** Object:  Default [DF__KS_Produc__Limit__5E9FE363]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__Limit__5E9FE363]  DEFAULT ((0)) FOR [LimitBuyNum]
GO
/****** Object:  Default [DF__KS_Produc__Price__5F94079C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__Price__5F94079C]  DEFAULT ((0)) FOR [Price_Cost]
GO
/****** Object:  Default [DF__KS_Produc__GoodN__603E1312]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__GoodN__603E1312]  DEFAULT ((0)) FOR [GoodNum]
GO
/****** Object:  Default [DF__KS_Produc__BadNu__6132374B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__BadNu__6132374B]  DEFAULT ((0)) FOR [BadNum]
GO
/****** Object:  Default [DF__KS_Produc__FavNu__62265B84]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__FavNu__62265B84]  DEFAULT ((0)) FOR [FavNum]
GO
/****** Object:  Default [DF__KS_Produc__Share__631A7FBD]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__Share__631A7FBD]  DEFAULT ((0)) FOR [ShareNum]
GO
/****** Object:  Default [DF_KS_ProductList_AllowBuyFlag]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF_KS_ProductList_AllowBuyFlag]  DEFAULT ((0)) FOR [AllowBuyFlag]
GO
/****** Object:  Default [DF__KS_Produc__Freig__098B0CBF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProductList] ADD  CONSTRAINT [DF__KS_Produc__Freig__098B0CBF]  DEFAULT ((0)) FOR [FreightFree]
GO
/****** Object:  Default [DF_KS_ProDeliveryItem_DeliveryID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDeliveryItem] ADD  CONSTRAINT [DF_KS_ProDeliveryItem_DeliveryID]  DEFAULT ((0)) FOR [DeliveryID]
GO
/****** Object:  Default [DF_KS_ProDeliveryItem_IsCod]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDeliveryItem] ADD  CONSTRAINT [DF_KS_ProDeliveryItem_IsCod]  DEFAULT ((0)) FOR [IsCod]
GO
/****** Object:  Default [DF_KS_ProDeliveryItem_FirstFreight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDeliveryItem] ADD  CONSTRAINT [DF_KS_ProDeliveryItem_FirstFreight]  DEFAULT ((0)) FOR [FirstFreight]
GO
/****** Object:  Default [DF_KS_ProDeliveryItem_ContinueFreight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDeliveryItem] ADD  CONSTRAINT [DF_KS_ProDeliveryItem_ContinueFreight]  DEFAULT ((0)) FOR [ContinueFreight]
GO
/****** Object:  Default [DF_KS_ProDeliveryItem_LimitFreight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDeliveryItem] ADD  CONSTRAINT [DF_KS_ProDeliveryItem_LimitFreight]  DEFAULT ((0)) FOR [LimitFreight]
GO
/****** Object:  Default [DF__KS_ProDel__store__0C67796A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDeliveryItem] ADD  CONSTRAINT [DF__KS_ProDel__store__0C67796A]  DEFAULT ((0)) FOR [storeId]
GO
/****** Object:  Default [DF__KS_ProDel__store__0D5B9DA3]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDeliveryItem] ADD  CONSTRAINT [DF__KS_ProDel__store__0D5B9DA3]  DEFAULT ((0)) FOR [storeType]
GO
/****** Object:  Default [DF_KS_ProDeliveryItem_IsSection]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDeliveryItem] ADD  CONSTRAINT [DF_KS_ProDeliveryItem_IsSection]  DEFAULT ((0)) FOR [IsSection]
GO
/****** Object:  Default [DF_KS_ProDeliveryCorp_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDeliveryCorp] ADD  CONSTRAINT [DF_KS_ProDeliveryCorp_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_KS_ProDelivery_CorpId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_CorpId]  DEFAULT ((0)) FOR [CorpId]
GO
/****** Object:  Default [DF_KS_ProDelivery_FreightType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_FreightType]  DEFAULT ((0)) FOR [FreightType]
GO
/****** Object:  Default [DF_KS_ProDelivery_Freight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_Freight]  DEFAULT ((0)) FOR [Freight]
GO
/****** Object:  Default [DF_KS_ProDelivery_FirstHeavy]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_FirstHeavy]  DEFAULT ((0)) FOR [FirstHeavy]
GO
/****** Object:  Default [DF_KS_ProDelivery_ContinueHeavy]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_ContinueHeavy]  DEFAULT ((0)) FOR [ContinueHeavy]
GO
/****** Object:  Default [DF_KS_ProDelivery_FirstFreight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_FirstFreight]  DEFAULT ((0)) FOR [FirstFreight]
GO
/****** Object:  Default [DF_KS_ProDelivery_ContinueFreight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_ContinueFreight]  DEFAULT ((0)) FOR [ContinueFreight]
GO
/****** Object:  Default [DF_KS_ProDelivery_LimitFreight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_LimitFreight]  DEFAULT ((0)) FOR [LimitFreight]
GO
/****** Object:  Default [DF_KS_ProDelivery_ChargeType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_ChargeType]  DEFAULT ((0)) FOR [ChargeType]
GO
/****** Object:  Default [DF_KS_ProDelivery_PromotionType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_PromotionType]  DEFAULT ((0)) FOR [PromotionType]
GO
/****** Object:  Default [DF_KS_ProDelivery_Freight2]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_Freight2]  DEFAULT ((0)) FOR [Freight2]
GO
/****** Object:  Default [DF_KS_ProDelivery_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_ProDelivery_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_KS_ProDelivery_IsDefault]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_IsDefault]  DEFAULT ((0)) FOR [IsDefault]
GO
/****** Object:  Default [DF_KS_ProDelivery_CityFirstFreight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_CityFirstFreight]  DEFAULT ((0)) FOR [CityFirstFreight]
GO
/****** Object:  Default [DF_KS_ProDelivery_CityContinueFreight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_CityContinueFreight]  DEFAULT ((0)) FOR [CityContinueFreight]
GO
/****** Object:  Default [DF_KS_ProDelivery_CityLimitFreight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_CityLimitFreight]  DEFAULT ((0)) FOR [CityLimitFreight]
GO
/****** Object:  Default [DF_KS_ProDelivery_CityIsCod]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_CityIsCod]  DEFAULT ((0)) FOR [CityIsCod]
GO
/****** Object:  Default [DF_KS_ProDelivery_ProvinceFirstFreight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_ProvinceFirstFreight]  DEFAULT ((0)) FOR [ProvinceFirstFreight]
GO
/****** Object:  Default [DF_KS_ProDelivery_ProvinceContinueFreight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_ProvinceContinueFreight]  DEFAULT ((0)) FOR [ProvinceContinueFreight]
GO
/****** Object:  Default [DF_KS_ProDelivery_ProvinceIsCod]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  CONSTRAINT [DF_KS_ProDelivery_ProvinceIsCod]  DEFAULT ((0)) FOR [ProvinceIsCod]
GO
/****** Object:  Default [DF__KS_ProDel__Detai__288DEB75]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  DEFAULT ((0)) FOR [DetailTipsTF]
GO
/****** Object:  Default [DF__KS_ProDeli__isZT__29820FAE]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  DEFAULT ((0)) FOR [isZT]
GO
/****** Object:  Default [DF__KS_ProDel__IsCit__2A7633E7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  DEFAULT ((0)) FOR [IsCityTF]
GO
/****** Object:  Default [DF__KS_ProDel__IsPro__2B6A5820]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  DEFAULT ((0)) FOR [IsProvinceTF]
GO
/****** Object:  Default [DF__KS_ProDel__OneWe__2C5E7C59]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  DEFAULT ((0)) FOR [OneWeight]
GO
/****** Object:  Default [DF__KS_ProDel__Limit__2D52A092]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  DEFAULT ((0)) FOR [LimitWeight]
GO
/****** Object:  Default [DF__KS_ProDel__Limit__2E46C4CB]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  DEFAULT ((0)) FOR [LimitMinWeight]
GO
/****** Object:  Default [DF__KS_ProDel__IsFre__2F3AE904]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProDelivery] ADD  DEFAULT ((0)) FOR [IsFreightFree]
GO
/****** Object:  Default [DF_KS_ProLimitBuy_TaskType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProLimitBuy] ADD  CONSTRAINT [DF_KS_ProLimitBuy_TaskType]  DEFAULT ((0)) FOR [TaskType]
GO
/****** Object:  Default [DF_KS_ProLimitBuy_LimitBuyBeginTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProLimitBuy] ADD  CONSTRAINT [DF_KS_ProLimitBuy_LimitBuyBeginTime]  DEFAULT (getdate()) FOR [LimitBuyBeginTime]
GO
/****** Object:  Default [DF_KS_ProLimitBuy_LimitBuyEndTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProLimitBuy] ADD  CONSTRAINT [DF_KS_ProLimitBuy_LimitBuyEndTime]  DEFAULT (getdate()) FOR [LimitBuyEndTime]
GO
/****** Object:  Default [DF_KS_ProLimitBuy_LimitBuyPayTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProLimitBuy] ADD  CONSTRAINT [DF_KS_ProLimitBuy_LimitBuyPayTime]  DEFAULT ((0)) FOR [LimitBuyPayTime]
GO
/****** Object:  Default [DF_KS_ProLimitBuy_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProLimitBuy] ADD  CONSTRAINT [DF_KS_ProLimitBuy_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_ProLimitBuy_Recommend]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProLimitBuy] ADD  CONSTRAINT [DF_KS_ProLimitBuy_Recommend]  DEFAULT ((0)) FOR [Recommend]
GO
/****** Object:  Default [DF__KS_ProLim__Provi__35E7E693]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProLimitBuy] ADD  DEFAULT ((0)) FOR [ProvinceID]
GO
/****** Object:  Default [DF__KS_ProLim__CityI__36DC0ACC]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProLimitBuy] ADD  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF__KS_ProLim__Count__37D02F05]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProLimitBuy] ADD  DEFAULT ((0)) FOR [CountyID]
GO
/****** Object:  Default [DF__KS_ProInv__Invoi__38C4533E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProInvoice] ADD  DEFAULT ((0)) FOR [InvoiceType]
GO
/****** Object:  Default [DF__KS_ProInv__Title__39B87777]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProInvoice] ADD  DEFAULT ((0)) FOR [TitleType]
GO
/****** Object:  Default [DF__KS_ProInv__IsDef__3AAC9BB0]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProInvoice] ADD  DEFAULT ((0)) FOR [IsDefault]
GO
/****** Object:  Default [DF__KS_ProInv__Provi__3BA0BFE9]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProInvoice] ADD  DEFAULT ((0)) FOR [ProvinceID]
GO
/****** Object:  Default [DF__KS_ProInv__CityI__3C94E422]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProInvoice] ADD  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF__KS_ProInv__Count__3D89085B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProInvoice] ADD  DEFAULT ((0)) FOR [CountyId]
GO
/****** Object:  Default [DF__KS_ProIma__Order__3E7D2C94]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProImages] ADD  DEFAULT ((0)) FOR [OrderId]
GO
/****** Object:  Default [DF_KS_ProGroupPrice_InfoID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupPrice] ADD  CONSTRAINT [DF_KS_ProGroupPrice_InfoID]  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF_KS_ProGroupPrice_GroupID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupPrice] ADD  CONSTRAINT [DF_KS_ProGroupPrice_GroupID]  DEFAULT ((0)) FOR [GroupID]
GO
/****** Object:  Default [DF_KS_ProGroupPrice_Price]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupPrice] ADD  CONSTRAINT [DF_KS_ProGroupPrice_Price]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF__KS_ProGro__InfoI__424DBD78]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuyConsumer] ADD  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF__KS_ProGro__Times__4341E1B1]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuyConsumer] ADD  DEFAULT ((0)) FOR [Times]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_BigClassID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_BigClassID]  DEFAULT ((0)) FOR [BigClassID]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_ClassID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_ClassID]  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_Locked]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_Locked]  DEFAULT ((0)) FOR [Locked]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_EndTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_EndTF]  DEFAULT ((0)) FOR [EndTF]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_AllowBMFlag]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_AllowBMFlag]  DEFAULT ((0)) FOR [AllowBMFlag]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_minnum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_minnum]  DEFAULT ((0)) FOR [minnum]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_minnumtime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_minnumtime]  DEFAULT (getdate()) FOR [minnumtime]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_IsSuccess]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_IsSuccess]  DEFAULT ((0)) FOR [IsSuccess]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_Discount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_Discount]  DEFAULT ((0)) FOR [Discount]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_Weight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_Weight]  DEFAULT ((0)) FOR [Weight]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_LimitBuyNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_LimitBuyNum]  DEFAULT ((0)) FOR [LimitBuyNum]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_Recommend]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_Recommend]  DEFAULT ((0)) FOR [Recommend]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_ProvinceID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_ProvinceID]  DEFAULT ((0)) FOR [ProvinceID]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_CityID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_CityID]  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_HasSellNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_HasSellNum]  DEFAULT ((0)) FOR [HasSellNum]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_RealSellNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_RealSellNum]  DEFAULT ((0)) FOR [RealSellNum]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_CleanCart]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_CleanCart]  DEFAULT ((0)) FOR [CleanCart]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_ShowDelivery]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_ShowDelivery]  DEFAULT ((0)) FOR [ShowDelivery]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_Comment]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_Comment]  DEFAULT ((0)) FOR [Comment]
GO
/****** Object:  Default [DF__KS_ProGro__IsBus__5654B625]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  DEFAULT ((0)) FOR [IsBusiness]
GO
/****** Object:  Default [DF__KS_ProGro__Freig__5748DA5E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  DEFAULT ((0)) FOR [FreightType]
GO
/****** Object:  Default [DF__KS_ProGro__Freig__583CFE97]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  DEFAULT ((0)) FOR [Freight]
GO
/****** Object:  Default [DF__KS_ProGro__Amoun__593122D0]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  DEFAULT ((0)) FOR [Amount]
GO
/****** Object:  Default [DF__KS_ProGro__Amoun__5A254709]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  DEFAULT ((0)) FOR [AmountNum]
GO
/****** Object:  Default [DF__KS_ProGro__payId__5B196B42]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  DEFAULT ((0)) FOR [payId]
GO
/****** Object:  Default [DF_KS_ProGroupBuy_cmtnum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProGroupBuy] ADD  CONSTRAINT [DF_KS_ProGroupBuy_cmtnum]  DEFAULT ((0)) FOR [cmtnum]
GO
/****** Object:  Default [DF_KS_ProOrder_PayDiscountMoney]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_PayDiscountMoney]  DEFAULT ((0)) FOR [PayDiscountMoney]
GO
/****** Object:  Default [DF_KS_ProOrder_Invoiced]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_Invoiced]  DEFAULT ((0)) FOR [IsInvoice]
GO
/****** Object:  Default [DF_KS_ProOrder_Invoiced_1]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_Invoiced_1]  DEFAULT ((0)) FOR [Invoiced]
GO
/****** Object:  Default [DF_KS_ProOrder_MoneyReceipt]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_MoneyReceipt]  DEFAULT ((0)) FOR [MoneyReceipt]
GO
/****** Object:  Default [DF_KS_ProOrder_Score]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_Score]  DEFAULT ((0)) FOR [OrderScore]
GO
/****** Object:  Default [DF_KS_ProOrder_ScoreTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_ScoreTF]  DEFAULT ((0)) FOR [ScoreTF]
GO
/****** Object:  Default [DF_KS_ProOrder_ProvinceID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_ProvinceID]  DEFAULT ((0)) FOR [ProvinceID]
GO
/****** Object:  Default [DF_KS_ProOrder_CityID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_CityID]  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF_KS_ProOrder_CountyID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_CountyID]  DEFAULT ((0)) FOR [CountyID]
GO
/****** Object:  Default [DF_KS_ProOrder_DeliverStatus]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_DeliverStatus]  DEFAULT ((0)) FOR [DeliverStatus]
GO
/****** Object:  Default [DF_KS_ProOrder_IsAnonymous]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_IsAnonymous]  DEFAULT ((0)) FOR [IsAnonymous]
GO
/****** Object:  Default [DF_KS_ProOrder_PaymentPlatId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_PaymentPlatId]  DEFAULT ((0)) FOR [PaymentPlatId]
GO
/****** Object:  Default [DF_KS_ProOrder_PayStatus]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_PayStatus]  DEFAULT ((0)) FOR [PayStatus]
GO
/****** Object:  Default [DF_KS_ProOrder_OrderType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_OrderType]  DEFAULT ((0)) FOR [OrderType]
GO
/****** Object:  Default [DF_KS_ProOrder_SmsNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_SmsNum]  DEFAULT ((0)) FOR [SmsNum]
GO
/****** Object:  Default [DF_KS_ProOrder_IsTips]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_IsTips]  DEFAULT ((0)) FOR [IsTips]
GO
/****** Object:  Default [DF_KS_ProOrder_IsTipsUser]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_IsTipsUser]  DEFAULT ((0)) FOR [IsTipsUser]
GO
/****** Object:  Default [DF_KS_ProOrder_ChangeScore]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_ChangeScore]  DEFAULT ((0)) FOR [ChangeScore]
GO
/****** Object:  Default [DF__KS_ProOrd__IsBus__605D434C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF__KS_ProOrd__IsBus__605D434C]  DEFAULT ((0)) FOR [IsBusiness]
GO
/****** Object:  Default [DF__KS_ProOrd__IsBus__61516785]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF__KS_ProOrd__IsBus__61516785]  DEFAULT ((0)) FOR [IsBusinessConfirm]
GO
/****** Object:  Default [DF__KS_ProOrd__Consu__62458BBE]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF__KS_ProOrd__Consu__62458BBE]  DEFAULT ((0)) FOR [ConsumptionMode]
GO
/****** Object:  Default [DF__KS_ProOrd__IsFro__6339AFF7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF__KS_ProOrd__IsFro__6339AFF7]  DEFAULT ((0)) FOR [IsFrontPay]
GO
/****** Object:  Default [DF__KS_ProOrd__Front__642DD430]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF__KS_ProOrd__Front__642DD430]  DEFAULT ((0)) FOR [FrontMoney]
GO
/****** Object:  Default [DF__KS_ProOrd__SaveM__53AD53A4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF__KS_ProOrd__SaveM__53AD53A4]  DEFAULT ((0)) FOR [SaveMoney]
GO
/****** Object:  Default [DF__KS_ProOrd__payId__6AB0B48D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF__KS_ProOrd__payId__6AB0B48D]  DEFAULT ((0)) FOR [payId]
GO
/****** Object:  Default [DF__KS_ProOrd__Store__6A11960F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF__KS_ProOrd__Store__6A11960F]  DEFAULT ((0)) FOR [StoreID]
GO
/****** Object:  Default [DF__KS_ProOrd__Order__6B05BA48]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF__KS_ProOrd__Order__6B05BA48]  DEFAULT ((0)) FOR [OrderDevice]
GO
/****** Object:  Default [DF__KS_ProOrd__IsRec__4298A192]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF__KS_ProOrd__IsRec__4298A192]  DEFAULT ((0)) FOR [IsReceivExtended]
GO
/****** Object:  Default [DF_KS_ProOrder_userid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_userid]  DEFAULT ((0)) FOR [userid]
GO
/****** Object:  Default [DF_KS_ProOrder_ExpressCorpId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_ExpressCorpId]  DEFAULT ((0)) FOR [ExpressCorpId]
GO
/****** Object:  Default [DF_KS_ProOrder_IsLeader]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_IsLeader]  DEFAULT ((0)) FOR [IsLeader]
GO
/****** Object:  Default [DF_KS_ProOrder_JoinNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_JoinNum]  DEFAULT ((0)) FOR [JoinNum]
GO
/****** Object:  Default [DF_KS_ProOrder_GoupNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_GoupNum]  DEFAULT ((0)) FOR [GoupNum]
GO
/****** Object:  Default [DF_KS_ProOrder_IsEnd]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrder] ADD  CONSTRAINT [DF_KS_ProOrder_IsEnd]  DEFAULT ((0)) FOR [IsEnd]
GO
/****** Object:  Default [DF_KS_ProLogInvoice_MoneyTotal]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProLogInvoice] ADD  CONSTRAINT [DF_KS_ProLogInvoice_MoneyTotal]  DEFAULT ((0)) FOR [MoneyTotal]
GO
/****** Object:  Default [DF_KS_ProLogDeliver_DeliverType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProLogDeliver] ADD  CONSTRAINT [DF_KS_ProLogDeliver_DeliverType]  DEFAULT ((0)) FOR [DeliverType]
GO
/****** Object:  Default [DF_KS_ProLogDeliver_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProLogDeliver] ADD  CONSTRAINT [DF_KS_ProLogDeliver_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_ProLogDeliver_MoneyReturnType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProLogDeliver] ADD  CONSTRAINT [DF_KS_ProLogDeliver_MoneyReturnType]  DEFAULT ((0)) FOR [MoneyReturnType]
GO
/****** Object:  Default [DF_KS_ProLogDeliver_HandlerStatus]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProLogDeliver] ADD  CONSTRAINT [DF_KS_ProLogDeliver_HandlerStatus]  DEFAULT ((0)) FOR [HandlerStatus]
GO
/****** Object:  Default [DF_KS_ProShoppingCart_Price_1]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProShoppingCart] ADD  CONSTRAINT [DF_KS_ProShoppingCart_Price_1]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF_KS_ProShoppingCart_Num]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProShoppingCart] ADD  CONSTRAINT [DF_KS_ProShoppingCart_Num]  DEFAULT ((0)) FOR [Num]
GO
/****** Object:  Default [DF_KS_ProShoppingCart_IsAnonymous]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProShoppingCart] ADD  CONSTRAINT [DF_KS_ProShoppingCart_IsAnonymous]  DEFAULT ((0)) FOR [IsAnonymous]
GO
/****** Object:  Default [DF_KS_ProShoppingCart_IsChangeBuy]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProShoppingCart] ADD  CONSTRAINT [DF_KS_ProShoppingCart_IsChangeBuy]  DEFAULT ((0)) FOR [IsChangeBuy]
GO
/****** Object:  Default [DF_KS_ProShoppingCart_IsBundleSale]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProShoppingCart] ADD  CONSTRAINT [DF_KS_ProShoppingCart_IsBundleSale]  DEFAULT ((0)) FOR [IsBundleSale]
GO
/****** Object:  Default [DF_KS_ProShoppingCart_IsLimitBuy]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProShoppingCart] ADD  CONSTRAINT [DF_KS_ProShoppingCart_IsLimitBuy]  DEFAULT ((0)) FOR [IsLimitBuy]
GO
/****** Object:  Default [DF_KS_ProShoppingCart_LimitBuyTaskID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProShoppingCart] ADD  CONSTRAINT [DF_KS_ProShoppingCart_LimitBuyTaskID]  DEFAULT ((0)) FOR [LimitBuyTaskID]
GO
/****** Object:  Default [DF_KS_ProShoppingCart_AttrID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProShoppingCart] ADD  CONSTRAINT [DF_KS_ProShoppingCart_AttrID]  DEFAULT ((0)) FOR [AttrID]
GO
/****** Object:  Default [DF_KS_ProShoppingCart_flag]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProShoppingCart] ADD  CONSTRAINT [DF_KS_ProShoppingCart_flag]  DEFAULT ((0)) FOR [flag]
GO
/****** Object:  Default [DF__KS_ProSho__CityI__0AC87E64]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProShoppingCart] ADD  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF_KS_ProShoppingCart_isToPay]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProShoppingCart] ADD  CONSTRAINT [DF_KS_ProShoppingCart_isToPay]  DEFAULT ((0)) FOR [isToPay]
GO
/****** Object:  Default [DF__KS_ProSen__Defau__0CB0C6D6]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProSendManage] ADD  DEFAULT ((0)) FOR [DefaultNum]
GO
/****** Object:  Default [DF__KS_ProOrd__statu__0DA4EB0F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderLog] ADD  DEFAULT ((0)) FOR [statusCode]
GO
/****** Object:  Default [DF__KS_ProOrd__LogDe__0E990F48]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderLog] ADD  DEFAULT ((0)) FOR [LogDeliverId]
GO
/****** Object:  Default [DF_KS_ProOrderItem_Price_Market]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderItem] ADD  CONSTRAINT [DF_KS_ProOrderItem_Price_Market]  DEFAULT ((0)) FOR [Price_Market]
GO
/****** Object:  Default [DF_KS_ProOrderItem_Price]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderItem] ADD  CONSTRAINT [DF_KS_ProOrderItem_Price]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF_KS_ProOrderItem_num]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderItem] ADD  CONSTRAINT [DF_KS_ProOrderItem_num]  DEFAULT ((0)) FOR [num]
GO
/****** Object:  Default [DF_KS_ProOrderItem_TotalPrice]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderItem] ADD  CONSTRAINT [DF_KS_ProOrderItem_TotalPrice]  DEFAULT ((0)) FOR [TotalPrice]
GO
/****** Object:  Default [DF_KS_ProOrderItem_IsChangedBuy]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderItem] ADD  CONSTRAINT [DF_KS_ProOrderItem_IsChangedBuy]  DEFAULT ((0)) FOR [IsChangeBuy]
GO
/****** Object:  Default [DF_KS_ProOrderItem_LimitBuyTaskID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderItem] ADD  CONSTRAINT [DF_KS_ProOrderItem_LimitBuyTaskID]  DEFAULT ((0)) FOR [LimitBuyTaskID]
GO
/****** Object:  Default [DF_KS_ProOrderItem_IsLimitBuy]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderItem] ADD  CONSTRAINT [DF_KS_ProOrderItem_IsLimitBuy]  DEFAULT ((0)) FOR [IsLimitBuy]
GO
/****** Object:  Default [DF_KS_ProOrderItem_IsBundleSale]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderItem] ADD  CONSTRAINT [DF_KS_ProOrderItem_IsBundleSale]  DEFAULT ((0)) FOR [IsBundleSale]
GO
/****** Object:  Default [DF_KS_ProOrderItem_ChangeScore]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderItem] ADD  CONSTRAINT [DF_KS_ProOrderItem_ChangeScore]  DEFAULT ((0)) FOR [ChangeScore]
GO
/****** Object:  Default [DF__KS_ProOrd__Freig__18227982]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderItem] ADD  DEFAULT ((0)) FOR [Freight]
GO
/****** Object:  Default [DF__KS_ProOrd__Freig__19169DBB]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderItem] ADD  DEFAULT ((0)) FOR [FreightType]
GO
/****** Object:  Default [DF__KS_ProOrd__CityI__1A0AC1F4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderItem] ADD  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF__KS_ProOrd__price__1AFEE62D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderItem] ADD  DEFAULT ((0)) FOR [price_cost]
GO
/****** Object:  Default [DF_KS_ProOrderItem_IsCmt]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderItem] ADD  CONSTRAINT [DF_KS_ProOrderItem_IsCmt]  DEFAULT ((0)) FOR [IsCmt]
GO
/****** Object:  Default [DF__KS_ProOrd__chann__1CE72E9F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderItem] ADD  DEFAULT ((0)) FOR [channelid]
GO
/****** Object:  Default [DF_KS_ProOrderBundleSale_CartID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderBundleSale] ADD  CONSTRAINT [DF_KS_ProOrderBundleSale_CartID]  DEFAULT ((0)) FOR [CartID]
GO
/****** Object:  Default [DF_KS_ProOrderBundleSale_InfoID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderBundleSale] ADD  CONSTRAINT [DF_KS_ProOrderBundleSale_InfoID]  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF_KS_ProOrderBundleSale_Price]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderBundleSale] ADD  CONSTRAINT [DF_KS_ProOrderBundleSale_Price]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF_KS_ProOrderBundleSale_Num]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderBundleSale] ADD  CONSTRAINT [DF_KS_ProOrderBundleSale_Num]  DEFAULT ((0)) FOR [Num]
GO
/****** Object:  Default [DF_KS_ProOrderBundleSale_addDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProOrderBundleSale] ADD  CONSTRAINT [DF_KS_ProOrderBundleSale_addDate]  DEFAULT (getdate()) FOR [addDate]
GO
/****** Object:  Default [DF__KS_ProSto__Provi__22A007F5]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProStore] ADD  DEFAULT ((0)) FOR [ProvinceID]
GO
/****** Object:  Default [DF__KS_ProSto__CityI__23942C2E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProStore] ADD  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF__KS_ProSto__Count__24885067]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProStore] ADD  DEFAULT ((0)) FOR [CountyID]
GO
/****** Object:  Default [DF__KS_ProSto__order__257C74A0]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProStore] ADD  DEFAULT ((0)) FOR [orderId]
GO
/****** Object:  Default [DF__KS_ProSto__store__267098D9]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProStore] ADD  DEFAULT ((0)) FOR [storeType]
GO
/****** Object:  Default [DF_KS_ProSpecificationR_ClassID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProSpecificationR] ADD  CONSTRAINT [DF_KS_ProSpecificationR_ClassID]  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF_KS_ProSpecificationR_SID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProSpecificationR] ADD  CONSTRAINT [DF_KS_ProSpecificationR_SID]  DEFAULT ((0)) FOR [SID]
GO
/****** Object:  Default [DF_KS_ProSpecificationR_orderid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProSpecificationR] ADD  CONSTRAINT [DF_KS_ProSpecificationR_orderid]  DEFAULT ((0)) FOR [orderid]
GO
/****** Object:  Default [DF_KS_ShopSpecificationPrice_proid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProSpecificationPrice] ADD  CONSTRAINT [DF_KS_ShopSpecificationPrice_proid]  DEFAULT ((0)) FOR [proid]
GO
/****** Object:  Default [DF_KS_ShopSpecificationPrice_price]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProSpecificationPrice] ADD  CONSTRAINT [DF_KS_ShopSpecificationPrice_price]  DEFAULT ((0)) FOR [price]
GO
/****** Object:  Default [DF_KS_ShopSpecificationPrice_amount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProSpecificationPrice] ADD  CONSTRAINT [DF_KS_ShopSpecificationPrice_amount]  DEFAULT ((0)) FOR [amount]
GO
/****** Object:  Default [DF_KS_ShopSpecificationPrice_weight]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProSpecificationPrice] ADD  CONSTRAINT [DF_KS_ShopSpecificationPrice_weight]  DEFAULT ((0)) FOR [weight]
GO
/****** Object:  Default [DF__KS_ProSpe__price__2E11BAA1]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProSpecificationPrice] ADD  DEFAULT ((0)) FOR [price_market]
GO
/****** Object:  Default [DF__KS_ProSpe__Price__2F05DEDA]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProSpecificationPrice] ADD  DEFAULT ((0)) FOR [Price_Cost]
GO
/****** Object:  Default [DF_KS_ShopSpecification_ShowType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProSpecification] ADD  CONSTRAINT [DF_KS_ShopSpecification_ShowType]  DEFAULT ((0)) FOR [ShowType]
GO
/****** Object:  Default [DF_KS_ShopSpecification_orderid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProSpecification] ADD  CONSTRAINT [DF_KS_ShopSpecification_orderid]  DEFAULT ((0)) FOR [orderid]
GO
/****** Object:  Default [DF__KS_ProSpe__itemn__31E24B85]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ProSpecial] ADD  DEFAULT ((0)) FOR [itemnum]
GO
/****** Object:  Default [DF_KS_SJTK_OptionNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTK] ADD  CONSTRAINT [DF_KS_SJTK_OptionNum]  DEFAULT ((0)) FOR [OptionNum]
GO
/****** Object:  Default [DF__KS_SJTK__SJtypeC__33CA93F7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTK] ADD  DEFAULT ((0)) FOR [SJtypeClassId]
GO
/****** Object:  Default [DF__KS_SJTK__ispubli__34BEB830]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTK] ADD  DEFAULT ((0)) FOR [ispublic]
GO
/****** Object:  Default [DF__KS_SJTK__TmZDYty__35B2DC69]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTK] ADD  DEFAULT ((0)) FOR [TmZDYtype]
GO
/****** Object:  Default [DF__KS_SJTK__system__36A700A2]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTK] ADD  DEFAULT ((0)) FOR [system]
GO
/****** Object:  Default [DF_KS_SJTK_sjtypeclass]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTK] ADD  CONSTRAINT [DF_KS_SJTK_sjtypeclass]  DEFAULT ((0)) FOR [sjtypeclass]
GO
/****** Object:  Default [DF__KS_SJTK__KouFS__388F4914]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTK] ADD  DEFAULT ((0)) FOR [KouFS]
GO
/****** Object:  Default [DF__KS_SJTK__IsKouFS__39836D4D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTK] ADD  DEFAULT ((0)) FOR [IsKouFS]
GO
/****** Object:  Default [DF_KS_SJTK_SchoolID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTK] ADD  CONSTRAINT [DF_KS_SJTK_SchoolID]  DEFAULT ((0)) FOR [SchoolID]
GO
/****** Object:  Default [DF_KS_SJTK_IsCorrection]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTK] ADD  CONSTRAINT [DF_KS_SJTK_IsCorrection]  DEFAULT ((0)) FOR [IsCorrection]
GO
/****** Object:  Default [DF_KS_SJScore_IsTj]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJScore] ADD  CONSTRAINT [DF_KS_SJScore_IsTj]  DEFAULT ((0)) FOR [IsTj]
GO
/****** Object:  Default [DF_KS_SJScore_HasUseTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJScore] ADD  CONSTRAINT [DF_KS_SJScore_HasUseTime]  DEFAULT ('0:0') FOR [HasUseTime]
GO
/****** Object:  Default [DF_KS_SJScore_realTest]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJScore] ADD  CONSTRAINT [DF_KS_SJScore_realTest]  DEFAULT ((0)) FOR [realTest]
GO
/****** Object:  Default [DF_KS_SJScore_TotalTM]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJScore] ADD  CONSTRAINT [DF_KS_SJScore_TotalTM]  DEFAULT ((0)) FOR [TotalTMS]
GO
/****** Object:  Default [DF_KS_SJScore_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJScore] ADD  CONSTRAINT [DF_KS_SJScore_Status]  DEFAULT ((0)) FOR [locked]
GO
/****** Object:  Default [DF_KS_SJScore_WarnTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJScore] ADD  CONSTRAINT [DF_KS_SJScore_WarnTF]  DEFAULT ((0)) FOR [WarnTF]
GO
/****** Object:  Default [DF_KS_SJScore_WarnTimes]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJScore] ADD  CONSTRAINT [DF_KS_SJScore_WarnTimes]  DEFAULT ((0)) FOR [WarnTimes]
GO
/****** Object:  Default [DF_KS_SJScore_FirstInTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJScore] ADD  CONSTRAINT [DF_KS_SJScore_FirstInTime]  DEFAULT (getdate()) FOR [FirstInTime]
GO
/****** Object:  Default [DF_KS_SJScore_IsPg]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJScore] ADD  CONSTRAINT [DF_KS_SJScore_IsPg]  DEFAULT ((0)) FOR [IsPg]
GO
/****** Object:  Default [DF_KS_SJScore_FrontTMS]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJScore] ADD  CONSTRAINT [DF_KS_SJScore_FrontTMS]  DEFAULT ((0)) FOR [FrontTMS]
GO
/****** Object:  Default [DF_KS_SJRndZJ_SJID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJRndZJ] ADD  CONSTRAINT [DF_KS_SJRndZJ_SJID]  DEFAULT ((0)) FOR [SJID]
GO
/****** Object:  Default [DF_KS_SJRndZJ_TmType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJRndZJ] ADD  CONSTRAINT [DF_KS_SJRndZJ_TmType]  DEFAULT ((0)) FOR [TmType]
GO
/****** Object:  Default [DF_KS_SJRndZJ_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJRndZJ] ADD  CONSTRAINT [DF_KS_SJRndZJ_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_KS_SJRndZJ_FS]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJRndZJ] ADD  CONSTRAINT [DF_KS_SJRndZJ_FS]  DEFAULT ((0)) FOR [FS]
GO
/****** Object:  Default [DF_KS_SJRndZJ_Num]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJRndZJ] ADD  CONSTRAINT [DF_KS_SJRndZJ_Num]  DEFAULT ((0)) FOR [Num]
GO
/****** Object:  Default [DF__KS_SJRndZ__KouFS__4AADF94F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJRndZJ] ADD  DEFAULT ((0)) FOR [KouFS]
GO
/****** Object:  Default [DF__KS_SJRndZ__IsKou__4BA21D88]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJRndZJ] ADD  DEFAULT ((0)) FOR [IsKouFS]
GO
/****** Object:  Default [DF_KS_SJRndZJ_zdyid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJRndZJ] ADD  CONSTRAINT [DF_KS_SJRndZJ_zdyid]  DEFAULT ((0)) FOR [zdyid]
GO
/****** Object:  Default [DF_KS_SJReviewsCmt_status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJReviewsCmt] ADD  CONSTRAINT [DF_KS_SJReviewsCmt_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF_KS_SJReviewsCmt_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJReviewsCmt] ADD  CONSTRAINT [DF_KS_SJReviewsCmt_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_SJComment_CmtNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJReviews] ADD  CONSTRAINT [DF_KS_SJComment_CmtNum]  DEFAULT ((0)) FOR [CmtNum]
GO
/****** Object:  Default [DF_KS_SJComment_SJID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJReviews] ADD  CONSTRAINT [DF_KS_SJComment_SJID]  DEFAULT ((0)) FOR [SJID]
GO
/****** Object:  Default [DF_KS_SJReviews_ClassID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJReviews] ADD  CONSTRAINT [DF_KS_SJReviews_ClassID]  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF__KS_SJMyTr__Limit__30792600]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJMyTrainPaper] ADD  CONSTRAINT [DF__KS_SJMyTr__Limit__30792600]  DEFAULT ((0)) FOR [LimitTime]
GO
/****** Object:  Default [DF__KS_SJMyTra__IsTJ__316D4A39]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJMyTrainPaper] ADD  CONSTRAINT [DF__KS_SJMyTra__IsTJ__316D4A39]  DEFAULT ((0)) FOR [IsTJ]
GO
/****** Object:  Default [DF__KS_SJMyTr__SysSc__32616E72]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJMyTrainPaper] ADD  CONSTRAINT [DF__KS_SJMyTr__SysSc__32616E72]  DEFAULT ((0)) FOR [SysScore]
GO
/****** Object:  Default [DF__KS_SJMyTr__Score__335592AB]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJMyTrainPaper] ADD  CONSTRAINT [DF__KS_SJMyTr__Score__335592AB]  DEFAULT ((0)) FOR [Score]
GO
/****** Object:  Default [DF__KS_SJMyTr__Class__3449B6E4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJMyTrainPaper] ADD  CONSTRAINT [DF__KS_SJMyTr__Class__3449B6E4]  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF__KS_SJMyTr__noFin__353DDB1D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJMyTrainPaper] ADD  CONSTRAINT [DF__KS_SJMyTr__noFin__353DDB1D]  DEFAULT ((0)) FOR [noFinishTMS]
GO
/****** Object:  Default [DF__KS_SJMyTr__Total__3631FF56]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJMyTrainPaper] ADD  CONSTRAINT [DF__KS_SJMyTr__Total__3631FF56]  DEFAULT ((0)) FOR [TotalTMS]
GO
/****** Object:  Default [DF__KS_SJMyTra__type__206DA6C0]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJMyTrainPaper] ADD  CONSTRAINT [DF__KS_SJMyTra__type__206DA6C0]  DEFAULT ((1)) FOR [type]
GO
/****** Object:  Default [DF__KS_SJMyTra__KSSJ__2161CAF9]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJMyTrainPaper] ADD  CONSTRAINT [DF__KS_SJMyTra__KSSJ__2161CAF9]  DEFAULT ((60)) FOR [KSSJ]
GO
/****** Object:  Default [DF__KS_SJMyTr__Train__2255EF32]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJMyTrainPaper] ADD  CONSTRAINT [DF__KS_SJMyTr__Train__2255EF32]  DEFAULT ((0)) FOR [TrainingID]
GO
/****** Object:  Default [DF_KS_SJMyTrainPaper_answertotal]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJMyTrainPaper] ADD  CONSTRAINT [DF_KS_SJMyTrainPaper_answertotal]  DEFAULT ((0)) FOR [answertotal]
GO
/****** Object:  Default [DF_KS_SJMyTrainPaper_SJTypeClassid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJMyTrainPaper] ADD  CONSTRAINT [DF_KS_SJMyTrainPaper_SJTypeClassid]  DEFAULT ((0)) FOR [SJTypeClassid]
GO
/****** Object:  Default [DF__KS_SJMyTr__Class__5DC0CDC3]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJMyTraining] ADD  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF__KS_SJMyTr__Order__5EB4F1FC]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJMyTraining] ADD  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_KS_SJKnowledge_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJKnowledge] ADD  CONSTRAINT [DF_KS_SJKnowledge_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF__KS_SJKnow__SJCla__609D3A6E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJKnowledge] ADD  DEFAULT ((0)) FOR [SJClassId]
GO
/****** Object:  Default [DF__KS_SJdaily__year__61915EA7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJdailyTrain] ADD  DEFAULT ((0)) FOR [year]
GO
/****** Object:  Default [DF__KS_SJdaily__IsTJ__628582E0]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJdailyTrain] ADD  DEFAULT ((0)) FOR [IsTJ]
GO
/****** Object:  Default [DF__KS_SJdail__Score__6379A719]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJdailyTrain] ADD  DEFAULT ((0)) FOR [Score]
GO
/****** Object:  Default [DF__KS_SJdail__parri__646DCB52]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJdailyTrain] ADD  DEFAULT ((0)) FOR [parright]
GO
/****** Object:  Default [DF__KS_SJdail__Class__6561EF8B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJdailyTrain] ADD  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF__KS_SJdaily__type__665613C4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJdailyTrain] ADD  DEFAULT ((0)) FOR [type]
GO
/****** Object:  Default [DF__KS_SJdail__noFin__674A37FD]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJdailyTrain] ADD  DEFAULT ((0)) FOR [noFinishTMS]
GO
/****** Object:  Default [DF__KS_SJdail__Total__683E5C36]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJdailyTrain] ADD  DEFAULT ((0)) FOR [TotalTMS]
GO
/****** Object:  Default [DF__KS_SJdaily__KSSJ__6932806F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJdailyTrain] ADD  DEFAULT ((60)) FOR [KSSJ]
GO
/****** Object:  Default [DF__KS_SJdaily__Hits__6A26A4A8]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJdailyTrain] ADD  DEFAULT ((0)) FOR [Hits]
GO
/****** Object:  Default [DF_KS_SJCTB_flag]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJCTB] ADD  CONSTRAINT [DF_KS_SJCTB_flag]  DEFAULT ((0)) FOR [flag]
GO
/****** Object:  Default [DF_KS_SJCorrection_sjid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJCorrection] ADD  CONSTRAINT [DF_KS_SJCorrection_sjid]  DEFAULT ((0)) FOR [sjid]
GO
/****** Object:  Default [DF_KS_SJCorrection_status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJCorrection] ADD  CONSTRAINT [DF_KS_SJCorrection_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF_KS_SJCorrection_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJCorrection] ADD  CONSTRAINT [DF_KS_SJCorrection_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF_KS_SJCorrection_UserID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJCorrection] ADD  CONSTRAINT [DF_KS_SJCorrection_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_SJCorrection_TmId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJCorrection] ADD  CONSTRAINT [DF_KS_SJCorrection_TmId]  DEFAULT ((0)) FOR [TmId]
GO
/****** Object:  Default [DF_KS_SJCorrection_CorrectionType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJCorrection] ADD  CONSTRAINT [DF_KS_SJCorrection_CorrectionType]  DEFAULT ((11)) FOR [ErrorType]
GO
/****** Object:  Default [DF_KS_SjClassRecord_sjClassID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SjClassRecord] ADD  CONSTRAINT [DF_KS_SjClassRecord_sjClassID]  DEFAULT ((0)) FOR [sjClassID]
GO
/****** Object:  Default [DF_KS_SjClassRecord_userID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SjClassRecord] ADD  CONSTRAINT [DF_KS_SjClassRecord_userID]  DEFAULT ((0)) FOR [userID]
GO
/****** Object:  Default [DF__KS_SJClass__Parent__3E52440B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  CONSTRAINT [DF__KS_SJClass__Parent__3E52440B]  DEFAULT ((0)) FOR [ParentID]
GO
/****** Object:  Default [DF__KS_SJClass__Root__3F466844]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  CONSTRAINT [DF__KS_SJClass__Root__3F466844]  DEFAULT ((0)) FOR [Root]
GO
/****** Object:  Default [DF__KS_SJClass__OrderI__403A8C7D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  CONSTRAINT [DF__KS_SJClass__OrderI__403A8C7D]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF__KS_SJClass__Child__412EB0B6]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  CONSTRAINT [DF__KS_SJClass__Child__412EB0B6]  DEFAULT ((0)) FOR [Child]
GO
/****** Object:  Default [DF__KS_SJClass__PrevID__4222D4EF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  CONSTRAINT [DF__KS_SJClass__PrevID__4222D4EF]  DEFAULT ((0)) FOR [PrevID]
GO
/****** Object:  Default [DF__KS_SJClass__NextID__4316F928]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  CONSTRAINT [DF__KS_SJClass__NextID__4316F928]  DEFAULT ((0)) FOR [NextID]
GO
/****** Object:  Default [DF__KS_SJClass__ShowIn__44FF419A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  CONSTRAINT [DF__KS_SJClass__ShowIn__44FF419A]  DEFAULT ((0)) FOR [ShowInTop]
GO
/****** Object:  Default [DF__KS_SJClas__examp__7A5D0C71]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  DEFAULT ((1)) FOR [exampro]
GO
/****** Object:  Default [DF__KS_SJClas__examy__7B5130AA]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  DEFAULT ((1)) FOR [examyear]
GO
/****** Object:  Default [DF__KS_SJClas__examc__7C4554E3]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  DEFAULT ((1)) FOR [examchaper]
GO
/****** Object:  Default [DF__KS_SJClas__examd__7D39791C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  DEFAULT ((1)) FOR [examdialy]
GO
/****** Object:  Default [DF_KS_SJClass_TotalNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  CONSTRAINT [DF_KS_SJClass_TotalNum]  DEFAULT ((0)) FOR [TotalNum]
GO
/****** Object:  Default [DF_KS_SJClass_ishide]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  CONSTRAINT [DF_KS_SJClass_ishide]  DEFAULT ((0)) FOR [ishide]
GO
/****** Object:  Default [DF_KS_SJClass_trangcharge]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  CONSTRAINT [DF_KS_SJClass_trangcharge]  DEFAULT ((0)) FOR [trangcharge]
GO
/****** Object:  Default [DF_KS_SJClass_tktotal]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  CONSTRAINT [DF_KS_SJClass_tktotal]  DEFAULT ((0)) FOR [tktotal]
GO
/****** Object:  Default [DF_KS_SJClass_money]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  CONSTRAINT [DF_KS_SJClass_money]  DEFAULT ((0)) FOR [money]
GO
/****** Object:  Default [DF_KS_SJClass_IsBuyChild]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  CONSTRAINT [DF_KS_SJClass_IsBuyChild]  DEFAULT ((0)) FOR [IsBuyChild]
GO
/****** Object:  Default [DF_KS_SJClass_ExpiryMonth]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJClass] ADD  CONSTRAINT [DF_KS_SJClass_ExpiryMonth]  DEFAULT ((0)) FOR [ExpiryMonth]
GO
/****** Object:  Default [DF_KS_SJCJD_IsDefault]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJCJD] ADD  CONSTRAINT [DF_KS_SJCJD_IsDefault]  DEFAULT ((0)) FOR [IsDefault]
GO
/****** Object:  Default [DF_KS_SJCardItem_UserID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJCardItem] ADD  CONSTRAINT [DF_KS_SJCardItem_UserID]  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF_KS_SjBuyClassItem_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJBuyClassItem] ADD  CONSTRAINT [DF_KS_SjBuyClassItem_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_SjBuyClassItem_SjclassId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJBuyClassItem] ADD  CONSTRAINT [DF_KS_SjBuyClassItem_SjclassId]  DEFAULT ((0)) FOR [SjclassId]
GO
/****** Object:  Default [DF_KS_SjBuyClassItem_Price]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJBuyClassItem] ADD  CONSTRAINT [DF_KS_SjBuyClassItem_Price]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF_KS_SJBuyClassItem_ExpiryDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJBuyClassItem] ADD  CONSTRAINT [DF_KS_SJBuyClassItem_ExpiryDate]  DEFAULT (getdate()) FOR [ExpiryDate]
GO
/****** Object:  Default [DF_KS_SJBuyClassItem_ExpiryMonth]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJBuyClassItem] ADD  CONSTRAINT [DF_KS_SJBuyClassItem_ExpiryMonth]  DEFAULT ((0)) FOR [ExpiryMonth]
GO
/****** Object:  Default [DF_KS_SJBuyClassItem_ParentID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJBuyClassItem] ADD  CONSTRAINT [DF_KS_SJBuyClassItem_ParentID]  DEFAULT ((0)) FOR [ParentID]
GO
/****** Object:  Default [DF_KS_SJ_MustLogin]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_MustLogin]  DEFAULT ((0)) FOR [MustLogin]
GO
/****** Object:  Default [DF_KS_SJ_IsTjDa]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_IsTjDa]  DEFAULT ((0)) FOR [IsTjDa]
GO
/****** Object:  Default [DF_KS_SJ_IsSaveAnswer]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_IsSaveAnswer]  DEFAULT ((0)) FOR [IsSaveAnswer]
GO
/****** Object:  Default [DF_KS_SJ_IsKSRecord]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_IsKSRecord]  DEFAULT ((0)) FOR [IsDelRecord]
GO
/****** Object:  Default [DF_KS_SJ_Hits]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_Hits]  DEFAULT ((0)) FOR [Hits]
GO
/****** Object:  Default [DF_KS_SJ_TestHits]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_TestHits]  DEFAULT ((0)) FOR [TestHits]
GO
/****** Object:  Default [DF_KS_SJ_CmtNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_CmtNum]  DEFAULT ((0)) FOR [CmtNum]
GO
/****** Object:  Default [DF_KS_SJ_RealTest]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_RealTest]  DEFAULT ((0)) FOR [RealTest]
GO
/****** Object:  Default [DF_KS_SJ_OpenTimeLimit]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_OpenTimeLimit]  DEFAULT ((0)) FOR [OpenTimeLimit]
GO
/****** Object:  Default [DF_KS_SJ_ScorePubType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_ScorePubType]  DEFAULT ((0)) FOR [ScorePubType]
GO
/****** Object:  Default [DF_KS_SJ_RndST]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_RndST]  DEFAULT ((0)) FOR [RndST]
GO
/****** Object:  Default [DF_KS_SJ_FullScreen]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_FullScreen]  DEFAULT ((0)) FOR [FullScreen]
GO
/****** Object:  Default [DF_KS_SJ_RightTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_RightTF]  DEFAULT ((0)) FOR [RightTF]
GO
/****** Object:  Default [DF_KS_SJ_PowerTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_PowerTF]  DEFAULT ((0)) FOR [PowerTF]
GO
/****** Object:  Default [DF_KS_SJ_F5TF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_F5TF]  DEFAULT ((0)) FOR [F5TF]
GO
/****** Object:  Default [DF_KS_SJ_AuthorizationType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_AuthorizationType]  DEFAULT ((0)) FOR [AuthorizationType]
GO
/****** Object:  Default [DF_KS_SJ_AutoSaveTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_AutoSaveTime]  DEFAULT ((0)) FOR [AutoSaveTime]
GO
/****** Object:  Default [DF_KS_SJ_CJDID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_CJDID]  DEFAULT ((0)) FOR [CJDID]
GO
/****** Object:  Default [DF_KS_SJ_FrontSize]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_FrontSize]  DEFAULT ((0)) FOR [FrontSize]
GO
/****** Object:  Default [DF_KS_SJ_DoExamWay]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_DoExamWay]  DEFAULT ((0)) FOR [DoExamWay]
GO
/****** Object:  Default [DF_KS_SJ_ShowOn3G]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_ShowOn3G]  DEFAULT ((0)) FOR [ShowOn3G]
GO
/****** Object:  Default [DF_KS_SJ_SocialIDs]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_SocialIDs]  DEFAULT ((0)) FOR [SocialIDs]
GO
/****** Object:  Default [DF__KS_SJ__SJtypeCla__1407CFDB]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF__KS_SJ__SJtypeCla__1407CFDB]  DEFAULT ((0)) FOR [SJtypeClassId]
GO
/****** Object:  Default [DF__KS_SJ__ksrs__14FBF414]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF__KS_SJ__ksrs__14FBF414]  DEFAULT ((0)) FOR [ksrs]
GO
/****** Object:  Default [DF__KS_SJ__jige__15F0184D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF__KS_SJ__jige__15F0184D]  DEFAULT ((0)) FOR [jige]
GO
/****** Object:  Default [DF__KS_SJ__Knowledge__16E43C86]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF__KS_SJ__Knowledge__16E43C86]  DEFAULT ((0)) FOR [KnowledgeId]
GO
/****** Object:  Default [DF__KS_SJ__year__17D860BF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF__KS_SJ__year__17D860BF]  DEFAULT ((0)) FOR [year]
GO
/****** Object:  Default [DF__KS_SJ__system__18CC84F8]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF__KS_SJ__system__18CC84F8]  DEFAULT ((0)) FOR [system]
GO
/****** Object:  Default [DF__KS_SJ__RndType__272FB2E8]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  DEFAULT ((0)) FOR [RndType]
GO
/****** Object:  Default [DF_KS_SJ_isfree]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_isfree]  DEFAULT ((0)) FOR [isfree]
GO
/****** Object:  Default [DF_KS_SJ_ChargeType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_ChargeType]  DEFAULT ((0)) FOR [ChargeType]
GO
/****** Object:  Default [DF_KS_SJ_vip]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_vip]  DEFAULT ((0)) FOR [vip]
GO
/****** Object:  Default [DF_KS_SJ_SchoolID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_SchoolID]  DEFAULT ((0)) FOR [SchoolID]
GO
/****** Object:  Default [DF_KS_SJ_Issinglebuy]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_Issinglebuy]  DEFAULT ((1)) FOR [Issinglebuy]
GO
/****** Object:  Default [DF_KS_SJ_IsUserFree]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJ] ADD  CONSTRAINT [DF_KS_SJ_IsUserFree]  DEFAULT ((0)) FOR [IsUserFree]
GO
/****** Object:  Default [DF_KS_SignIn_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SignIn] ADD  CONSTRAINT [DF_KS_SignIn_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_SignIn_UserId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SignIn] ADD  CONSTRAINT [DF_KS_SignIn_UserId]  DEFAULT ((0)) FOR [UserId]
GO
/****** Object:  Default [DF_KS_SignIn_num]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SignIn] ADD  CONSTRAINT [DF_KS_SignIn_num]  DEFAULT ((0)) FOR [num]
GO
/****** Object:  Default [DF_KS_SignIn_numtype]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SignIn] ADD  CONSTRAINT [DF_KS_SignIn_numtype]  DEFAULT ((0)) FOR [numtype]
GO
/****** Object:  Default [DF_KS_SignIn_qdxq]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SignIn] ADD  CONSTRAINT [DF_KS_SignIn_qdxq]  DEFAULT ((0)) FOR [qdxq]
GO
/****** Object:  Default [DF_KS_SignIn_LookPower]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SignIn] ADD  CONSTRAINT [DF_KS_SignIn_LookPower]  DEFAULT ((0)) FOR [LookPower]
GO
/****** Object:  Default [DF_KS_SignIn_IsDel]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SignIn] ADD  CONSTRAINT [DF_KS_SignIn_IsDel]  DEFAULT ((0)) FOR [IsDel]
GO
/****** Object:  Default [DF__KS_Vote__BeginDa__76AC771E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Vote] ADD  DEFAULT (getdate()) FOR [BeginDate]
GO
/****** Object:  Default [DF__KS_Vote__ExpireD__77A09B57]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Vote] ADD  DEFAULT (getdate()) FOR [ExpireDate]
GO
/****** Object:  Default [DF__KS_Vote__VoteTyp__7894BF90]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Vote] ADD  DEFAULT ((0)) FOR [VoteType]
GO
/****** Object:  Default [DF__KS_Vote__LimitIP__7988E3C9]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Vote] ADD  DEFAULT ((0)) FOR [LimitIP]
GO
/****** Object:  Default [DF__KS_Vote__UserTF__7A7D0802]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Vote] ADD  DEFAULT ((0)) FOR [UserTF]
GO
/****** Object:  Default [DF__KS_Vote__InfoID__7B712C3B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Vote] ADD  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF__KS_Vote__votesco__7C655074]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Vote] ADD  DEFAULT ((0)) FOR [votescore]
GO
/****** Object:  Default [DF_KS_ViewRecords_basicType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ViewRecords] ADD  CONSTRAINT [DF_KS_ViewRecords_basicType]  DEFAULT ((0)) FOR [basicType]
GO
/****** Object:  Default [DF_KS_ViewRecords_channelid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ViewRecords] ADD  CONSTRAINT [DF_KS_ViewRecords_channelid]  DEFAULT ((0)) FOR [channelid]
GO
/****** Object:  Default [DF_KS_ViewRecords_infoid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ViewRecords] ADD  CONSTRAINT [DF_KS_ViewRecords_infoid]  DEFAULT ((0)) FOR [infoid]
GO
/****** Object:  Default [DF_KS_ViewRecords_adddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_ViewRecords] ADD  CONSTRAINT [DF_KS_ViewRecords_adddate]  DEFAULT (getdate()) FOR [adddate]
GO
/****** Object:  Default [DF__KS_UserRec__flag__385A3EEA]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserRecord] ADD  DEFAULT ((0)) FOR [flag]
GO
/****** Object:  Default [DF__KS_UserRe__useri__394E6323]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserRecord] ADD  DEFAULT ((0)) FOR [userid]
GO
/****** Object:  Default [DF__KS_UserPh__UserI__3A42875C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserPhotos] ADD  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF__KS_UserPh__TypeI__3B36AB95]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserPhotos] ADD  DEFAULT ((0)) FOR [TypeID]
GO
/****** Object:  Default [DF__KS_UserPh__Class__3C2ACFCE]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserPhotos] ADD  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF__KS_UserPhot__Hit__3D1EF407]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserPhotos] ADD  DEFAULT ((0)) FOR [Hit]
GO
/****** Object:  Default [DF__KS_UserPh__Statu__3E131840]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserPhotos] ADD  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF__KS_UserPho__Fund__3F073C79]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserPhotos] ADD  DEFAULT ((0)) FOR [Fund]
GO
/****** Object:  Default [DF__KS_UserPh__PageS__3FFB60B2]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserPhotos] ADD  DEFAULT ((0)) FOR [PageSize]
GO
/****** Object:  Default [DF__KS_UserPh__Model__40EF84EB]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserPhotos] ADD  DEFAULT ((0)) FOR [Model]
GO
/****** Object:  Default [DF_KS_UserOut_IsFixed]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserOut] ADD  CONSTRAINT [DF_KS_UserOut_IsFixed]  DEFAULT ((0)) FOR [IsFixed]
GO
/****** Object:  Default [DF_KS_UserOut_status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserOut] ADD  CONSTRAINT [DF_KS_UserOut_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF__KS_UserMo__UserI__43CBF196]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserMobileLog] ADD  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF__KS_UserMo__Devic__44C015CF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserMobileLog] ADD  DEFAULT ((0)) FOR [DeviceType]
GO
/****** Object:  Default [DF__KS_UserLo__UserI__45B43A08]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserLoginLog] ADD  DEFAULT ((0)) FOR [UserID]
GO
/****** Object:  Default [DF__KS_UserLo__login__46A85E41]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserLoginLog] ADD  DEFAULT ((0)) FOR [loginFrom]
GO
/****** Object:  Default [DF__KS_UserLo__Devic__479C827A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserLoginLog] ADD  DEFAULT ((0)) FOR [DeviceType]
GO
/****** Object:  Default [DF_KS_UserLoginLog_IsLogInAnoplace]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserLoginLog] ADD  CONSTRAINT [DF_KS_UserLoginLog_IsLogInAnoplace]  DEFAULT ((0)) FOR [IsLogInAnoplace]
GO
/****** Object:  Default [DF__KS_UserGr__Group__1209AD79]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserGroup] ADD  CONSTRAINT [DF__KS_UserGr__Group__1209AD79]  DEFAULT ((0)) FOR [GroupID]
GO
/****** Object:  Default [DF__KS_UserGro__Type__12FDD1B2]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserGroup] ADD  CONSTRAINT [DF__KS_UserGro__Type__12FDD1B2]  DEFAULT ((0)) FOR [Type]
GO
/****** Object:  Default [DF__KS_UserGr__Charg__13F1F5EB]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserGroup] ADD  CONSTRAINT [DF__KS_UserGr__Charg__13F1F5EB]  DEFAULT ((0)) FOR [ChargeType]
GO
/****** Object:  Default [DF__KS_UserGr__Group__14E61A24]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserGroup] ADD  CONSTRAINT [DF__KS_UserGr__Group__14E61A24]  DEFAULT ((0)) FOR [GroupPoint]
GO
/****** Object:  Default [DF__KS_UserGr__Valid__15DA3E5D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserGroup] ADD  CONSTRAINT [DF__KS_UserGr__Valid__15DA3E5D]  DEFAULT ((0)) FOR [ValidDays]
GO
/****** Object:  Default [DF__KS_UserGr__FormI__16CE6296]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserGroup] ADD  CONSTRAINT [DF__KS_UserGr__FormI__16CE6296]  DEFAULT ((0)) FOR [FormID]
GO
/****** Object:  Default [DF__KS_UserGr__IsReg__17C286CF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserGroup] ADD  CONSTRAINT [DF__KS_UserGr__IsReg__17C286CF]  DEFAULT ((0)) FOR [IsReg]
GO
/****** Object:  Default [DF_KS_UserGroup_SpaceSize]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserGroup] ADD  CONSTRAINT [DF_KS_UserGroup_SpaceSize]  DEFAULT ((0)) FOR [SpaceSize]
GO
/****** Object:  Default [DF__KS_UserGr__order__5125ECB4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserGroup] ADD  DEFAULT ((0)) FOR [orderid]
GO
/****** Object:  Default [DF__KS_UserGr__IsGro__521A10ED]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserGroup] ADD  DEFAULT ((0)) FOR [IsGroupPrice]
GO
/****** Object:  Default [DF_KS_UserGroup_AutoUpdate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserGroup] ADD  CONSTRAINT [DF_KS_UserGroup_AutoUpdate]  DEFAULT ((0)) FOR [AutoUpdate]
GO
/****** Object:  Default [DF_KS_UserGroup_AutoUpdateText]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserGroup] ADD  CONSTRAINT [DF_KS_UserGroup_AutoUpdateText]  DEFAULT ((0)) FOR [AutoUpdateText]
GO
/****** Object:  Default [DF_KS_UserGroup_AutoUpdateScore]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserGroup] ADD  CONSTRAINT [DF_KS_UserGroup_AutoUpdateScore]  DEFAULT ((0)) FOR [AutoUpdateScore]
GO
/****** Object:  Default [DF_KS_UserGroup_AutoUpdateCharge]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserGroup] ADD  CONSTRAINT [DF_KS_UserGroup_AutoUpdateCharge]  DEFAULT ((0)) FOR [AutoUpdateCharge]
GO
/****** Object:  Default [DF_KS_UserFeeSell_PackDays]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeeSell] ADD  CONSTRAINT [DF_KS_UserFeeSell_PackDays]  DEFAULT ((0)) FOR [PackDays]
GO
/****** Object:  Default [DF_KS_UserFeeSell_CourseTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeeSell] ADD  CONSTRAINT [DF_KS_UserFeeSell_CourseTF]  DEFAULT ((0)) FOR [CourseTF]
GO
/****** Object:  Default [DF_KS_UserFeeSell_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeeSell] ADD  CONSTRAINT [DF_KS_UserFeeSell_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_UserFeeSell_UseFlag]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeeSell] ADD  CONSTRAINT [DF_KS_UserFeeSell_UseFlag]  DEFAULT ((0)) FOR [UseFlag]
GO
/****** Object:  Default [DF_KS_UserFeeSell_PointNumber]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeeSell] ADD  CONSTRAINT [DF_KS_UserFeeSell_PointNumber]  DEFAULT ((0)) FOR [PointNumber]
GO
/****** Object:  Default [DF_KS_UserFeeSell_PointType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeeSell] ADD  CONSTRAINT [DF_KS_UserFeeSell_PointType]  DEFAULT ((0)) FOR [PointType]
GO
/****** Object:  Default [DF_KS_UserFeeSell_GiveVIPDay]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeeSell] ADD  CONSTRAINT [DF_KS_UserFeeSell_GiveVIPDay]  DEFAULT ((0)) FOR [GiveVIPDay]
GO
/****** Object:  Default [DF_KS_UserFeePackages_flag]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_flag]  DEFAULT ((0)) FOR [flag]
GO
/****** Object:  Default [DF_KS_UserFeePackages_days]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_days]  DEFAULT ((0)) FOR [days]
GO
/****** Object:  Default [DF_KS_UserFeePackages_price]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_price]  DEFAULT ((0)) FOR [price]
GO
/****** Object:  Default [DF_KS_UserFeePackages_status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF_KS_UserFeePackages_modelid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_modelid]  DEFAULT ((0)) FOR [limit]
GO
/****** Object:  Default [DF_KS_UserFeePackages_coursetf]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_coursetf]  DEFAULT ((0)) FOR [coursetf]
GO
/****** Object:  Default [DF_KS_UserFeePackages_usetype]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_usetype]  DEFAULT ((1)) FOR [usetype]
GO
/****** Object:  Default [DF_KS_UserFeePackages_TrangTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_TrangTF]  DEFAULT ((0)) FOR [TrangTF]
GO
/****** Object:  Default [DF_KS_UserFeePackages_RangeType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_RangeType]  DEFAULT ((0)) FOR [RangeType]
GO
/****** Object:  Default [DF_KS_UserFeePackages_IsUp]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_IsUp]  DEFAULT ((0)) FOR [IsUp]
GO
/****** Object:  Default [DF_KS_UserFeePackages_UpGroup]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_UpGroup]  DEFAULT ((0)) FOR [UpGroup]
GO
/****** Object:  Default [DF_KS_UserFeePackages_DownGroup]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_DownGroup]  DEFAULT ((0)) FOR [DownGroup]
GO
/****** Object:  Default [DF_KS_UserFeePackages_IsIdentity]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_IsIdentity]  DEFAULT ((0)) FOR [IsIdentity]
GO
/****** Object:  Default [DF_KS_UserFeePackages_CardType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_CardType]  DEFAULT ((0)) FOR [CardType]
GO
/****** Object:  Default [DF_KS_UserFeePackages_PointNumber]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_PointNumber]  DEFAULT ((0)) FOR [PointNumber]
GO
/****** Object:  Default [DF_KS_UserFeePackages_PointType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_PointType]  DEFAULT ((0)) FOR [PointType]
GO
/****** Object:  Default [DF_KS_UserFeePackages_GiveVIPDay]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeePackages] ADD  CONSTRAINT [DF_KS_UserFeePackages_GiveVIPDay]  DEFAULT ((0)) FOR [GiveVIPDay]
GO
/****** Object:  Default [DF_KS_UserFeeDiscount_discount]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeeDiscount] ADD  CONSTRAINT [DF_KS_UserFeeDiscount_discount]  DEFAULT ((0)) FOR [discount]
GO
/****** Object:  Default [DF_KS_UserFeeDiscount_status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeeDiscount] ADD  CONSTRAINT [DF_KS_UserFeeDiscount_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF_KS_UserFeeDiscount_packid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserFeeDiscount] ADD  CONSTRAINT [DF_KS_UserFeeDiscount_packid]  DEFAULT ((0)) FOR [packid]
GO
/****** Object:  Default [DF_KS_UserDepartment_ParentID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserDepartment] ADD  CONSTRAINT [DF_KS_UserDepartment_ParentID]  DEFAULT ((0)) FOR [ParentID]
GO
/****** Object:  Default [DF_KS_UserDepartment_Root]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserDepartment] ADD  CONSTRAINT [DF_KS_UserDepartment_Root]  DEFAULT ((0)) FOR [Root]
GO
/****** Object:  Default [DF_KS_UserDepartment_Depth]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserDepartment] ADD  CONSTRAINT [DF_KS_UserDepartment_Depth]  DEFAULT ((0)) FOR [Depth]
GO
/****** Object:  Default [DF_KS_UserDepartment_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserDepartment] ADD  CONSTRAINT [DF_KS_UserDepartment_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_KS_UserDepartment_Child]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserDepartment] ADD  CONSTRAINT [DF_KS_UserDepartment_Child]  DEFAULT ((0)) FOR [Child]
GO
/****** Object:  Default [DF_KS_UserDepartment_PrevID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserDepartment] ADD  CONSTRAINT [DF_KS_UserDepartment_PrevID]  DEFAULT ((0)) FOR [PrevID]
GO
/****** Object:  Default [DF_KS_UserDepartment_NextID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UserDepartment] ADD  CONSTRAINT [DF_KS_UserDepartment_NextID]  DEFAULT ((0)) FOR [NextID]
GO
/****** Object:  Default [DF__KS_User__GroupID__7D0E9093]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__GroupID__7D0E9093]  DEFAULT ((0)) FOR [GroupID]
GO
/****** Object:  Default [DF_KS_User_AskRankId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_AskRankId]  DEFAULT ((0)) FOR [AskRankId]
GO
/****** Object:  Default [DF_KS_User_DepartId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_DepartId]  DEFAULT ((0)) FOR [DepartId]
GO
/****** Object:  Default [DF_KS_User_IsMobileRZ]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_IsMobileRZ]  DEFAULT ((0)) FOR [IsMobileRZ]
GO
/****** Object:  Default [DF_KS_User_Sex]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_Sex]  DEFAULT (N'男') FOR [Sex]
GO
/****** Object:  Default [DF__KS_User__Privacy__7FEAFD3E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__Privacy__7FEAFD3E]  DEFAULT ((0)) FOR [Privacy]
GO
/****** Object:  Default [DF__KS_User__LoginTi__00DF2177]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__LoginTi__00DF2177]  DEFAULT ((0)) FOR [LoginTimes]
GO
/****** Object:  Default [DF__KS_User__ChargeT__01D345B0]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__ChargeT__01D345B0]  DEFAULT ((0)) FOR [ChargeType]
GO
/****** Object:  Default [DF_KS_User_BeginDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_BeginDate]  DEFAULT (getdate()) FOR [BeginDate]
GO
/****** Object:  Default [DF__KS_User__EDays__03BB8E22]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__EDays__03BB8E22]  DEFAULT ((0)) FOR [EDays]
GO
/****** Object:  Default [DF_KS_User_Money]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_Money]  DEFAULT ((0)) FOR [Money]
GO
/****** Object:  Default [DF__KS_User__Score__04AFB25B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__Score__04AFB25B]  DEFAULT ((0)) FOR [Score]
GO
/****** Object:  Default [DF_KS_User_ScoreHasUse]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_ScoreHasUse]  DEFAULT ((0)) FOR [ScoreHasUse]
GO
/****** Object:  Default [DF__KS_User__Point__05A3D694]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__Point__05A3D694]  DEFAULT ((0)) FOR [Point]
GO
/****** Object:  Default [DF__KS_User__Locked__0697FACD]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__Locked__0697FACD]  DEFAULT ((0)) FOR [Locked]
GO
/****** Object:  Default [DF_KS_User_IsApi]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_IsApi]  DEFAULT ((0)) FOR [IsApi]
GO
/****** Object:  Default [DF_KS_User_Enddate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_Enddate]  DEFAULT (getdate()) FOR [Enddate]
GO
/****** Object:  Default [DF_KS_User_LoadType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_LoadType]  DEFAULT ((0)) FOR [LoadType]
GO
/****** Object:  Default [DF_KS_User_LoadEndGroupId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_LoadEndGroupId]  DEFAULT ((0)) FOR [LoadEndGroupId]
GO
/****** Object:  Default [DF__KS_User__ProID__50D0E6F9]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__ProID__50D0E6F9]  DEFAULT ((0)) FOR [ProID]
GO
/****** Object:  Default [DF__KS_User__CityID__51C50B32]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__CityID__51C50B32]  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF__KS_User__CountyI__52B92F6B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__CountyI__52B92F6B]  DEFAULT ((0)) FOR [CountyID]
GO
/****** Object:  Default [DF__KS_User__ItemId__243E37A4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__ItemId__243E37A4]  DEFAULT ((0)) FOR [ItemId]
GO
/****** Object:  Default [DF__KS_User__childId__25325BDD]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__childId__25325BDD]  DEFAULT ((0)) FOR [childId]
GO
/****** Object:  Default [DF__KS_User__IsWeixi__4480EA04]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__IsWeixi__4480EA04]  DEFAULT ((0)) FOR [IsWeixinUnBind]
GO
/****** Object:  Default [DF_KS_User_PPUserID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_PPUserID]  DEFAULT ((0)) FOR [PPUserID]
GO
/****** Object:  Default [DF_KS_User_PUserID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_PUserID]  DEFAULT ((0)) FOR [PUserID]
GO
/****** Object:  Default [DF__KS_User__TotalMo__7B3CED68]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__TotalMo__7B3CED68]  DEFAULT ((0)) FOR [TotalMoney]
GO
/****** Object:  Default [DF__KS_User__OrderDe__7C3111A1]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF__KS_User__OrderDe__7C3111A1]  DEFAULT ((0)) FOR [OrderDevice]
GO
/****** Object:  Default [DF_KS_User_EpUserID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_EpUserID]  DEFAULT ((0)) FOR [SchoolID]
GO
/****** Object:  Default [DF_KS_User_IsAutoGroup]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_IsAutoGroup]  DEFAULT ((0)) FOR [LoadEndGroupDate]
GO
/****** Object:  Default [DF_KS_User_IsAgent]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_IsAgent]  DEFAULT ((0)) FOR [IsAgent]
GO
/****** Object:  Default [DF_KS_User_IsAg]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_User] ADD  CONSTRAINT [DF_KS_User_IsAg]  DEFAULT ((0)) FOR [IsAg]
GO
/****** Object:  Default [DF_KS_UploadFiles_ChannelID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UploadFiles] ADD  CONSTRAINT [DF_KS_UploadFiles_ChannelID]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF_KS_UploadFiles_InfoID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UploadFiles] ADD  CONSTRAINT [DF_KS_UploadFiles_InfoID]  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF_KS_UploadFiles_DTimes]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UploadFiles] ADD  CONSTRAINT [DF_KS_UploadFiles_DTimes]  DEFAULT ((0)) FOR [DTimes]
GO
/****** Object:  Default [DF_KS_UploadFiles_DSize]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_UploadFiles] ADD  CONSTRAINT [DF_KS_UploadFiles_DSize]  DEFAULT ((0)) FOR [DSize]
GO
/****** Object:  Default [DF__KS_U_Prod__InfoI__69B1A35C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__InfoI__69B1A35C]  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF__KS_U_Prod__Class__6AA5C795]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Class__6AA5C795]  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF__KS_U_Prod__Chann__2121D3D7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Chann__2121D3D7]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF__KS_U_Prod__prior__2215F810]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__prior__2215F810]  DEFAULT ((0)) FOR [priority]
GO
/****** Object:  Default [DF__KS_U_Produ__Hits__230A1C49]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Produ__Hits__230A1C49]  DEFAULT ((0)) FOR [Hits]
GO
/****** Object:  Default [DF__KS_U_Prod__HitsB__23FE4082]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__HitsB__23FE4082]  DEFAULT ((0)) FOR [HitsByDay]
GO
/****** Object:  Default [DF__KS_U_Prod__HitsB__24F264BB]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__HitsB__24F264BB]  DEFAULT ((0)) FOR [HitsByWeek]
GO
/****** Object:  Default [DF__KS_U_Prod__HitsB__25E688F4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__HitsB__25E688F4]  DEFAULT ((0)) FOR [HitsByMonth]
GO
/****** Object:  Default [DF__KS_U_Prod__VoteI__26DAAD2D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__VoteI__26DAAD2D]  DEFAULT ((0)) FOR [VoteID]
GO
/****** Object:  Default [DF__KS_U_Prod__ShowO__27CED166]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__ShowO__27CED166]  DEFAULT ((0)) FOR [ShowON3G]
GO
/****** Object:  Default [DF__KS_U_Prod__Refre__28C2F59F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Refre__28C2F59F]  DEFAULT ((0)) FOR [RefreshTF]
GO
/****** Object:  Default [DF__KS_U_Prod__Verif__29B719D8]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Verif__29B719D8]  DEFAULT ((0)) FOR [Verify]
GO
/****** Object:  Default [DF__KS_U_Prod__DelTF__2AAB3E11]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__DelTF__2AAB3E11]  DEFAULT ((0)) FOR [DelTF]
GO
/****** Object:  Default [DF__KS_U_Prod__Attac__2B9F624A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Attac__2B9F624A]  DEFAULT ((0)) FOR [AttachmentCharge]
GO
/****** Object:  Default [DF__KS_U_Prod__Attac__2C938683]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Attac__2C938683]  DEFAULT ((0)) FOR [AttachmentChargeOnce]
GO
/****** Object:  Default [DF__KS_U_Prod__Provi__2D87AABC]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Provi__2D87AABC]  DEFAULT ((0)) FOR [ProvinceId]
GO
/****** Object:  Default [DF__KS_U_Prod__CityI__2E7BCEF5]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__CityI__2E7BCEF5]  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF__KS_U_Prod__Count__2F6FF32E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Count__2F6FF32E]  DEFAULT ((0)) FOR [CountyID]
GO
/****** Object:  Default [DF__KS_U_Prod__Comme__30641767]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Comme__30641767]  DEFAULT ((0)) FOR [CommentNum]
GO
/****** Object:  Default [DF__KS_U_Prod__Produ__31583BA0]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Produ__31583BA0]  DEFAULT ((0)) FOR [ProductType]
GO
/****** Object:  Default [DF__KS_U_Prod__Weigh__324C5FD9]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Weigh__324C5FD9]  DEFAULT ((0)) FOR [Weight]
GO
/****** Object:  Default [DF__KS_U_Prod__Servi__33408412]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Servi__33408412]  DEFAULT ((0)) FOR [ServiceTerm]
GO
/****** Object:  Default [DF__KS_U_Prod__Brand__3434A84B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Brand__3434A84B]  DEFAULT ((0)) FOR [BrandID]
GO
/****** Object:  Default [DF__KS_U_Prod__Amoun__3528CC84]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Amoun__3528CC84]  DEFAULT ((0)) FOR [Amount]
GO
/****** Object:  Default [DF__KS_U_Prod__Alarm__361CF0BD]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Alarm__361CF0BD]  DEFAULT ((0)) FOR [AlarmNum]
GO
/****** Object:  Default [DF__KS_U_Prod__Price__371114F6]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Price__371114F6]  DEFAULT ((0)) FOR [Price]
GO
/****** Object:  Default [DF__KS_U_Prod__Price__3805392F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Price__3805392F]  DEFAULT ((0)) FOR [Price_Member]
GO
/****** Object:  Default [DF__KS_U_Prod__Group__38F95D68]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Group__38F95D68]  DEFAULT ((0)) FOR [GroupPrice]
GO
/****** Object:  Default [DF__KS_U_Prod__TaxTF__39ED81A1]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__TaxTF__39ED81A1]  DEFAULT ((0)) FOR [TaxTF]
GO
/****** Object:  Default [DF__KS_U_Produc__Tax__3AE1A5DA]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Produc__Tax__3AE1A5DA]  DEFAULT ((0)) FOR [Tax]
GO
/****** Object:  Default [DF__KS_U_Prod__MinOr__3BD5CA13]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__MinOr__3BD5CA13]  DEFAULT ((0)) FOR [MinOrderNum]
GO
/****** Object:  Default [DF__KS_U_Prod__MaxOr__3CC9EE4C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__MaxOr__3CC9EE4C]  DEFAULT ((0)) FOR [MaxOrderNum]
GO
/****** Object:  Default [DF__KS_U_Prod__Score__3DBE1285]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Score__3DBE1285]  DEFAULT ((0)) FOR [Score]
GO
/****** Object:  Default [DF__KS_U_Prod__IsCha__3EB236BE]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__IsCha__3EB236BE]  DEFAULT ((0)) FOR [IsChangeBuy]
GO
/****** Object:  Default [DF__KS_U_Prod__Chang__3FA65AF7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Chang__3FA65AF7]  DEFAULT ((0)) FOR [ChangeBuyNeedPrice]
GO
/****** Object:  Default [DF__KS_U_Prod__Chang__409A7F30]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Chang__409A7F30]  DEFAULT ((0)) FOR [ChangeBuyPresentPrice]
GO
/****** Object:  Default [DF__KS_U_Prod__IsLim__418EA369]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__IsLim__418EA369]  DEFAULT ((0)) FOR [IsLimitbuy]
GO
/****** Object:  Default [DF__KS_U_Prod__Limit__4282C7A2]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Limit__4282C7A2]  DEFAULT ((0)) FOR [LimitBuyPrice]
GO
/****** Object:  Default [DF__KS_U_Prod__Limit__4376EBDB]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Limit__4376EBDB]  DEFAULT ((0)) FOR [LimitBuyTaskID]
GO
/****** Object:  Default [DF__KS_U_Prod__Limit__446B1014]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Limit__446B1014]  DEFAULT ((0)) FOR [LimitBuyAmount]
GO
/****** Object:  Default [DF__KS_U_Prod__HasSo__455F344D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__HasSo__455F344D]  DEFAULT ((0)) FOR [HasSold]
GO
/****** Object:  Default [DF__KS_U_Prod__CmtNu__46535886]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__CmtNu__46535886]  DEFAULT ((0)) FOR [CmtNum]
GO
/****** Object:  Default [DF__KS_U_Prod__AskNu__47477CBF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__AskNu__47477CBF]  DEFAULT ((0)) FOR [AskNum]
GO
/****** Object:  Default [DF__KS_U_Prod__IsSco__483BA0F8]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__IsSco__483BA0F8]  DEFAULT ((0)) FOR [IsScoreChange]
GO
/****** Object:  Default [DF__KS_U_Prod__Chang__492FC531]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Chang__492FC531]  DEFAULT ((0)) FOR [ChangeScore]
GO
/****** Object:  Default [DF__KS_U_Prod__PayTy__4A23E96A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__PayTy__4A23E96A]  DEFAULT ((0)) FOR [PayType]
GO
/****** Object:  Default [DF__KS_U_Prod__Front__4B180DA3]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Front__4B180DA3]  DEFAULT ((0)) FOR [FrontPrice]
GO
/****** Object:  Default [DF__KS_U_Prod__IsLim__4C0C31DC]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__IsLim__4C0C31DC]  DEFAULT ((0)) FOR [IsLimitTime]
GO
/****** Object:  Default [DF__KS_U_Prod__IsBoo__4D005615]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__IsBoo__4D005615]  DEFAULT ((0)) FOR [IsBookCode]
GO
/****** Object:  Default [DF__KS_U_Prod__BookC__4DF47A4E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__BookC__4DF47A4E]  DEFAULT ((0)) FOR [BookCodeTypeID]
GO
/****** Object:  Default [DF__KS_U_Prod__Limit__4EE89E87]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Limit__4EE89E87]  DEFAULT ((0)) FOR [LimitCityNum]
GO
/****** Object:  Default [DF__KS_U_Prod__IsPro__4FDCC2C0]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__IsPro__4FDCC2C0]  DEFAULT ((0)) FOR [IsPromotions]
GO
/****** Object:  Default [DF_KS_U_Product_IsGroupRate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF_KS_U_Product_IsGroupRate]  DEFAULT ((0)) FOR [IsGroupRate]
GO
/****** Object:  Default [DF__KS_U_Prod__Limit__60882BD5]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Limit__60882BD5]  DEFAULT ((0)) FOR [LimitBuyType]
GO
/****** Object:  Default [DF__KS_U_Prod__Limit__617C500E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Limit__617C500E]  DEFAULT ((0)) FOR [LimitBuyNum]
GO
/****** Object:  Default [DF__KS_U_Prod__Price__62707447]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Price__62707447]  DEFAULT ((0)) FOR [Price_Cost]
GO
/****** Object:  Default [DF__KS_U_Prod__GoodN__6F8056A2]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__GoodN__6F8056A2]  DEFAULT ((0)) FOR [GoodNum]
GO
/****** Object:  Default [DF__KS_U_Prod__BadNu__70747ADB]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__BadNu__70747ADB]  DEFAULT ((0)) FOR [BadNum]
GO
/****** Object:  Default [DF__KS_U_Prod__FavNu__71689F14]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__FavNu__71689F14]  DEFAULT ((0)) FOR [FavNum]
GO
/****** Object:  Default [DF__KS_U_Prod__Share__725CC34D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Share__725CC34D]  DEFAULT ((0)) FOR [ShareNum]
GO
/****** Object:  Default [DF_KS_U_Product_AllowBuyFlag]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF_KS_U_Product_AllowBuyFlag]  DEFAULT ((0)) FOR [AllowBuyFlag]
GO
/****** Object:  Default [DF__KS_U_Prod__Freig__0A7F30F8]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Product] ADD  CONSTRAINT [DF__KS_U_Prod__Freig__0A7F30F8]  DEFAULT ((0)) FOR [FreightFree]
GO
/****** Object:  Default [DF__KS_U_Phot__InfoI__65E11278]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__InfoI__65E11278]  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF__KS_U_Phot__Class__66D536B1]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__Class__66D536B1]  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF__KS_U_Phot__ShowS__67C95AEA]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__ShowS__67C95AEA]  DEFAULT ((0)) FOR [ShowStyle]
GO
/****** Object:  Default [DF__KS_U_Phot__PageN__68BD7F23]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__PageN__68BD7F23]  DEFAULT ((10)) FOR [PageNum]
GO
/****** Object:  Default [DF__KS_U_Phot__Chann__735B0927]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__Chann__735B0927]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF__KS_U_Phot__prior__744F2D60]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__prior__744F2D60]  DEFAULT ((0)) FOR [priority]
GO
/****** Object:  Default [DF__KS_U_Photo__Hits__75435199]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Photo__Hits__75435199]  DEFAULT ((0)) FOR [Hits]
GO
/****** Object:  Default [DF__KS_U_Phot__HitsB__763775D2]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__HitsB__763775D2]  DEFAULT ((0)) FOR [HitsByDay]
GO
/****** Object:  Default [DF__KS_U_Phot__HitsB__772B9A0B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__HitsB__772B9A0B]  DEFAULT ((0)) FOR [HitsByWeek]
GO
/****** Object:  Default [DF__KS_U_Phot__HitsB__781FBE44]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__HitsB__781FBE44]  DEFAULT ((0)) FOR [HitsByMonth]
GO
/****** Object:  Default [DF__KS_U_Phot__VoteI__7913E27D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__VoteI__7913E27D]  DEFAULT ((0)) FOR [VoteID]
GO
/****** Object:  Default [DF__KS_U_Phot__ShowO__7A0806B6]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__ShowO__7A0806B6]  DEFAULT ((0)) FOR [ShowON3G]
GO
/****** Object:  Default [DF__KS_U_Phot__Refre__7AFC2AEF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__Refre__7AFC2AEF]  DEFAULT ((0)) FOR [RefreshTF]
GO
/****** Object:  Default [DF__KS_U_Phot__Verif__7BF04F28]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__Verif__7BF04F28]  DEFAULT ((0)) FOR [Verify]
GO
/****** Object:  Default [DF__KS_U_Phot__DelTF__7CE47361]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__DelTF__7CE47361]  DEFAULT ((0)) FOR [DelTF]
GO
/****** Object:  Default [DF__KS_U_Phot__Attac__7DD8979A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__Attac__7DD8979A]  DEFAULT ((0)) FOR [AttachmentCharge]
GO
/****** Object:  Default [DF__KS_U_Phot__Attac__7ECCBBD3]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__Attac__7ECCBBD3]  DEFAULT ((0)) FOR [AttachmentChargeOnce]
GO
/****** Object:  Default [DF__KS_U_Phot__Provi__7FC0E00C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__Provi__7FC0E00C]  DEFAULT ((0)) FOR [ProvinceId]
GO
/****** Object:  Default [DF__KS_U_Phot__CityI__00B50445]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__CityI__00B50445]  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF__KS_U_Phot__Count__01A9287E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__Count__01A9287E]  DEFAULT ((0)) FOR [CountyID]
GO
/****** Object:  Default [DF__KS_U_Phot__Comme__029D4CB7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__Comme__029D4CB7]  DEFAULT ((0)) FOR [CommentNum]
GO
/****** Object:  Default [DF__KS_U_Phot__InfoP__039170F0]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__InfoP__039170F0]  DEFAULT ((0)) FOR [InfoPurview]
GO
/****** Object:  Default [DF__KS_U_Phot__ReadP__04859529]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__ReadP__04859529]  DEFAULT ((0)) FOR [ReadPoint]
GO
/****** Object:  Default [DF__KS_U_Phot__Charg__0579B962]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__Charg__0579B962]  DEFAULT ((0)) FOR [ChargeType]
GO
/****** Object:  Default [DF__KS_U_Phot__Pitch__066DDD9B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__Pitch__066DDD9B]  DEFAULT ((0)) FOR [PitchTime]
GO
/****** Object:  Default [DF__KS_U_Phot__ReadT__076201D4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__ReadT__076201D4]  DEFAULT ((0)) FOR [ReadTimes]
GO
/****** Object:  Default [DF__KS_U_Phot__Divid__0856260D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__Divid__0856260D]  DEFAULT ((0)) FOR [DividePercent]
GO
/****** Object:  Default [DF__KS_U_Photo__PKID__094A4A46]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Photo__PKID__094A4A46]  DEFAULT ((0)) FOR [PKID]
GO
/****** Object:  Default [DF__KS_U_Phot__GoodN__67DF34DA]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__GoodN__67DF34DA]  DEFAULT ((0)) FOR [GoodNum]
GO
/****** Object:  Default [DF__KS_U_Phot__BadNu__68D35913]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__BadNu__68D35913]  DEFAULT ((0)) FOR [BadNum]
GO
/****** Object:  Default [DF__KS_U_Phot__FavNu__69C77D4C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__FavNu__69C77D4C]  DEFAULT ((0)) FOR [FavNum]
GO
/****** Object:  Default [DF__KS_U_Phot__Share__6ABBA185]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Photo] ADD  CONSTRAINT [DF__KS_U_Phot__Share__6ABBA185]  DEFAULT ((0)) FOR [ShareNum]
GO
/****** Object:  Default [DF__KS_U_down__InfoI__63F8CA06]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__InfoI__63F8CA06]  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF__KS_U_down__Class__64ECEE3F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__Class__64ECEE3F]  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF__KS_U_down__Chann__0A3E6E7F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__Chann__0A3E6E7F]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF__KS_U_down__prior__0B3292B8]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__prior__0B3292B8]  DEFAULT ((0)) FOR [priority]
GO
/****** Object:  Default [DF__KS_U_downl__Hits__0C26B6F1]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_downl__Hits__0C26B6F1]  DEFAULT ((0)) FOR [Hits]
GO
/****** Object:  Default [DF__KS_U_down__HitsB__0D1ADB2A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__HitsB__0D1ADB2A]  DEFAULT ((0)) FOR [HitsByDay]
GO
/****** Object:  Default [DF__KS_U_down__HitsB__0E0EFF63]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__HitsB__0E0EFF63]  DEFAULT ((0)) FOR [HitsByWeek]
GO
/****** Object:  Default [DF__KS_U_down__HitsB__0F03239C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__HitsB__0F03239C]  DEFAULT ((0)) FOR [HitsByMonth]
GO
/****** Object:  Default [DF__KS_U_down__VoteI__0FF747D5]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__VoteI__0FF747D5]  DEFAULT ((0)) FOR [VoteID]
GO
/****** Object:  Default [DF__KS_U_down__ShowO__10EB6C0E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__ShowO__10EB6C0E]  DEFAULT ((0)) FOR [ShowON3G]
GO
/****** Object:  Default [DF__KS_U_down__Refre__11DF9047]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__Refre__11DF9047]  DEFAULT ((0)) FOR [RefreshTF]
GO
/****** Object:  Default [DF__KS_U_down__Verif__12D3B480]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__Verif__12D3B480]  DEFAULT ((0)) FOR [Verify]
GO
/****** Object:  Default [DF__KS_U_down__DelTF__13C7D8B9]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__DelTF__13C7D8B9]  DEFAULT ((0)) FOR [DelTF]
GO
/****** Object:  Default [DF__KS_U_down__Attac__14BBFCF2]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__Attac__14BBFCF2]  DEFAULT ((0)) FOR [AttachmentCharge]
GO
/****** Object:  Default [DF__KS_U_down__Attac__15B0212B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__Attac__15B0212B]  DEFAULT ((0)) FOR [AttachmentChargeOnce]
GO
/****** Object:  Default [DF__KS_U_down__Provi__16A44564]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__Provi__16A44564]  DEFAULT ((0)) FOR [ProvinceId]
GO
/****** Object:  Default [DF__KS_U_down__CityI__1798699D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__CityI__1798699D]  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF__KS_U_down__Count__188C8DD6]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__Count__188C8DD6]  DEFAULT ((0)) FOR [CountyID]
GO
/****** Object:  Default [DF__KS_U_down__Comme__1980B20F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__Comme__1980B20F]  DEFAULT ((0)) FOR [CommentNum]
GO
/****** Object:  Default [DF__KS_U_down__InfoP__1A74D648]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__InfoP__1A74D648]  DEFAULT ((0)) FOR [InfoPurview]
GO
/****** Object:  Default [DF__KS_U_down__ReadP__1B68FA81]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__ReadP__1B68FA81]  DEFAULT ((0)) FOR [ReadPoint]
GO
/****** Object:  Default [DF__KS_U_down__Charg__1C5D1EBA]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__Charg__1C5D1EBA]  DEFAULT ((0)) FOR [ChargeType]
GO
/****** Object:  Default [DF__KS_U_down__Pitch__1D5142F3]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__Pitch__1D5142F3]  DEFAULT ((0)) FOR [PitchTime]
GO
/****** Object:  Default [DF__KS_U_down__ReadT__1E45672C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__ReadT__1E45672C]  DEFAULT ((0)) FOR [ReadTimes]
GO
/****** Object:  Default [DF__KS_U_down__Divid__1F398B65]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_down__Divid__1F398B65]  DEFAULT ((0)) FOR [DividePercent]
GO
/****** Object:  Default [DF__KS_U_downl__PKID__202DAF9E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  CONSTRAINT [DF__KS_U_downl__PKID__202DAF9E]  DEFAULT ((0)) FOR [PKID]
GO
/****** Object:  Default [DF__KS_U_down__GoodN__0D05CC91]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  DEFAULT ((0)) FOR [GoodNum]
GO
/****** Object:  Default [DF__KS_U_down__BadNu__0DF9F0CA]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  DEFAULT ((0)) FOR [BadNum]
GO
/****** Object:  Default [DF__KS_U_down__FavNu__0EEE1503]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  DEFAULT ((0)) FOR [FavNum]
GO
/****** Object:  Default [DF__KS_U_down__Share__0FE2393C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_download] ADD  DEFAULT ((0)) FOR [ShareNum]
GO
/****** Object:  Default [DF__KS_U_Arti__InfoI__62108194]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__InfoI__62108194]  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF__KS_U_Arti__Class__6304A5CD]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__Class__6304A5CD]  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF__KS_U_Arti__Chann__5C77A3CF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__Chann__5C77A3CF]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF__KS_U_Arti__prior__5D6BC808]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__prior__5D6BC808]  DEFAULT ((0)) FOR [priority]
GO
/****** Object:  Default [DF__KS_U_Artic__Hits__5E5FEC41]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Artic__Hits__5E5FEC41]  DEFAULT ((0)) FOR [Hits]
GO
/****** Object:  Default [DF__KS_U_Arti__HitsB__5F54107A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__HitsB__5F54107A]  DEFAULT ((0)) FOR [HitsByDay]
GO
/****** Object:  Default [DF__KS_U_Arti__HitsB__604834B3]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__HitsB__604834B3]  DEFAULT ((0)) FOR [HitsByWeek]
GO
/****** Object:  Default [DF__KS_U_Arti__HitsB__613C58EC]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__HitsB__613C58EC]  DEFAULT ((0)) FOR [HitsByMonth]
GO
/****** Object:  Default [DF__KS_U_Arti__VoteI__62307D25]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__VoteI__62307D25]  DEFAULT ((0)) FOR [VoteID]
GO
/****** Object:  Default [DF__KS_U_Arti__ShowO__6324A15E]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__ShowO__6324A15E]  DEFAULT ((0)) FOR [ShowON3G]
GO
/****** Object:  Default [DF__KS_U_Arti__Refre__6418C597]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__Refre__6418C597]  DEFAULT ((0)) FOR [RefreshTF]
GO
/****** Object:  Default [DF__KS_U_Arti__Verif__650CE9D0]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__Verif__650CE9D0]  DEFAULT ((0)) FOR [Verify]
GO
/****** Object:  Default [DF__KS_U_Arti__DelTF__66010E09]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__DelTF__66010E09]  DEFAULT ((0)) FOR [DelTF]
GO
/****** Object:  Default [DF__KS_U_Arti__Attac__66F53242]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__Attac__66F53242]  DEFAULT ((0)) FOR [AttachmentCharge]
GO
/****** Object:  Default [DF__KS_U_Arti__Attac__67E9567B]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__Attac__67E9567B]  DEFAULT ((0)) FOR [AttachmentChargeOnce]
GO
/****** Object:  Default [DF__KS_U_Arti__Provi__68DD7AB4]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__Provi__68DD7AB4]  DEFAULT ((0)) FOR [ProvinceId]
GO
/****** Object:  Default [DF__KS_U_Arti__CityI__69D19EED]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__CityI__69D19EED]  DEFAULT ((0)) FOR [CityID]
GO
/****** Object:  Default [DF__KS_U_Arti__Count__6AC5C326]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__Count__6AC5C326]  DEFAULT ((0)) FOR [CountyID]
GO
/****** Object:  Default [DF__KS_U_Arti__Comme__6BB9E75F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__Comme__6BB9E75F]  DEFAULT ((0)) FOR [CommentNum]
GO
/****** Object:  Default [DF__KS_U_Arti__InfoP__6CAE0B98]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__InfoP__6CAE0B98]  DEFAULT ((0)) FOR [InfoPurview]
GO
/****** Object:  Default [DF__KS_U_Arti__ReadP__6DA22FD1]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__ReadP__6DA22FD1]  DEFAULT ((0)) FOR [ReadPoint]
GO
/****** Object:  Default [DF__KS_U_Arti__Charg__6E96540A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__Charg__6E96540A]  DEFAULT ((0)) FOR [ChargeType]
GO
/****** Object:  Default [DF__KS_U_Arti__Pitch__6F8A7843]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__Pitch__6F8A7843]  DEFAULT ((0)) FOR [PitchTime]
GO
/****** Object:  Default [DF__KS_U_Arti__ReadT__707E9C7C]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__ReadT__707E9C7C]  DEFAULT ((0)) FOR [ReadTimes]
GO
/****** Object:  Default [DF__KS_U_Arti__Divid__7172C0B5]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Arti__Divid__7172C0B5]  DEFAULT ((0)) FOR [DividePercent]
GO
/****** Object:  Default [DF__KS_U_Artic__PKID__7266E4EE]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  CONSTRAINT [DF__KS_U_Artic__PKID__7266E4EE]  DEFAULT ((0)) FOR [PKID]
GO
/****** Object:  Default [DF__KS_U_Arti__GoodN__29A20B3F]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  DEFAULT ((0)) FOR [GoodNum]
GO
/****** Object:  Default [DF__KS_U_Arti__BadNu__2A962F78]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  DEFAULT ((0)) FOR [BadNum]
GO
/****** Object:  Default [DF__KS_U_Arti__FavNu__2B8A53B1]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  DEFAULT ((0)) FOR [FavNum]
GO
/****** Object:  Default [DF__KS_U_Arti__Share__2C7E77EA]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_U_Article] ADD  DEFAULT ((0)) FOR [ShareNum]
GO
/****** Object:  Default [DF__KS_Templa__Templ__2D729C23]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Template] ADD  DEFAULT ((0)) FOR [TemplateType]
GO
/****** Object:  Default [DF_KS_Template_OriTemplateID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Template] ADD  CONSTRAINT [DF_KS_Template_OriTemplateID]  DEFAULT ((0)) FOR [OriTemplateID]
GO
/****** Object:  Default [DF_KS_Template_IsViewEdit]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Template] ADD  CONSTRAINT [DF_KS_Template_IsViewEdit]  DEFAULT ((0)) FOR [IsViewEdit]
GO
/****** Object:  Default [DF__KS_Templa__Agent__304F08CE]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Template] ADD  DEFAULT ((0)) FOR [AgentType]
GO
/****** Object:  Default [DF__KS_Templa__IsRes__31432D07]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Template] ADD  DEFAULT ((0)) FOR [IsResponsive]
GO
/****** Object:  Default [DF_KS_SpecialR_SpecialID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SpecialR] ADD  CONSTRAINT [DF_KS_SpecialR_SpecialID]  DEFAULT ((0)) FOR [SpecialID]
GO
/****** Object:  Default [DF_KS_SpecialR_InfoID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SpecialR] ADD  CONSTRAINT [DF_KS_SpecialR_InfoID]  DEFAULT ((0)) FOR [InfoID]
GO
/****** Object:  Default [DF_KS_SpecialR_ChannelID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SpecialR] ADD  CONSTRAINT [DF_KS_SpecialR_ChannelID]  DEFAULT ((0)) FOR [ChannelID]
GO
/****** Object:  Default [DF_KS_SpecialClass_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SpecialClass] ADD  CONSTRAINT [DF_KS_SpecialClass_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_SpecialClass_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SpecialClass] ADD  CONSTRAINT [DF_KS_SpecialClass_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_KS_Special_ClassID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Special] ADD  CONSTRAINT [DF_KS_Special_ClassID]  DEFAULT ((0)) FOR [ClassID]
GO
/****** Object:  Default [DF_KS_Special_Recommend]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Special] ADD  CONSTRAINT [DF_KS_Special_Recommend]  DEFAULT ((0)) FOR [Recommend]
GO
/****** Object:  Default [DF_KS_Special_SpecialPurView]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Special] ADD  CONSTRAINT [DF_KS_Special_SpecialPurView]  DEFAULT ((0)) FOR [SpecialPurView]
GO
/****** Object:  Default [DF_KS_Special_ReadPoint]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Special] ADD  CONSTRAINT [DF_KS_Special_ReadPoint]  DEFAULT ((0)) FOR [ReadPoint]
GO
/****** Object:  Default [DF_KS_Special_ChargeType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Special] ADD  CONSTRAINT [DF_KS_Special_ChargeType]  DEFAULT ((0)) FOR [ChargeType]
GO
/****** Object:  Default [DF_KS_Special_PitchTime]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Special] ADD  CONSTRAINT [DF_KS_Special_PitchTime]  DEFAULT ((0)) FOR [PitchTime]
GO
/****** Object:  Default [DF_KS_Special_ReadTimes]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Special] ADD  CONSTRAINT [DF_KS_Special_ReadTimes]  DEFAULT ((0)) FOR [ReadTimes]
GO
/****** Object:  Default [DF_KS_Special_Hits]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_Special] ADD  CONSTRAINT [DF_KS_Special_Hits]  DEFAULT ((0)) FOR [Hits]
GO
/****** Object:  Default [DF_KS_SJZDYType_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJZDYType] ADD  CONSTRAINT [DF_KS_SJZDYType_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF__KS_SJZDYT__IsDef__14C6E9EA]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJZDYType] ADD  CONSTRAINT [DF__KS_SJZDYT__IsDef__14C6E9EA]  DEFAULT ((0)) FOR [IsDefault]
GO
/****** Object:  Default [DF_KS_SJZDYType_tmtype]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJZDYType] ADD  CONSTRAINT [DF_KS_SJZDYType_tmtype]  DEFAULT ((0)) FOR [tmtype]
GO
/****** Object:  Default [DF_KS_SJWarning_flag]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJWarning] ADD  CONSTRAINT [DF_KS_SJWarning_flag]  DEFAULT ((0)) FOR [flag]
GO
/****** Object:  Default [DF_KS_SJWarning_readTF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJWarning] ADD  CONSTRAINT [DF_KS_SJWarning_readTF]  DEFAULT ((0)) FOR [readTF]
GO
/****** Object:  Default [DF_KS_SJtypeClass_ParentID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJtypeClass] ADD  CONSTRAINT [DF_KS_SJtypeClass_ParentID]  DEFAULT ((0)) FOR [ParentID]
GO
/****** Object:  Default [DF_KS_SJtypeClass_Root]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJtypeClass] ADD  CONSTRAINT [DF_KS_SJtypeClass_Root]  DEFAULT ((0)) FOR [Root]
GO
/****** Object:  Default [DF_KS_SJtypeClass_Depth]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJtypeClass] ADD  CONSTRAINT [DF_KS_SJtypeClass_Depth]  DEFAULT ((0)) FOR [Depth]
GO
/****** Object:  Default [DF_KS_SJtypeClass_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJtypeClass] ADD  CONSTRAINT [DF_KS_SJtypeClass_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_KS_SJtypeClass_Child]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJtypeClass] ADD  CONSTRAINT [DF_KS_SJtypeClass_Child]  DEFAULT ((0)) FOR [Child]
GO
/****** Object:  Default [DF_KS_SJtypeClass_PrevID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJtypeClass] ADD  CONSTRAINT [DF_KS_SJtypeClass_PrevID]  DEFAULT ((0)) FOR [PrevID]
GO
/****** Object:  Default [DF_KS_SJtypeClass_NextID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJtypeClass] ADD  CONSTRAINT [DF_KS_SJtypeClass_NextID]  DEFAULT ((0)) FOR [NextID]
GO
/****** Object:  Default [DF_KS_SJtypeClass_ShowInTop]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJtypeClass] ADD  CONSTRAINT [DF_KS_SJtypeClass_ShowInTop]  DEFAULT ((0)) FOR [ShowInTop]
GO
/****** Object:  Default [DF__KS_SJtype__SJCla__4B02FF0A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJtypeClass] ADD  DEFAULT ((0)) FOR [SJClassId]
GO
/****** Object:  Default [DF__KS_SJtype__tktot__4BF72343]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJtypeClass] ADD  DEFAULT ((0)) FOR [tktotal]
GO
/****** Object:  Default [DF_KS_SJType_TypeName]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJType] ADD  CONSTRAINT [DF_KS_SJType_TypeName]  DEFAULT ('试卷类别名称') FOR [TypeName]
GO
/****** Object:  Default [DF_KS_SJType_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJType] ADD  CONSTRAINT [DF_KS_SJType_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF_KS_SJType_IsDefault]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJType] ADD  CONSTRAINT [DF_KS_SJType_IsDefault]  DEFAULT ((0)) FOR [IsDefault]
GO
/****** Object:  Default [DF_KS_SJType_TotalNum]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJType] ADD  CONSTRAINT [DF_KS_SJType_TotalNum]  DEFAULT ((0)) FOR [TotalNum]
GO
/****** Object:  Default [DF_KS_SJTMType_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTMType] ADD  CONSTRAINT [DF_KS_SJTMType_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF__KS_SJTMTy__KouFS__51AFFC99]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTMType] ADD  DEFAULT ((0)) FOR [KouFS]
GO
/****** Object:  Default [DF__KS_SJTMTy__IsKou__52A420D2]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTMType] ADD  DEFAULT ((0)) FOR [IsKouFS]
GO
/****** Object:  Default [DF_KS_SJTMType_IsAddType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTMType] ADD  CONSTRAINT [DF_KS_SJTMType_IsAddType]  DEFAULT ((0)) FOR [IsAddType]
GO
/****** Object:  Default [DF__KS_SJTKSub__TmFs__548C6944]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTKSub] ADD  DEFAULT ((0)) FOR [TmFs]
GO
/****** Object:  Default [DF__KS_SJTKSu__TmTyp__55808D7D]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTKSub] ADD  DEFAULT ((0)) FOR [TmType]
GO
/****** Object:  Default [DF__KS_SJTKSu__Paren__5674B1B6]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTKSub] ADD  DEFAULT ((0)) FOR [ParentTmID]
GO
/****** Object:  Default [DF__KS_SJTKSu__Order__5768D5EF]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTKSub] ADD  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF__KS_SJTKSu__Optio__585CFA28]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTKSub] ADD  DEFAULT ((0)) FOR [OptionNum]
GO
/****** Object:  Default [DF__KS_SJTKSu__KouFS__59511E61]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTKSub] ADD  DEFAULT ((0)) FOR [KouFS]
GO
/****** Object:  Default [DF__KS_SJTKSu__IsKou__5A45429A]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_SJTKSub] ADD  DEFAULT ((0)) FOR [IsKouFS]
GO
/****** Object:  Default [DF_KS_YunVideoSetting_VideoType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunVideoSetting] ADD  CONSTRAINT [DF_KS_YunVideoSetting_VideoType]  DEFAULT ((1)) FOR [VideoType]
GO
/****** Object:  Default [DF_KS_YunVideoSetting_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunVideoSetting] ADD  CONSTRAINT [DF_KS_YunVideoSetting_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_YunVideoSetting_YunType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunVideoSetting] ADD  CONSTRAINT [DF_KS_YunVideoSetting_YunType]  DEFAULT ((1)) FOR [YunType]
GO
/****** Object:  Default [DF_KS_YunVideoSetting_ModifyTimes]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunVideoSetting] ADD  CONSTRAINT [DF_KS_YunVideoSetting_ModifyTimes]  DEFAULT ((0)) FOR [ModifyTimes]
GO
/****** Object:  Default [DF_KS_YunVideoItem_Vid]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunVideoItem] ADD  CONSTRAINT [DF_KS_YunVideoItem_Vid]  DEFAULT ((0)) FOR [Vid]
GO
/****** Object:  Default [DF_KS_YunVideoItem_VideoType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunVideoItem] ADD  CONSTRAINT [DF_KS_YunVideoItem_VideoType]  DEFAULT ((1)) FOR [VideoType]
GO
/****** Object:  Default [DF_Table_1_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunVideo] ADD  CONSTRAINT [DF_Table_1_AddDate]  DEFAULT (getdate()) FOR [Ptime]
GO
/****** Object:  Default [DF_KS_YunVideo_Times]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunVideo] ADD  CONSTRAINT [DF_KS_YunVideo_Times]  DEFAULT ((0)) FOR [Times]
GO
/****** Object:  Default [DF_KS_YunVideo_VideoType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunVideo] ADD  CONSTRAINT [DF_KS_YunVideo_VideoType]  DEFAULT ((1)) FOR [VideoType]
GO
/****** Object:  Default [DF_KS_YunVideo_NewStatus]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunVideo] ADD  CONSTRAINT [DF_KS_YunVideo_NewStatus]  DEFAULT ((0)) FOR [NewStatus]
GO
/****** Object:  Default [DF_KS_YunOpenUser_Status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunOpenUser] ADD  CONSTRAINT [DF_KS_YunOpenUser_Status]  DEFAULT ((0)) FOR [Status]
GO
/****** Object:  Default [DF_KS_YunOpenUser_Verify]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunOpenUser] ADD  CONSTRAINT [DF_KS_YunOpenUser_Verify]  DEFAULT ((0)) FOR [Verify]
GO
/****** Object:  Default [DF_KS_YunOpenUser_AddDate]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunOpenUser] ADD  CONSTRAINT [DF_KS_YunOpenUser_AddDate]  DEFAULT (getdate()) FOR [AddDate]
GO
/****** Object:  Default [DF_KS_YunCosVideoCata_VideoType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunCosVideoCata] ADD  CONSTRAINT [DF_KS_YunCosVideoCata_VideoType]  DEFAULT ((1)) FOR [VideoType]
GO
/****** Object:  Default [DF_KS_YunCosVideoCata_Flag]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunCosVideoCata] ADD  CONSTRAINT [DF_KS_YunCosVideoCata_Flag]  DEFAULT ((0)) FOR [Flag]
GO
/****** Object:  Default [DF_KS_YunAPP_AppType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunAPP] ADD  CONSTRAINT [DF_KS_YunAPP_AppType]  DEFAULT ((0)) FOR [AppType]
GO
/****** Object:  Default [DF_KS_YunAPP_IsInstall]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_YunAPP] ADD  CONSTRAINT [DF_KS_YunAPP_IsInstall]  DEFAULT ((0)) FOR [IsInstall]
GO
/****** Object:  Default [DF_KS_WorkTable_OrderID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_WorkTable] ADD  CONSTRAINT [DF_KS_WorkTable_OrderID]  DEFAULT ((0)) FOR [OrderID]
GO
/****** Object:  Default [DF__KS_VoteLo__VoteI__06E2DEE7]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_VoteLog] ADD  DEFAULT ((0)) FOR [VoteID]
GO
/****** Object:  Default [DF__KS_VoteLo__VoteD__07D70320]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_VoteLog] ADD  DEFAULT (getdate()) FOR [VoteDate]
GO
/****** Object:  Default [DF__KS_VoteIt__VoteI__012A0591]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_VoteItem] ADD  DEFAULT ((0)) FOR [VoteID]
GO
/****** Object:  Default [DF__KS_VoteIt__VoteN__021E29CA]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_VoteItem] ADD  DEFAULT ((0)) FOR [VoteNum]
GO
/****** Object:  Default [DF_KS_RegisterLog_usertype]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_RegisterLog] ADD  CONSTRAINT [DF_KS_RegisterLog_usertype]  DEFAULT ((0)) FOR [usertype]
GO
/****** Object:  Default [DF_KS_RechargeRecords_status]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_RechargeRecords] ADD  CONSTRAINT [DF_KS_RechargeRecords_status]  DEFAULT ((0)) FOR [status]
GO
/****** Object:  Default [DF_KS_RechargeRecords_paymoney]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_RechargeRecords] ADD  CONSTRAINT [DF_KS_RechargeRecords_paymoney]  DEFAULT ((0)) FOR [paymoney]
GO
/****** Object:  Default [DF_KS_RechargeRecords_realmoney]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_RechargeRecords] ADD  CONSTRAINT [DF_KS_RechargeRecords_realmoney]  DEFAULT ((0)) FOR [realmoney]
GO
/****** Object:  Default [DF_KS_RechargeRecords_platID]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_RechargeRecords] ADD  CONSTRAINT [DF_KS_RechargeRecords_platID]  DEFAULT ((0)) FOR [platID]
GO
/****** Object:  Default [DF_KS_RechargeRecords_OrderType]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_RechargeRecords] ADD  CONSTRAINT [DF_KS_RechargeRecords_OrderType]  DEFAULT ((0)) FOR [OrderType]
GO
/****** Object:  Default [DF_KS_RechargeRecords_packId]    Script Date: 12/12/2018 20:03:59 ******/
ALTER TABLE [KS_RechargeRecords] ADD  CONSTRAINT [DF_KS_RechargeRecords_packId]  DEFAULT ((0)) FOR [packId]
GO
