/****** Object:  View [dbo].[YC_View_NewestPublishCompny]    Script Date: 05/08/2013 20:12:57 ******/
IF  EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[dbo].[YC_View_NewestPublishCompny]'))
DROP VIEW [dbo].[YC_View_NewestPublishCompny]
GO
/****** Object:  UserDefinedFunction [dbo].[fmerg]    Script Date: 05/08/2013 20:13:44 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[fmerg]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [dbo].[fmerg]
GO
/****** Object:  UserDefinedFunction [dbo].[getCorpVgroup]    Script Date: 05/08/2013 20:13:45 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[getCorpVgroup]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [dbo].[getCorpVgroup]
GO
/****** Object:  UserDefinedFunction [dbo].[getCorpName]    Script Date: 05/08/2013 20:13:44 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[getCorpName]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [dbo].[getCorpName]
GO
/****** Object:  UserDefinedFunction [dbo].[getCorpTradeid]    Script Date: 05/08/2013 20:13:44 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[getCorpTradeid]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [dbo].[getCorpTradeid]
GO
/****** Object:  UserDefinedFunction [dbo].[getCorpPlaceid]    Script Date: 05/08/2013 20:13:44 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[getCorpPlaceid]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [dbo].[getCorpPlaceid]
GO
/****** Object:  View [dbo].[YC_View_PersonResume]    Script Date: 05/08/2013 20:12:57 ******/
IF  EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[dbo].[YC_View_PersonResume]'))
DROP VIEW [dbo].[YC_View_PersonResume]
GO

/****** Object:  StoredProcedure [dbo].[PublicPagination]    Script Date: 05/08/2013 20:13:40 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PublicPagination]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[PublicPagination]
GO
/****** Object:  Table [dbo].[Job_YC_Searchwords]    Script Date: 05/08/2013 20:08:32 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Searchwords_total]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Searchwords] DROP CONSTRAINT [DF_Job_YC_Searchwords_total]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Searchwords_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Searchwords] DROP CONSTRAINT [DF_Job_YC_Searchwords_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Searchwords]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Searchwords]
GO
/****** Object:  Table [dbo].[Job_YC_PersonItSkill]    Script Date: 05/08/2013 20:07:47 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_PersonItSkill_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_PersonItSkill] DROP CONSTRAINT [DF_Job_YC_PersonItSkill_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_PersonItSkill]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_PersonItSkill]
GO
/****** Object:  Table [dbo].[Job_YC_DaoHang]    Script Date: 05/16/2013 22:46:53 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_DaoHang_orderid]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_DaoHang] DROP CONSTRAINT [DF_Job_YC_DaoHang_orderid]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_DaoHang]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_DaoHang]
GO
/****** Object:  Table [dbo].[Job_YC_WorkType]    Script Date: 05/08/2013 20:09:21 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_WorkType]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_WorkType]
GO
/****** Object:  Table [dbo].[Job_YC_PG]    Script Date: 05/08/2013 20:07:55 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_PG_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_PG] DROP CONSTRAINT [DF_Job_YC_PG_addtime]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_PG_isok]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_PG] DROP CONSTRAINT [DF_Job_YC_PG_isok]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_PG]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_PG]
GO
/****** Object:  Table [dbo].[Job_YC_ResumeSendList]    Script Date: 05/08/2013 20:08:17 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_ResumeSendList_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_ResumeSendList] DROP CONSTRAINT [DF_Job_YC_ResumeSendList_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_ResumeSendList]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_ResumeSendList]
GO
/****** Object:  Table [dbo].[Job_YC_ToolClass]    Script Date: 05/08/2013 20:08:58 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_ToolClass]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_ToolClass]
GO
/****** Object:  Table [dbo].[Job_YC_Salary]    Script Date: 05/08/2013 20:08:20 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Salary]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Salary]
GO
/****** Object:  Table [dbo].[Job_YC_Resume]    Script Date: 05/08/2013 20:08:12 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Resume_resumelock]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Resume] DROP CONSTRAINT [DF_Job_YC_Resume_resumelock]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Resume_worktype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Resume] DROP CONSTRAINT [DF_Job_YC_Resume_worktype]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Resume_workplace]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Resume] DROP CONSTRAINT [DF_Job_YC_Resume_workplace]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Resume_tradeid]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Resume] DROP CONSTRAINT [DF_Job_YC_Resume_tradeid]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Resume_positionid]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Resume] DROP CONSTRAINT [DF_Job_YC_Resume_positionid]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Resume_hits]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Resume] DROP CONSTRAINT [DF_Job_YC_Resume_hits]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Resume_adddate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Resume] DROP CONSTRAINT [DF_Job_YC_Resume_adddate]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Resume_moddate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Resume] DROP CONSTRAINT [DF_Job_YC_Resume_moddate]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Resume_Complete]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Resume] DROP CONSTRAINT [DF_Job_YC_Resume_Complete]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Resume_type]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Resume] DROP CONSTRAINT [DF_Job_YC_Resume_type]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Job_YC_Re__state__681373AD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Resume] DROP CONSTRAINT [DF__Job_YC_Re__state__681373AD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Resume]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Resume]
GO
/****** Object:  Table [dbo].[Job_YC_Templates]    Script Date: 05/08/2013 20:08:48 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Templates_createdate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Templates] DROP CONSTRAINT [DF_Job_YC_Templates_createdate]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Templates_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Templates] DROP CONSTRAINT [DF_Job_YC_Templates_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Templates]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Templates]
GO
/****** Object:  Table [dbo].[Job_YC_UserGroup]    Script Date: 05/08/2013 20:09:11 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_CompanyGroup_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_UserGroup] DROP CONSTRAINT [DF_Job_YC_CompanyGroup_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_UserGroup]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_UserGroup]
GO
/****** Object:  Table [dbo].[Job_YC_PersonServerSQ]    Script Date: 05/08/2013 20:07:50 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_PersonServerSQ_sqtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_PersonServerSQ] DROP CONSTRAINT [DF_Job_YC_PersonServerSQ_sqtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_PersonServerSQ]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_PersonServerSQ]
GO
/****** Object:  Table [dbo].[Job_YC_Position]    Script Date: 05/08/2013 20:08:00 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Job_YC_Po__ishom__18B6AB08]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Position] DROP CONSTRAINT [DF__Job_YC_Po__ishom__18B6AB08]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Position]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Position]
GO
/****** Object:  Table [dbo].[Job_YC_CompanyPhoto]    Script Date: 05/08/2013 20:06:39 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_CompanyPhoto_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_CompanyPhoto] DROP CONSTRAINT [DF_Job_YC_CompanyPhoto_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_CompanyPhoto]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_CompanyPhoto]
GO
/****** Object:  Table [dbo].[Job_YC_Professional]    Script Date: 05/08/2013 20:08:02 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Professional]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Professional]
GO
/****** Object:  Table [dbo].[Job_YC_NewsClass]    Script Date: 05/08/2013 20:07:34 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Table_1_orderid]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_NewsClass] DROP CONSTRAINT [DF_Table_1_orderid]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_NewsClass_parentid_1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_NewsClass] DROP CONSTRAINT [DF_Job_YC_NewsClass_parentid_1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_NewsClass]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_NewsClass]
GO
/****** Object:  Table [dbo].[Job_YC_QQLogin]    Script Date: 05/08/2013 20:08:05 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_QQLogin_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_QQLogin] DROP CONSTRAINT [DF_Job_YC_QQLogin_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_QQLogin]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_QQLogin]
GO
/****** Object:  Table [dbo].[Job_YC_WorkExp]    Script Date: 05/08/2013 20:09:19 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_WorkExp_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_WorkExp] DROP CONSTRAINT [DF_Job_YC_WorkExp_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_WorkExp]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_WorkExp]
GO
/****** Object:  Table [dbo].[Job_YC_RecommandArea]    Script Date: 05/08/2013 20:08:10 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_RecommandArea_orderid]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_RecommandArea] DROP CONSTRAINT [DF_Job_YC_RecommandArea_orderid]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_RecommandArea]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_RecommandArea]
GO
/****** Object:  Table [dbo].[Job_YC_PageSeo]    Script Date: 05/08/2013 20:07:42 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_PageSeo]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_PageSeo]
GO
/****** Object:  Table [dbo].[Job_YC_EmailCheck]    Script Date: 05/08/2013 20:06:54 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_EmailCheck_cratetime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_EmailCheck] DROP CONSTRAINT [DF_Job_YC_EmailCheck_cratetime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_EmailCheck]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_EmailCheck]
GO
/****** Object:  Table [dbo].[Job_YC_Admin]    Script Date: 05/08/2013 20:06:06 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Admin_logintimes]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Admin] DROP CONSTRAINT [DF_Job_YC_Admin_logintimes]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Admin_islock]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Admin] DROP CONSTRAINT [DF_Job_YC_Admin_islock]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Admin_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Admin] DROP CONSTRAINT [DF_Job_YC_Admin_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Admin]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Admin]
GO
/****** Object:  Table [dbo].[Job_YC_Scale]    Script Date: 05/08/2013 20:08:24 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Scale]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Scale]
GO
/****** Object:  Table [dbo].[Job_YC_Feedback]    Script Date: 05/08/2013 20:06:59 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Feedback]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Feedback]
GO
/****** Object:  Table [dbo].[Job_YC_SeoKey]    Script Date: 05/08/2013 20:08:38 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_SeoKey]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_SeoKey]
GO
/****** Object:  Table [dbo].[Job_YC_SiteManage]    Script Date: 05/08/2013 20:08:43 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_SiteManage_orderid]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_SiteManage] DROP CONSTRAINT [DF_Job_YC_SiteManage_orderid]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_SiteManage_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_SiteManage] DROP CONSTRAINT [DF_Job_YC_SiteManage_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_SiteManage]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_SiteManage]
GO
/****** Object:  Table [dbo].[Job_YC_Attentioncompany]    Script Date: 05/08/2013 20:06:24 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Attentioncompany]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Attentioncompany]
GO
/****** Object:  Table [dbo].[Job_YC_Trade]    Script Date: 05/08/2013 20:09:03 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Trade]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Trade]
GO
/****** Object:  Table [dbo].[Job_YC_CollectionResume]    Script Date: 05/08/2013 20:06:29 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_CollectionResume_collecttime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_CollectionResume] DROP CONSTRAINT [DF_Job_YC_CollectionResume_collecttime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_CollectionResume]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_CollectionResume]
GO
/****** Object:  Table [dbo].[Job_YC_ShieldingKeyWord]    Script Date: 05/08/2013 20:08:41 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_YC_Job_ShieldingKeyWord_adddate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_ShieldingKeyWord] DROP CONSTRAINT [DF_YC_Job_ShieldingKeyWord_adddate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_ShieldingKeyWord]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_ShieldingKeyWord]
GO
/****** Object:  Table [dbo].[Job_YC_OAuth2Account]    Script Date: 05/08/2013 20:07:37 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_OAuth2Account]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_OAuth2Account]
GO
/****** Object:  Table [dbo].[Job_YC_Ability]    Script Date: 05/08/2013 20:06:03 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Ability]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Ability]
GO
/****** Object:  Table [dbo].[Job_YC_webLog]    Script Date: 05/08/2013 20:09:13 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_webLog]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_webLog]
GO
/****** Object:  Table [dbo].[Job_YC_SQLBAK]    Script Date: 05/08/2013 20:08:46 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_YC_Job_SQLBAK_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_SQLBAK] DROP CONSTRAINT [DF_YC_Job_SQLBAK_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_SQLBAK]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_SQLBAK]
GO
/****** Object:  Table [dbo].[Job_YC_TJCompany]    Script Date: 05/08/2013 20:08:51 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_TJCompany]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_TJCompany]
GO
/****** Object:  Table [dbo].[job_YC_Jobs]    Script Date: 05/08/2013 20:07:14 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_job_YC_Jobs_State]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[job_YC_Jobs] DROP CONSTRAINT [DF_job_YC_Jobs_State]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_job_YC_Jobs_hits]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[job_YC_Jobs] DROP CONSTRAINT [DF_job_YC_Jobs_hits]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_job_YC_Jobs_modtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[job_YC_Jobs] DROP CONSTRAINT [DF_job_YC_Jobs_modtime]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_job_YC_Jobs_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[job_YC_Jobs] DROP CONSTRAINT [DF_job_YC_Jobs_addtime]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__job_YC_Jo__schoo__15DA3E5D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[job_YC_Jobs] DROP CONSTRAINT [DF__job_YC_Jo__schoo__15DA3E5D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[job_YC_Jobs]') AND type in (N'U'))
DROP TABLE [dbo].[job_YC_Jobs]
GO
/****** Object:  Table [dbo].[Job_YC_Company]    Script Date: 05/08/2013 20:06:34 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Company_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Company] DROP CONSTRAINT [DF_Job_YC_Company_addtime]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Company_vgroup]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Company] DROP CONSTRAINT [DF_Job_YC_Company_vgroup]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Company_hits]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Company] DROP CONSTRAINT [DF_Job_YC_Company_hits]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Job_YC_Co__schoo__16CE6296]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Company] DROP CONSTRAINT [DF__Job_YC_Co__schoo__16CE6296]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Job_YC_Co__depar__17C286CF]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Company] DROP CONSTRAINT [DF__Job_YC_Co__depar__17C286CF]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Company]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Company]
GO
/****** Object:  Table [dbo].[Job_YC_Corpwelfare]    Script Date: 05/08/2013 20:06:47 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Corpwelfare]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Corpwelfare]
GO
/****** Object:  Table [dbo].[Job_YC_Orders]    Script Date: 05/08/2013 20:07:39 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Orders]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Orders]
GO
/****** Object:  Table [dbo].[Job_YC_TJJobs]    Script Date: 05/08/2013 20:08:53 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Job_YC_TJ__addti__5224328E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_TJJobs] DROP CONSTRAINT [DF__Job_YC_TJ__addti__5224328E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_TJJobs]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_TJJobs]
GO
/****** Object:  Table [dbo].[Job_YC_Adv]    Script Date: 05/08/2013 20:06:08 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Adv]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Adv]
GO
/****** Object:  Table [dbo].[Job_YC_Advs]    Script Date: 05/08/2013 20:06:11 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Advs]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Advs]
GO
/****** Object:  Table [dbo].[Job_YC_Announce]    Script Date: 05/08/2013 20:06:14 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Announce]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Announce]
GO
/****** Object:  Table [dbo].[Job_YC_TJResume]    Script Date: 05/08/2013 20:08:56 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_TJResume]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_TJResume]
GO
/****** Object:  Table [dbo].[Job_ResumeSearchURL]    Script Date: 05/08/2013 20:06:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_ResumeSearchURL]') AND type in (N'U'))
DROP TABLE [dbo].[Job_ResumeSearchURL]
GO
/****** Object:  Table [dbo].[Job_YC_User]    Script Date: 05/08/2013 20:09:08 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_User_islock]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_User] DROP CONSTRAINT [DF_Job_YC_User_islock]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_User_logintimes]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_User] DROP CONSTRAINT [DF_Job_YC_User_logintimes]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_User_lv]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_User] DROP CONSTRAINT [DF_Job_YC_User_lv]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_User_mobilecheck]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_User] DROP CONSTRAINT [DF_Job_YC_User_mobilecheck]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_User]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_User]
GO
/****** Object:  Table [dbo].[Job_YC_Areas]    Script Date: 05/08/2013 20:06:19 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_spb_Areas_ParentCode]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Areas] DROP CONSTRAINT [DF_spb_Areas_ParentCode]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_spb_Areas_DisplayOrder]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Areas] DROP CONSTRAINT [DF_spb_Areas_DisplayOrder]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_spb_Areas_Depth]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Areas] DROP CONSTRAINT [DF_spb_Areas_Depth]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_spb_Areas_ChildCount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Areas] DROP CONSTRAINT [DF_spb_Areas_ChildCount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Areas]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Areas]
GO
/****** Object:  Table [dbo].[Job_YC_Arrivaltime]    Script Date: 05/08/2013 20:06:21 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Arrivaltime]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Arrivaltime]
GO
/****** Object:  Table [dbo].[Job_YC_Tools]    Script Date: 05/08/2013 20:09:01 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Tools_hits]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Tools] DROP CONSTRAINT [DF_Job_YC_Tools_hits]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Tools_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Tools] DROP CONSTRAINT [DF_Job_YC_Tools_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Tools]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Tools]
GO
/****** Object:  Table [dbo].[Job_YC_Channel]    Script Date: 05/08/2013 20:06:26 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_NewsClass_parentid]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Channel] DROP CONSTRAINT [DF_Job_YC_NewsClass_parentid]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Channel]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Channel]
GO
/****** Object:  Table [dbo].[Job_YC_Train]    Script Date: 05/08/2013 20:09:06 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Train_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Train] DROP CONSTRAINT [DF_Job_YC_Train_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Train]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Train]
GO
/****** Object:  Table [dbo].[Job_YC_WorkAge]    Script Date: 05/08/2013 20:09:16 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_WorkAge_orderid]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_WorkAge] DROP CONSTRAINT [DF_Job_YC_WorkAge_orderid]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_WorkAge]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_WorkAge]
GO
/****** Object:  Table [dbo].[Job_YC_JobInviteNotice]    Script Date: 05/08/2013 20:07:09 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_JobInviteNotice_Reply]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_JobInviteNotice] DROP CONSTRAINT [DF_Job_YC_JobInviteNotice_Reply]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_JobInviteNotice_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_JobInviteNotice] DROP CONSTRAINT [DF_Job_YC_JobInviteNotice_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_JobInviteNotice]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_JobInviteNotice]
GO
/****** Object:  Table [dbo].[Job_YC_Colo]    Script Date: 05/08/2013 20:06:31 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Colo]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Colo]
GO
/****** Object:  Table [dbo].[Job_YC_ResumeDown]    Script Date: 05/08/2013 20:08:15 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_ResumeDown_dowmdate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_ResumeDown] DROP CONSTRAINT [DF_Job_YC_ResumeDown_dowmdate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_ResumeDown]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_ResumeDown]
GO
/****** Object:  Table [dbo].[Job_YC_ApplyJob]    Script Date: 05/08/2013 20:06:16 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_ApplyJob_com_uid]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_ApplyJob] DROP CONSTRAINT [DF_Job_YC_ApplyJob_com_uid]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Ping_addime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_ApplyJob] DROP CONSTRAINT [DF_Job_YC_Ping_addime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_ApplyJob]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_ApplyJob]
GO
/****** Object:  Table [dbo].[Job_YC_CompanyNature]    Script Date: 05/08/2013 20:06:36 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_CompanyNature]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_CompanyNature]
GO
/****** Object:  Table [dbo].[Job_YC_CompanyServerSQ]    Script Date: 05/08/2013 20:06:41 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_CompanyServerSQ_sqtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_CompanyServerSQ] DROP CONSTRAINT [DF_Job_YC_CompanyServerSQ_sqtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_CompanyServerSQ]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_CompanyServerSQ]
GO
/****** Object:  Table [dbo].[job_YC_Companysize]    Script Date: 05/08/2013 20:06:44 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[job_YC_Companysize]') AND type in (N'U'))
DROP TABLE [dbo].[job_YC_Companysize]
GO
/****** Object:  Table [dbo].[Job_YC_Edu]    Script Date: 05/08/2013 20:06:49 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Edu]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Edu]
GO
/****** Object:  Table [dbo].[Job_YC_EduExp]    Script Date: 05/08/2013 20:06:52 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_EduExp]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_EduExp]
GO
/****** Object:  Table [dbo].[Job_YC_favorites]    Script Date: 05/08/2013 20:06:57 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_favorites_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_favorites] DROP CONSTRAINT [DF_Job_YC_favorites_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_favorites]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_favorites]
GO
/****** Object:  Table [dbo].[Job_YC_Group]    Script Date: 05/08/2013 20:07:02 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Group]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Group]
GO
/****** Object:  Table [dbo].[Job_YC_Highsalary]    Script Date: 05/08/2013 20:07:04 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Highsalary_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Highsalary] DROP CONSTRAINT [DF_Job_YC_Highsalary_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Highsalary]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Highsalary]
GO
/****** Object:  Table [dbo].[Job_YC_PersonTag]    Script Date: 05/08/2013 20:07:52 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_PersonTag]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_PersonTag]
GO
/****** Object:  Table [dbo].[Job_YC_ItSkill]    Script Date: 05/08/2013 20:07:07 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_ItSkill]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_ItSkill]
GO
/****** Object:  Table [dbo].[Job_YC_SendEmailLog]    Script Date: 05/08/2013 20:08:36 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_SendEmailLog]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_SendEmailLog]
GO
/****** Object:  Table [dbo].[Job_YC_JobInviteTemp]    Script Date: 05/08/2013 20:07:12 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_InviteTemplate_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_JobInviteTemp] DROP CONSTRAINT [DF_Job_YC_InviteTemplate_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_JobInviteTemp]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_JobInviteTemp]
GO
/****** Object:  Table [dbo].[Job_YC_LinkMan]    Script Date: 05/08/2013 20:07:24 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_LinkMan_isdefault]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_LinkMan] DROP CONSTRAINT [DF_Job_YC_LinkMan_isdefault]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Job_YC_Li__depar__0B5CAFEA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_LinkMan] DROP CONSTRAINT [DF__Job_YC_Li__depar__0B5CAFEA]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Job_YC_Li__schoo__0C50D423]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_LinkMan] DROP CONSTRAINT [DF__Job_YC_Li__schoo__0C50D423]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_LinkMan]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_LinkMan]
GO
/****** Object:  Table [dbo].[Job_YC_Language]    Script Date: 05/08/2013 20:07:17 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Language]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Language]
GO
/****** Object:  Table [dbo].[Job_YC_QuickSearch]    Script Date: 05/08/2013 20:08:07 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_QuickSearch_type]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_QuickSearch] DROP CONSTRAINT [DF_Job_YC_QuickSearch_type]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_QuickSearch_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_QuickSearch] DROP CONSTRAINT [DF_Job_YC_QuickSearch_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_QuickSearch]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_QuickSearch]
GO
/****** Object:  Table [dbo].[Job_YC_Letter]    Script Date: 05/08/2013 20:07:19 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Letter_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Letter] DROP CONSTRAINT [DF_Job_YC_Letter_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Letter]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Letter]
GO
/****** Object:  Table [dbo].[Job_YC_Link]    Script Date: 05/08/2013 20:07:22 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Link]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Link]
GO
/****** Object:  Table [dbo].[Job_YC_Person]    Script Date: 05/08/2013 20:07:44 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Person_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Person] DROP CONSTRAINT [DF_Job_YC_Person_addtime]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Person_isphoto]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Person] DROP CONSTRAINT [DF_Job_YC_Person_isphoto]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Person_mobilecheck]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Person] DROP CONSTRAINT [DF_Job_YC_Person_mobilecheck]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_Person_emailcheck]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Person] DROP CONSTRAINT [DF_Job_YC_Person_emailcheck]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Job_YC_Per__tags__14E61A24]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_Person] DROP CONSTRAINT [DF__Job_YC_Per__tags__14E61A24]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Person]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Person]
GO
/****** Object:  Table [dbo].[Job_YC_Nation]    Script Date: 05/08/2013 20:07:29 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Nation]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_Nation]
GO
/****** Object:  Table [dbo].[Job_YC_PGResume]    Script Date: 05/08/2013 20:07:57 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_PGResume_addtime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_PGResume] DROP CONSTRAINT [DF_Job_YC_PGResume_addtime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_PGResume]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_PGResume]
GO
/****** Object:  Table [dbo].[Job_YC_MobileCheck]    Script Date: 05/08/2013 20:07:27 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_MobileCheck]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_MobileCheck]
GO
/****** Object:  Table [dbo].[Job_YC_News]    Script Date: 05/08/2013 20:07:32 ******/
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Job_YC_News_hits]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_News] DROP CONSTRAINT [DF_Job_YC_News_hits]
END
GO
IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__Job_YC_Ne__isloc__1DB06A4F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Job_YC_News] DROP CONSTRAINT [DF__Job_YC_Ne__isloc__1DB06A4F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_News]') AND type in (N'U'))
DROP TABLE [dbo].[Job_YC_News]
GO

/****** Object:  Table [dbo].[Job_YC_DaoHang]    Script Date: 05/16/2013 22:46:53 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_DaoHang]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_DaoHang](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](50) NULL,
	[link] [nvarchar](50) NULL,
	[target] [nvarchar](10) NULL,
	[orderid] [tinyint] NULL CONSTRAINT [DF_Job_YC_DaoHang_orderid]  DEFAULT ((0)),
	[addtime] [datetime] NULL,
 CONSTRAINT [PK_Job_YC_DaoHang] 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]
END
GO


/****** Object:  Table [dbo].[Job_YC_News]    Script Date: 05/08/2013 20:07:32 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_News]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_News](
	[id] [int] IDENTITY(1000,1) NOT NULL,
	[title] [nvarchar](100) NULL,
	[channelid] [int] NULL,
	[classid] [int] NULL,
	[author] [nvarchar](50) NULL,
	[editor] [nvarchar](50) NULL,
	[nfrom] [nvarchar](50) NULL,
	[description] [nvarchar](250) NULL,
	[daodu] [nvarchar](250) NULL,
	[keywords] [nvarchar](50) NULL,
	[ncontent] [text] NULL,
	[imageurl] [nvarchar](100) NULL,
	[hits] [int] NULL CONSTRAINT [DF_Job_YC_News_hits]  DEFAULT ((0)),
	[addtime] [datetime] NULL,
	[iscomm] [bit] NULL,
	[ishome] [bit] NULL,
	[ishot] [bit] NULL,
	[ishtml] [bit] NULL,
	[ispic] [bit] NULL,
	[IsSlide] [bit] NULL,
	[siteid] [int] NULL,
	[islock] [bit] NULL DEFAULT ((0)),
 CONSTRAINT [PK_Job_YC_News] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_MobileCheck]    Script Date: 05/08/2013 20:07:27 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_MobileCheck]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_MobileCheck](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[mobile] [nvarchar](50) NULL,
	[checkcode] [nvarchar](50) NULL,
	[addtime] [datetime] NULL,
 CONSTRAINT [PK_Job_YC_MobileCheck] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_PGResume]    Script Date: 05/08/2013 20:07:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_PGResume]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_PGResume](
	[id] [int] IDENTITY(1000,1) NOT NULL,
	[realname] [nvarchar](50) NULL,
	[sex] [bit] NULL,
	[marrige] [tinyint] NULL,
	[education] [tinyint] NULL,
	[age] [tinyint] NULL,
	[jiguan] [nvarchar](50) NULL,
	[workage] [tinyint] NULL,
	[pay] [nvarchar](50) NULL,
	[workplace] [int] NULL,
	[position] [nvarchar](50) NULL,
	[introduce] [nvarchar](500) NULL,
	[mobile] [nvarchar](50) NULL,
	[email] [nvarchar](50) NULL,
	[qq] [nvarchar](50) NULL,
	[address] [nvarchar](50) NULL,
	[state] [tinyint] NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_PGResume_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_PGResume] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Nation]    Script Date: 05/08/2013 20:07:29 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Nation]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Nation](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[cname] [nvarchar](50) NULL,
	[ename] [nvarchar](50) NULL,
	[orderid] [int] NULL,
 CONSTRAINT [PK_Job_YC_Nation] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Person]    Script Date: 05/08/2013 20:07:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Person]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Person](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[uid] [int] NOT NULL,
	[realname] [nvarchar](20) NULL,
	[sex] [bit] NULL,
	[CardType] [int] NULL,
	[idcard] [nvarchar](20) NULL,
	[birthday] [datetime] NULL,
	[mobile] [nvarchar](50) NULL,
	[workage] [int] NULL,
	[Nation] [int] NULL,
	[current_situation] [int] NULL,
	[current_salary] [int] NULL,
	[tele] [nvarchar](50) NULL,
	[registry] [nvarchar](20) NULL,
	[live] [nvarchar](50) NULL,
	[Edu] [int] NULL,
	[Polity] [int] NULL,
	[graduatetschool] [nvarchar](30) NULL,
	[graduatetdate] [datetime] NULL,
	[resumekey] [nvarchar](50) NULL,
	[X_Marriage] [int] NULL,
	[X_postcode] [nvarchar](10) NULL,
	[X_address] [nvarchar](50) NULL,
	[X_Bodyheight] [nchar](10) NULL,
	[X_bodyweight] [nchar](10) NULL,
	[X_website] [nvarchar](150) NULL,
	[X_QQ] [nvarchar](10) NULL,
	[email] [nvarchar](50) NULL,
	[islock] [int] NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_Person_addtime]  DEFAULT (getdate()),
	[isphoto] [bit] NULL CONSTRAINT [DF_Job_YC_Person_isphoto]  DEFAULT ((0)),
	[mobilecheck] [bit] NULL CONSTRAINT [DF_Job_YC_Person_mobilecheck]  DEFAULT ((0)),
	[emailcheck] [bit] NULL CONSTRAINT [DF_Job_YC_Person_emailcheck]  DEFAULT ((0)),
	[state] [tinyint] NULL,
	[private_tele] [bit] NULL,
	[private_qq] [bit] NULL,
	[private_address] [bit] NULL,
	[tags] [nvarchar](50) NULL DEFAULT (NULL),
 CONSTRAINT [PK_Job_YC_Person] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Link]    Script Date: 05/08/2013 20:07:22 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Link]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Link](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[sitename] [nvarchar](50) NULL,
	[siteurl] [nvarchar](100) NULL,
	[logo] [nvarchar](100) NULL,
	[sitedesc] [nvarchar](100) NULL,
	[linkname] [nvarchar](50) NULL,
	[addtime] [datetime] NULL,
	[channelid] [int] NULL,
	[iscomm] [bit] NULL,
	[ispic] [bit] NULL,
	[islock] [bit] NULL,
	[orderid] [int] NULL,
	[siteid] [int] NULL,
 CONSTRAINT [PK_Job_YC_Link] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Letter]    Script Date: 05/08/2013 20:07:19 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Letter]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Letter](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[uid] [int] NULL,
	[title] [nvarchar](50) NULL,
	[letter] [nvarchar](500) NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_Letter_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_Letter] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_QuickSearch]    Script Date: 05/08/2013 20:08:07 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_QuickSearch]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_QuickSearch](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[keyword] [nvarchar](50) NULL,
	[ename] [nvarchar](50) NULL,
	[total] [int] NULL,
	[type] [tinyint] NULL CONSTRAINT [DF_Job_YC_QuickSearch_type]  DEFAULT ((0)),
	[addtime] [datetime] NOT NULL CONSTRAINT [DF_Job_YC_QuickSearch_addtime]  DEFAULT (getdate()),
	[orderid] [int] NULL
) ON [PRIMARY]
END
GO
/****** Object:  Table [dbo].[Job_YC_Language]    Script Date: 05/08/2013 20:07:17 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Language]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Language](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[typename] [nvarchar](50) NULL,
 CONSTRAINT [PK_Job_YC_Language_1] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_LinkMan]    Script Date: 05/08/2013 20:07:24 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_LinkMan]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_LinkMan](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[uid] [int] NULL,
	[sex] [bit] NULL,
	[linkname] [nvarchar](50) NULL,
	[positionname] [nvarchar](50) NULL,
	[mobile] [nvarchar](50) NULL,
	[tele] [nvarchar](50) NULL,
	[fax] [nvarchar](50) NULL,
	[email] [nvarchar](50) NULL,
	[address] [nvarchar](50) NULL,
	[qq] [nvarchar](50) NULL,
	[addtime] [datetime] NULL,
	[isdefault] [bit] NULL CONSTRAINT [DF_Job_YC_LinkMan_isdefault]  DEFAULT ((0)),
	[department] [nvarchar](50) NULL CONSTRAINT [DF__Job_YC_Li__depar__0B5CAFEA]  DEFAULT (NULL),
	[school] [nvarchar](50) NULL CONSTRAINT [DF__Job_YC_Li__schoo__0C50D423]  DEFAULT (NULL),
 CONSTRAINT [PK_Job_YC_LinkMan] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_JobInviteTemp]    Script Date: 05/08/2013 20:07:12 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_JobInviteTemp]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_JobInviteTemp](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[type] [tinyint] NULL,
	[uid] [int] NULL,
	[title] [nvarchar](50) NULL,
	[InterviewTime] [nvarchar](20) NULL,
	[InterviewAddress] [nvarchar](50) NULL,
	[ridingroute] [nvarchar](100) NULL,
	[Linkman] [nvarchar](20) NULL,
	[LinkTel] [nvarchar](20) NULL,
	[CarryInformation] [nvarchar](100) NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_InviteTemplate_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_InviteTemplate] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_SendEmailLog]    Script Date: 05/08/2013 20:08:36 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_SendEmailLog]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_SendEmailLog](
	[id] [int] NULL,
	[title] [nvarchar](50) NULL,
	[reciveemail] [nvarchar](50) NULL,
	[sendtime] [datetime] NULL
) ON [PRIMARY]
END
GO
/****** Object:  Table [dbo].[Job_YC_ItSkill]    Script Date: 05/08/2013 20:07:07 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_ItSkill]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_ItSkill](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[cname] [nvarchar](50) NULL,
	[ename] [nvarchar](50) NULL,
	[parentid] [int] NULL,
	[orderid] [int] NULL,
 CONSTRAINT [PK_Job_YC_ItSkill] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_PersonTag]    Script Date: 05/08/2013 20:07:52 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_PersonTag]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_PersonTag](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[tag] [nvarchar](50) NULL,
	[addtime] [datetime] NULL,
 CONSTRAINT [PK_Job_YC_PersonTag] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Highsalary]    Script Date: 05/08/2013 20:07:04 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Highsalary]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Highsalary](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](50) NULL,
	[url] [nvarchar](500) NULL,
	[color] [nvarchar](50) NULL,
	[orderid] [int] NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_Highsalary_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_Highsalary] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Group]    Script Date: 05/08/2013 20:07:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Group]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Group](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[utype] [int] NULL,
	[groupname] [nvarchar](50) NULL,
	[groupphoto] [nvarchar](150) NULL,
	[usernum] [int] NULL,
	[isdefault] [bit] NULL,
	[limit] [int] NULL,
 CONSTRAINT [PK_Job_YC_Group] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_favorites]    Script Date: 05/08/2013 20:06:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_favorites]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_favorites](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[companyid] [int] NULL,
	[companyname] [nvarchar](50) NULL,
	[jobid] [int] NULL,
	[jobname] [nvarchar](50) NULL,
	[uid] [int] NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_favorites_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_favorites] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_EduExp]    Script Date: 05/08/2013 20:06:52 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_EduExp]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_EduExp](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[uid] [int] NULL,
	[resumeid] [int] NULL,
	[sdate] [nvarchar](10) NULL,
	[edate] [nvarchar](10) NULL,
	[school] [nvarchar](50) NULL,
	[Professional] [nvarchar](50) NULL,
	[Degree] [int] NULL,
	[Professionalid] [int] NULL,
	[Professionaldesc] [nvarchar](2000) NULL,
	[addtime] [datetime] NULL,
 CONSTRAINT [PK_Job_YC_EduExp] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Edu]    Script Date: 05/08/2013 20:06:49 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Edu]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Edu](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[cname] [nvarchar](50) NULL,
	[ename] [nvarchar](50) NULL,
	[orderid] [int] NULL,
 CONSTRAINT [PK_Job_YC_Edu] 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]
END
GO
/****** Object:  Table [dbo].[job_YC_Companysize]    Script Date: 05/08/2013 20:06:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[job_YC_Companysize]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[job_YC_Companysize](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[cname] [nvarchar](50) NULL,
	[orderid] [int] NULL,
 CONSTRAINT [PK_job_YC_Companysize] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_CompanyServerSQ]    Script Date: 05/08/2013 20:06:41 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_CompanyServerSQ]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_CompanyServerSQ](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[servename] [nvarchar](50) NULL,
	[username] [nvarchar](50) NULL,
	[uid] [int] NULL,
	[sqtime] [datetime] NULL CONSTRAINT [DF_Job_YC_CompanyServerSQ_sqtime]  DEFAULT (getdate()),
	[State] [int] NULL,
 CONSTRAINT [PK_Job_YC_CompanyServerSQ] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_CompanyNature]    Script Date: 05/08/2013 20:06:36 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_CompanyNature]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_CompanyNature](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[cname] [nvarchar](50) NULL,
	[ename] [nvarchar](50) NULL,
	[orderid] [int] NULL,
 CONSTRAINT [PK_Job_YC_Nature] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_ApplyJob]    Script Date: 05/08/2013 20:06:16 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_ApplyJob]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_ApplyJob](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[companyid] [int] NULL,
	[companyname] [nvarchar](50) NULL,
	[jobid] [int] NULL,
	[jobname] [nvarchar](50) NULL,
	[com_uid] [int] NULL CONSTRAINT [DF_Job_YC_ApplyJob_com_uid]  DEFAULT ((0)),
	[person_uid] [int] NULL,
	[username] [nvarchar](50) NULL,
	[message] [nvarchar](500) NULL,
	[state] [tinyint] NULL,
	[resumeid] [int] NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_Ping_addime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_Ping] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_ResumeDown]    Script Date: 05/08/2013 20:08:15 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_ResumeDown]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_ResumeDown](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[resumeid] [int] NULL,
	[resume_uid] [int] NULL,
	[company_uid] [int] NULL,
	[downtime] [datetime] NULL CONSTRAINT [DF_Job_YC_ResumeDown_dowmdate]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_ResumeDown] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Colo]    Script Date: 05/08/2013 20:06:31 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Colo]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Colo](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[cname] [nvarchar](50) NULL,
	[filename] [nvarchar](50) NULL,
	[template] [nvarchar](50) NULL,
	[acontent] [text] NULL,
	[isfoot] [bit] NULL,
	[orderid] [int] NULL,
	[addtime] [datetime] NOT NULL,
 CONSTRAINT [PK_Job_YC_Colo] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_JobInviteNotice]    Script Date: 05/08/2013 20:07:09 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_JobInviteNotice]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_JobInviteNotice](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[com_uid] [int] NOT NULL,
	[resumeid] [int] NULL,
	[person_uid] [int] NOT NULL,
	[msname] [nvarchar](50) NULL,
	[type] [tinyint] NULL,
	[jobid] [int] NULL,
	[jobname] [nvarchar](50) NULL,
	[companyname] [nvarchar](50) NULL,
	[InviteTime] [nvarchar](50) NULL,
	[InviteAddress] [nvarchar](50) NULL,
	[ridingroute] [nvarchar](100) NULL,
	[Linkman] [nvarchar](50) NULL,
	[LinkTel] [nvarchar](50) NULL,
	[CarryInformation] [nvarchar](200) NULL,
	[Reply] [tinyint] NULL CONSTRAINT [DF_Job_YC_JobInviteNotice_Reply]  DEFAULT ((0)),
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_JobInviteNotice_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_JobInviteNotice] 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]
END
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Description' , N'SCHEMA',N'dbo', N'TABLE',N'Job_YC_JobInviteNotice', N'COLUMN',N'Reply'))
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Job_YC_JobInviteNotice', @level2type=N'COLUMN',@level2name=N'Reply'
GO
/****** Object:  Table [dbo].[Job_YC_WorkAge]    Script Date: 05/08/2013 20:09:16 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_WorkAge]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_WorkAge](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[cname] [nvarchar](50) NULL,
	[ename] [nvarchar](50) NULL,
	[orderid] [int] NULL CONSTRAINT [DF_Job_YC_WorkAge_orderid]  DEFAULT ((0)),
 CONSTRAINT [PK_Job_YC_Workage] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Train]    Script Date: 05/08/2013 20:09:06 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Train]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Train](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[uid] [int] NULL,
	[resumeid] [int] NULL,
	[Institution] [nvarchar](50) NULL,
	[sdate] [nvarchar](10) NULL,
	[edate] [nvarchar](10) NULL,
	[Place] [nvarchar](50) NULL,
	[Course] [nvarchar](50) NULL,
	[Certification] [nvarchar](50) NULL,
	[TrainDetail] [nvarchar](2000) NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_Train_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_Train] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Channel]    Script Date: 05/08/2013 20:06:26 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Channel]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Channel](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[cname] [nvarchar](50) NULL,
	[ename] [nvarchar](50) NULL,
	[parentid] [int] NULL CONSTRAINT [DF_Job_YC_NewsClass_parentid]  DEFAULT ((0)),
	[channeldir] [nvarchar](50) NULL,
	[MetaKeywords] [nvarchar](300) NULL,
	[MetaDescript] [nvarchar](300) NULL,
	[list_location] [nvarchar](200) NULL,
	[content_location] [nvarchar](200) NULL,
	[content_format] [nvarchar](200) NULL,
	[target] [nvarchar](10) NULL,
	[fileExname] [nvarchar](6) NULL,
	[orderid] [int] NULL,
	[issys] [bit] NULL,
	[isshow] [bit] NULL,
	[islock] [bit] NULL,
	[ishtml] [bit] NULL,
 CONSTRAINT [PK_Job_YC_NewsClass] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Tools]    Script Date: 05/08/2013 20:09:01 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Tools]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Tools](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [varchar](50) NULL,
	[NewName] [varchar](50) NULL,
	[classid] [int] NULL,
	[hits] [int] NULL CONSTRAINT [DF_Job_YC_Tools_hits]  DEFAULT ((0)),
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_Tools_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_Tools] 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]
END
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[Job_YC_Arrivaltime]    Script Date: 05/08/2013 20:06:21 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Arrivaltime]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Arrivaltime](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[cname] [nvarchar](50) NULL,
	[orderid] [int] NULL,
 CONSTRAINT [PK_Job_YC_Arrivaltime] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Areas]    Script Date: 05/08/2013 20:06:19 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Areas]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Areas](
	[AreaCode] [varchar](8) NOT NULL,
	[ParentCode] [varchar](8) NOT NULL CONSTRAINT [DF_spb_Areas_ParentCode]  DEFAULT (''),
	[Name] [nvarchar](128) NOT NULL,
	[DisplayOrder] [int] NOT NULL CONSTRAINT [DF_spb_Areas_DisplayOrder]  DEFAULT ((0)),
	[Depth] [int] NOT NULL CONSTRAINT [DF_spb_Areas_Depth]  DEFAULT ((0)),
	[ChildCount] [int] NOT NULL CONSTRAINT [DF_spb_Areas_ChildCount]  DEFAULT ((0)),
	[iscommon] [bit] NULL,
 CONSTRAINT [PK_spb_Areas] PRIMARY KEY CLUSTERED 
(
	[AreaCode] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[Job_YC_User]    Script Date: 05/08/2013 20:09:08 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_User]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_User](
	[uid] [int] IDENTITY(1,1) NOT NULL,
	[username] [nvarchar](50) NULL,
	[password] [nvarchar](100) NULL,
	[email] [nvarchar](100) NULL,
	[mobile] [nvarchar](20) NULL,
	[utype] [int] NULL,
	[islock1111] [bit] NULL CONSTRAINT [DF_Job_YC_User_islock]  DEFAULT ((1)),
	[place] [int] NULL,
	[regdate] [datetime] NULL,
	[logindate] [datetime] NULL,
	[logintimes] [int] NULL CONSTRAINT [DF_Job_YC_User_logintimes]  DEFAULT ((0)),
	[loginip] [nvarchar](50) NULL,
	[lv] [int] NULL CONSTRAINT [DF_Job_YC_User_lv]  DEFAULT ((1)),
	[emailcheck] [bit] NULL CONSTRAINT [DF_Job_YC_User_mobilecheck]  DEFAULT ((0)),
	[state] [tinyint] NULL,
 CONSTRAINT [PK_Job_YC_User] PRIMARY KEY CLUSTERED 
(
	[uid] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
GO
/****** Object:  Table [dbo].[Job_ResumeSearchURL]    Script Date: 05/08/2013 20:06:01 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_ResumeSearchURL]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_ResumeSearchURL](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](50) NULL,
	[searchurl] [nvarchar](256) NULL,
	[uid] [int] NULL,
	[addtime] [datetime] NULL,
 CONSTRAINT [PK_Job_ResumeSearchURL] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_TJResume]    Script Date: 05/08/2013 20:08:56 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_TJResume]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_TJResume](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[resumeid] [int] NULL,
	[stime] [datetime] NULL,
	[etime] [datetime] NULL,
	[type] [int] NULL,
 CONSTRAINT [PK_Job_YC_TJResume] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Announce]    Script Date: 05/08/2013 20:06:14 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Announce]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Announce](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](100) NULL,
	[content] [text] NULL,
	[day] [int] NULL,
	[hits] [int] NULL,
	[addtime] [datetime] NULL,
	[siteid] [int] NULL,
 CONSTRAINT [PK_Job_YC_Announce] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Advs]    Script Date: 05/08/2013 20:06:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Advs]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Advs](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[Aid] [int] NULL,
	[advsname] [nvarchar](50) NULL,
	[advsurl] [nvarchar](150) NULL,
	[advscontent] [text] NULL,
	[stime] [datetime] NULL,
	[etime] [datetime] NULL,
	[advtype] [int] NULL,
	[advsalt] [nvarchar](100) NULL,
	[LinkUrl] [nvarchar](150) NULL,
	[IsLock] [int] NULL,
	[addtime] [datetime] NULL,
	[remark] [text] NULL,
	[orderid] [int] NULL,
 CONSTRAINT [PK_Job_YC_Advs] 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]
END
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Description' , N'SCHEMA',N'dbo', N'TABLE',N'Job_YC_Advs', N'COLUMN',N'advsname'))
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Job_YC_Advs', @level2type=N'COLUMN',@level2name=N'advsname'
GO
/****** Object:  Table [dbo].[Job_YC_Adv]    Script Date: 05/08/2013 20:06:08 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Adv]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Adv](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[AdName] [nvarchar](50) NULL,
	[AdType] [int] NULL,
	[AdNum] [int] NULL,
	[AdPrice] [decimal](18, 0) NULL,
	[AdWidth] [int] NULL,
	[AdHeight] [int] NULL,
	[AdTarget] [nvarchar](10) NULL,
	[orderid] [int] NULL,
 CONSTRAINT [PK_Job_YC_Adv] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_TJJobs]    Script Date: 05/08/2013 20:08:53 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_TJJobs]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_TJJobs](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[jobid] [int] NULL,
	[companyid] [int] NULL,
	[companyname] [nvarchar](50) NULL,
	[jobname] [nvarchar](50) NULL,
	[stime] [datetime] NULL,
	[etime] [datetime] NULL,
	[type] [int] NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF__Job_YC_TJ__addti__5224328E]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_TJJobs] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Orders]    Script Date: 05/08/2013 20:07:39 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Orders]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Orders](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[uid] [int] NULL,
	[username] [nvarchar](50) NULL,
	[ammout] [decimal](18, 0) NULL,
	[ordertype] [nvarchar](50) NULL,
	[ordernum] [nvarchar](50) NULL,
	[paymentid] [int] NULL,
	[addtime] [datetime] NULL,
	[completetime] [datetime] NULL,
	[state] [tinyint] NULL,
	[remark] [nvarchar](200) NULL,
 CONSTRAINT [PK_Job_YC_Orders] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Corpwelfare]    Script Date: 05/08/2013 20:06:47 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Corpwelfare]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Corpwelfare](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](50) NULL,
	[photo] [nvarchar](100) NULL,
	[orderid] [int] NULL,
 CONSTRAINT [PK_Job_YC_Corpwelfare] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Company]    Script Date: 05/08/2013 20:06:34 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Company]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Company](
	[cid] [int] IDENTITY(1,1) NOT NULL,
	[uid] [int] NULL,
	[companyname] [nvarchar](100) NULL,
	[natrueid] [int] NULL,
	[tradeid] [int] NULL,
	[placeid] [int] NULL,
	[registered] [int] NULL,
	[registerdate] [varchar](10) NULL,
	[companysize] [int] NULL,
	[linkname] [nvarchar](50) NULL,
	[telephone] [nvarchar](50) NULL,
	[email] [nvarchar](50) NULL,
	[mobile] [nvarchar](50) NULL,
	[fax] [nvarchar](50) NULL,
	[website] [nvarchar](150) NULL,
	[address] [nvarchar](200) NULL,
	[introducce] [text] NULL,
	[zpphoto] [nvarchar](100) NULL,
	[Licence] [nvarchar](150) NULL,
	[emap] [nvarchar](150) NULL,
	[QQ] [nvarchar](50) NULL,
	[logourl] [nvarchar](150) NULL,
	[ishurry] [bit] NULL,
	[iscomm] [bit] NULL,
	[UserLevel] [int] NULL,
	[sdate] [datetime] NULL,
	[edate] [datetime] NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_Company_addtime]  DEFAULT (getdate()),
	[vgroup] [int] NULL CONSTRAINT [DF_Job_YC_Company_vgroup]  DEFAULT ((1)),
	[siteid] [int] NULL,
	[state] [tinyint] NULL,
	[lic_check] [tinyint] NULL,
	[amount] [decimal](18, 0) NULL,
	[welfareids] [nvarchar](50) NULL,
	[hits] [int] NULL CONSTRAINT [DF_Job_YC_Company_hits]  DEFAULT ((0)),
	[school] [nvarchar](50) NULL DEFAULT (NULL),
	[department] [nvarchar](50) NULL DEFAULT (NULL),
 CONSTRAINT [PK_Job_YC_CompanyBase] PRIMARY KEY CLUSTERED 
(
	[cid] 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]
END
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[job_YC_Jobs]    Script Date: 05/08/2013 20:07:14 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[job_YC_Jobs]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[job_YC_Jobs](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[uid] [int] NULL,
	[cid] [int] NULL,
	[jobname] [nvarchar](50) NULL,
	[jobtype] [int] NULL,
	[amount] [int] NULL,
	[days] [int] NULL,
	[dept] [nvarchar](50) NULL,
	[positionid] [int] NULL,
	[tradeid] [int] NULL,
	[placeid] [int] NULL,
	[paytemp] [nvarchar](50) NULL,
	[wage] [int] NULL,
	[description] [nvarchar](2000) NULL,
	[education] [int] NULL,
	[workage] [int] NULL,
	[Professional] [int] NULL,
	[sex] [int] NULL,
	[age] [nvarchar](20) NULL,
	[companyname] [nvarchar](50) NULL,
	[mobile] [varchar](20) NULL,
	[linkname] [nvarchar](50) NULL,
	[address] [nvarchar](150) NULL,
	[telephone] [nvarchar](20) NULL,
	[email] [nvarchar](100) NULL,
	[showtype] [int] NULL,
	[fax] [nvarchar](50) NULL,
	[zip] [nvarchar](50) NULL,
	[qq] [nvarchar](20) NULL,
	[State] [int] NULL CONSTRAINT [DF_job_YC_Jobs_State]  DEFAULT ((0)),
	[hits] [int] NULL CONSTRAINT [DF_job_YC_Jobs_hits]  DEFAULT ((0)),
	[modtime] [datetime] NULL CONSTRAINT [DF_job_YC_Jobs_modtime]  DEFAULT (getdate()),
	[addtime] [datetime] NULL CONSTRAINT [DF_job_YC_Jobs_addtime]  DEFAULT (getdate()),
	[siteid] [int] NULL,
	[school] [nvarchar](50) NULL DEFAULT (NULL),
 CONSTRAINT [PK_job_YC_Jobs] 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]
END
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[Job_YC_TJCompany]    Script Date: 05/08/2013 20:08:51 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_TJCompany]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_TJCompany](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[uid] [int] NULL,
	[cid] [int] NULL,
	[companyname] [nvarchar](50) NULL,
	[stime] [datetime] NULL,
	[etime] [datetime] NOT NULL,
	[type] [int] NULL,
 CONSTRAINT [PK_Job_YC_TJCompany] 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]
END
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Description' , N'SCHEMA',N'dbo', N'TABLE',N'Job_YC_TJCompany', N'COLUMN',N'type'))
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Job_YC_TJCompany', @level2type=N'COLUMN',@level2name=N'type'
GO
/****** Object:  Table [dbo].[Job_YC_SQLBAK]    Script Date: 05/08/2013 20:08:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_SQLBAK]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_SQLBAK](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](50) NULL,
	[size] [nvarchar](50) NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_YC_Job_SQLBAK_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_YC_Job_SQLBAK] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_webLog]    Script Date: 05/08/2013 20:09:13 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_webLog]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_webLog](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[uid] [int] NULL,
	[username] [nvarchar](50) NULL,
	[dosomething] [nvarchar](200) NULL,
	[addtime] [datetime] NULL,
 CONSTRAINT [PK_Job_YC_webLog] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Ability]    Script Date: 05/08/2013 20:06:03 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Ability]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Ability](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[typename] [nvarchar](50) NULL,
 CONSTRAINT [PK_Job_YC_Ability] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_OAuth2Account]    Script Date: 05/08/2013 20:07:37 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_OAuth2Account]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_OAuth2Account](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[OAuthServer] [nvarchar](50) NULL,
	[Token] [nvarchar](50) NULL,
	[OpenID] [nvarchar](50) NULL,
	[BindAccount] [nvarchar](50) NULL,
	[ExpireTime] [datetime] NULL,
	[NickName] [nvarchar](50) NULL,
	[HeadUrl] [nvarchar](100) NULL,
 CONSTRAINT [PK_Job_YC_OAuth2Account] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_ShieldingKeyWord]    Script Date: 05/08/2013 20:08:41 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_ShieldingKeyWord]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_ShieldingKeyWord](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[ShieldingKeywords] [varchar](20) NULL,
	[uid] [int] NOT NULL,
	[adddate] [datetime] NULL CONSTRAINT [DF_YC_Job_ShieldingKeyWord_adddate]  DEFAULT (getdate()),
 CONSTRAINT [PK_YC_Job_ShieldingKeyWord] 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]
END
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[Job_YC_CollectionResume]    Script Date: 05/08/2013 20:06:29 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_CollectionResume]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_CollectionResume](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[company_uid] [int] NULL,
	[person_uid] [int] NULL,
	[resumeid] [int] NULL,
	[collecttime] [datetime] NULL CONSTRAINT [DF_Job_YC_CollectionResume_collecttime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_CollectionResume] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Trade]    Script Date: 05/08/2013 20:09:03 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Trade]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Trade](
	[id] [varchar](8) NOT NULL,
	[cname] [nvarchar](100) NULL,
	[ename] [nvarchar](100) NULL,
	[orderid] [int] NOT NULL,
	[parentid] [int] NULL,
	[level] [int] NULL,
	[ishome] [bit] NULL,
 CONSTRAINT [PK_Job_YC_Trade] 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]
END
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[Job_YC_Attentioncompany]    Script Date: 05/08/2013 20:06:24 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Attentioncompany]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Attentioncompany](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[companyid] [int] NULL,
	[com_uid] [int] NULL,
	[person_uid] [int] NULL,
	[addtime] [datetime] NULL,
 CONSTRAINT [PK_Job_YC_Attentioncompany] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_SiteManage]    Script Date: 05/08/2013 20:08:43 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_SiteManage]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_SiteManage](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[sitename] [nvarchar](50) NULL,
	[areaid] [int] NULL,
	[tradeid] [int] NULL,
	[sitetype] [tinyint] NULL,
	[sitedomain] [nvarchar](50) NULL,
	[sitelogo] [nvarchar](50) NULL,
	[sitetitle] [nvarchar](80) NULL,
	[sitekeyword] [nvarchar](100) NULL,
	[sitedescription] [nvarchar](200) NULL,
	[orderid] [int] NULL CONSTRAINT [DF_Job_YC_SiteManage_orderid]  DEFAULT ((0)),
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_SiteManage_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_SiteManage] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_SeoKey]    Script Date: 05/08/2013 20:08:38 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_SeoKey]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_SeoKey](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[keywords] [nvarchar](50) NULL,
	[link] [nvarchar](200) NULL,
 CONSTRAINT [PK_Job_YC_SeoKey] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Feedback]    Script Date: 05/08/2013 20:06:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Feedback]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Feedback](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](50) NULL,
	[contentstr] [nvarchar](500) NULL,
	[link] [varchar](50) NULL,
	[addtime] [datetime] NULL,
 CONSTRAINT [PK_Job_YC_Feedback] 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]
END
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[Job_YC_Scale]    Script Date: 05/08/2013 20:08:24 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Scale]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Scale](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[Scaledesc] [nvarchar](50) NULL,
 CONSTRAINT [PK_Job_YC_Scale] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Admin]    Script Date: 05/08/2013 20:06:06 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Admin]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Admin](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[username] [nvarchar](50) NULL,
	[password] [nvarchar](50) NULL,
	[role] [int] NULL,
	[rolename] [nvarchar](50) NULL,
	[realname] [nvarchar](50) NULL,
	[loginip] [nvarchar](50) NULL,
	[logindate] [datetime] NULL,
	[logintimes] [int] NULL CONSTRAINT [DF_Job_YC_Admin_logintimes]  DEFAULT ((0)),
	[islock] [int] NULL CONSTRAINT [DF_Job_YC_Admin_islock]  DEFAULT ((0)),
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_Admin_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_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]
END
GO
/****** Object:  Table [dbo].[Job_YC_EmailCheck]    Script Date: 05/08/2013 20:06:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_EmailCheck]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_EmailCheck](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[username] [nvarchar](50) NULL,
	[checkcode] [nvarchar](50) NULL,
	[utype] [tinyint] NULL,
	[cratetime] [datetime] NULL CONSTRAINT [DF_Job_YC_EmailCheck_cratetime]  DEFAULT (getdate()),
	[ischeck] [bit] NULL,
 CONSTRAINT [PK_Job_YC_EmailCheck] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_PageSeo]    Script Date: 05/08/2013 20:07:42 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_PageSeo]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_PageSeo](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[pagename] [nvarchar](50) NULL,
	[label] [varchar](20) NULL,
	[title] [nvarchar](50) NULL,
	[keywords] [varchar](100) NULL,
	[description] [varchar](200) NULL,
 CONSTRAINT [PK_Job_YC_PageSeo] 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]
END
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[Job_YC_RecommandArea]    Script Date: 05/08/2013 20:08:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_RecommandArea]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_RecommandArea](
	[id] [int] IDENTITY(1000,1) NOT NULL,
	[placeid] [nchar](10) NULL,
	[placename] [nvarchar](50) NULL,
	[dirname] [nvarchar](50) NULL,
	[orderid] [int] NULL CONSTRAINT [DF_Job_YC_RecommandArea_orderid]  DEFAULT ((0)),
 CONSTRAINT [PK_Job_YC_RecommandArea] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_WorkExp]    Script Date: 05/08/2013 20:09:19 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_WorkExp]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_WorkExp](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[uid] [int] NULL,
	[resumeid] [int] NULL,
	[sdate] [nvarchar](10) NULL,
	[edate] [nvarchar](10) NULL,
	[companyname] [nvarchar](50) NULL,
	[tradeid] [int] NULL,
	[companynatureid] [int] NULL,
	[companysize] [int] NULL,
	[Department] [nvarchar](50) NULL,
	[Position] [nvarchar](50) NULL,
	[workdesc] [nvarchar](2000) NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_WorkExp_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_WorkExp] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_QQLogin]    Script Date: 05/08/2013 20:08:05 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_QQLogin]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_QQLogin](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[uid] [int] NULL,
	[username] [nvarchar](50) NULL,
	[openid] [nvarchar](50) NULL,
	[accesstoken] [nvarchar](100) NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_QQLogin_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_QQLogin] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_NewsClass]    Script Date: 05/08/2013 20:07:34 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_NewsClass]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_NewsClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[cname] [nvarchar](50) NULL,
	[ename] [nvarchar](50) NULL,
	[orderid] [int] NULL CONSTRAINT [DF_Table_1_orderid]  DEFAULT ((0)),
	[parentid] [int] NULL CONSTRAINT [DF_Job_YC_NewsClass_parentid_1]  DEFAULT ((0)),
	[islist] [tinyint] NULL,
 CONSTRAINT [PK_Table_1] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Professional]    Script Date: 05/08/2013 20:08:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Professional]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Professional](
	[id] [int] NULL,
	[cname] [nvarchar](100) NULL,
	[ename] [nvarchar](100) NULL,
	[orderid] [int] NULL
) ON [PRIMARY]
END
GO
/****** Object:  Table [dbo].[Job_YC_CompanyPhoto]    Script Date: 05/08/2013 20:06:39 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_CompanyPhoto]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_CompanyPhoto](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[photo] [nvarchar](50) NULL,
	[uid] [int] NULL,
	[comid] [int] NULL,
	[state] [tinyint] NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_CompanyPhoto_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_CompanyPhoto] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Position]    Script Date: 05/08/2013 20:08:00 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Position]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Position](
	[id] [varchar](8) NOT NULL,
	[cname] [nvarchar](100) NULL,
	[ename] [nvarchar](100) NULL,
	[parentid] [int] NULL,
	[orderid] [int] NULL,
	[level] [int] NULL,
	[ishome] [bit] NULL DEFAULT ((0)),
 CONSTRAINT [PK_Job_YC_Position] 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]
END
GO
SET ANSI_PADDING OFF
GO
/****** Object:  Table [dbo].[Job_YC_PersonServerSQ]    Script Date: 05/08/2013 20:07:50 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_PersonServerSQ]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_PersonServerSQ](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[servename] [nvarchar](50) NULL,
	[serveid] [tinyint] NULL,
	[username] [nvarchar](50) NULL,
	[resumeid] [int] NULL,
	[uid] [int] NULL,
	[state] [tinyint] NULL,
	[sqtime] [datetime] NULL CONSTRAINT [DF_Job_YC_PersonServerSQ_sqtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_PersonServerSQ] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_UserGroup]    Script Date: 05/08/2013 20:09:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_UserGroup]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_UserGroup](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[groupname] [nvarchar](50) NULL,
	[grouppic] [nvarchar](50) NULL,
	[price] [nvarchar](50) NULL,
	[times] [int] NULL,
	[resumedown] [int] NULL,
	[Invite] [int] NULL,
	[jobsadd] [int] NULL,
	[score] [int] NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_CompanyGroup_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_CompanyGroup] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Templates]    Script Date: 05/08/2013 20:08:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Templates]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Templates](
	[templateid] [smallint] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](50) NOT NULL,
	[author] [nvarchar](100) NOT NULL,
	[createdate] [nvarchar](50) NULL CONSTRAINT [DF_Job_YC_Templates_createdate]  DEFAULT (getdate()),
	[ver] [nvarchar](100) NOT NULL,
	[foraspxjobver] [nvarchar](100) NOT NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_Templates_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_Templates] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Resume]    Script Date: 05/08/2013 20:08:12 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Resume]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Resume](
	[id] [int] IDENTITY(100000,1) NOT NULL,
	[uid] [int] NOT NULL,
	[pid] [int] NULL,
	[resumename] [nvarchar](50) NULL,
	[resumelock] [int] NULL CONSTRAINT [DF_Job_YC_Resume_resumelock]  DEFAULT ((0)),
	[worktype] [int] NULL CONSTRAINT [DF_Job_YC_Resume_worktype]  DEFAULT ((0)),
	[workplace] [int] NULL CONSTRAINT [DF_Job_YC_Resume_workplace]  DEFAULT ((0)),
	[tradeid] [int] NULL CONSTRAINT [DF_Job_YC_Resume_tradeid]  DEFAULT ((0)),
	[positionid] [int] NULL CONSTRAINT [DF_Job_YC_Resume_positionid]  DEFAULT ((0)),
	[hopesalary] [nvarchar](50) NULL,
	[Arrivaltime] [nvarchar](50) NULL,
	[Selfevaluation] [nvarchar](2000) NULL,
	[languageid] [int] NULL,
	[hits] [int] NULL CONSTRAINT [DF_Job_YC_Resume_hits]  DEFAULT ((0)),
	[adddate] [datetime] NULL CONSTRAINT [DF_Job_YC_Resume_adddate]  DEFAULT (getdate()),
	[moddate] [datetime] NULL CONSTRAINT [DF_Job_YC_Resume_moddate]  DEFAULT (getdate()),
	[Complete] [tinyint] NULL CONSTRAINT [DF_Job_YC_Resume_Complete]  DEFAULT ((40)),
	[iscomm] [bit] NULL,
	[siteid] [int] NULL,
	[type] [tinyint] NULL CONSTRAINT [DF_Job_YC_Resume_type]  DEFAULT ((0)),
	[Postionname] [nvarchar](20) NULL,
	[resumekeystr] [nvarchar](150) NULL,
	[state] [tinyint] NULL CONSTRAINT [DF__Job_YC_Re__state__681373AD]  DEFAULT ((0)),
 CONSTRAINT [PK_Job_YC_Resum] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Salary]    Script Date: 05/08/2013 20:08:20 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Salary]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Salary](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[cname] [nvarchar](50) NULL,
	[orderid] [int] NULL,
 CONSTRAINT [PK_Job_YC_Salary] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_ToolClass]    Script Date: 05/08/2013 20:08:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_ToolClass]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_ToolClass](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[classname] [nvarchar](50) NULL,
	[classename] [nvarchar](50) NULL,
	[orderid] [tinyint] NULL,
 CONSTRAINT [PK_Job_YC_ToolClass] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_ResumeSendList]    Script Date: 05/08/2013 20:08:17 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_ResumeSendList]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_ResumeSendList](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[uid] [int] NULL,
	[companyname] [nvarchar](50) NULL,
	[companyemail] [nvarchar](50) NULL,
	[jobname] [nvarchar](50) NULL,
	[resumied] [int] NULL,
	[letterid] [int] NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_ResumeSendList_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_ResumeSendList] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_PG]    Script Date: 05/08/2013 20:07:55 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_PG]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_PG](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[jobname] [nvarchar](50) NULL,
	[amount] [int] NULL,
	[companyname] [nvarchar](50) NULL,
	[linkname] [nvarchar](50) NULL,
	[tele] [nvarchar](50) NULL,
	[password] [nvarchar](50) NULL,
	[contents] [text] NULL,
	[address] [nvarchar](50) NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_PG_addtime]  DEFAULT (getdate()),
	[isok] [int] NULL CONSTRAINT [DF_Job_YC_PG_isok]  DEFAULT ((0)),
	[siteid] [int] NULL,
 CONSTRAINT [PK_Job_YC_PG] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_WorkType]    Script Date: 05/08/2013 20:09:21 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_WorkType]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_WorkType](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[cname] [nvarchar](50) NULL,
	[orderid] [int] NULL,
 CONSTRAINT [PK_Job_YC_WorkType] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_PersonItSkill]    Script Date: 05/08/2013 20:07:47 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_PersonItSkill]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_PersonItSkill](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[skillid] [int] NULL,
	[pid] [int] NULL,
	[uid] [int] NULL,
	[resumeid] [int] NULL,
	[UseTime] [int] NULL,
	[Ability] [int] NULL,
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_PersonItSkill_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_PersonItSkill] 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]
END
GO
/****** Object:  Table [dbo].[Job_YC_Searchwords]    Script Date: 05/08/2013 20:08:32 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_Searchwords]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_Searchwords](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[keywords] [nvarchar](50) NULL,
	[ename] [nvarchar](50) NULL,
	[total] [int] NULL CONSTRAINT [DF_Job_YC_Searchwords_total]  DEFAULT ((1)),
	[addtime] [datetime] NULL CONSTRAINT [DF_Job_YC_Searchwords_addtime]  DEFAULT (getdate()),
 CONSTRAINT [PK_Job_YC_Searchwords] 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]
END
GO

/****** Object:  StoredProcedure [dbo].[PublicPagination]    Script Date: 05/08/2013 20:13:40 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PublicPagination]') AND type in (N'P', N'PC'))
BEGIN
EXEC dbo.sp_executesql @statement = N'--=======================
--公用分页过程类
--========================

Create    Proc [dbo].[PublicPagination](
    @sTable varchar(500),--表名，如：mytb,或者 mytb join mytb2 on id=id2
    @sField varchar(500),--显示字段,
    @sKeyField varchar(50),--唯一字段，如：id
	@sWhere varchar(1000), --条件，如：where id=2 and id2=1
	@sOrder varchar(500),--排序，如:order by id desc,id2 asc
	@PageIndex int,--当前页码
	@PageSize int,--页大小
	@RecordCount int output--总记录数
)
AS
Begin

declare @CurPoint int
declare @Sql nvarchar(3000)

if @sWhere=''''
set @sWhere='' where 1=1 ''

set @Sql=''select  @RecordCount=count(*) from ''+@sTable+'' ''+@sWhere
exec sp_executesql @Sql,N''@RecordCount int out'',@RecordCount out

---====================分页规则===================
if @RecordCount>0
	begin
		if @PageIndex<0
           set @PageIndex=1
		if @PageIndex>ceiling(1.0*@RecordCount/@PageSize)
		   set @PageIndex=ceiling(1.0*@RecordCount/@PageSize)

        set @CurPoint=(@PageIndex-1)*@PageSize
	end
else
	begin
		set @RecordCount=0
		return
	end
--==================================================
Set @Sql=''select top  ''+str(@PageSize)+'' ''+@sField+''  from  ''+ @sTable+'' ''+@sWhere+''
 and  ''+@sKeyField+ ''  not in(select top  ''+str(@CurPoint)+'' ''+@sKeyField+''  from  ''+ @sTable+'' ''+@sWhere+'' ''+@sOrder+'') ''+@sOrder
--print @sql
exec sp_executesql @Sql

End
' 
END
GO
/****** Object:  View [dbo].[YC_View_PersonResume]    Script Date: 05/08/2013 20:12:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[dbo].[YC_View_PersonResume]'))
EXEC dbo.sp_executesql @statement = N'CREATE VIEW [dbo].[YC_View_PersonResume]
AS
SELECT     dbo.Job_YC_Person.realname, dbo.Job_YC_Person.sex, dbo.Job_YC_Person.mobile, dbo.Job_YC_Resume.resumelock, dbo.Job_YC_Resume.positionid, 
                      dbo.Job_YC_Resume.hits, dbo.Job_YC_Resume.moddate, dbo.Job_YC_Resume.adddate, dbo.Job_YC_Resume.type, dbo.Job_YC_Person.uid, 
                      dbo.Job_YC_Resume.worktype, dbo.Job_YC_Resume.workplace, dbo.Job_YC_Resume.tradeid, dbo.Job_YC_Resume.resumename, 
                      dbo.Job_YC_Resume.hopesalary, dbo.Job_YC_Resume.iscomm, dbo.Job_YC_Resume.Postionname, dbo.Job_YC_Resume.Selfevaluation, 
                      dbo.Job_YC_Resume.Arrivaltime, YEAR(GETDATE()) - YEAR(dbo.Job_YC_Person.birthday) AS age, dbo.Job_YC_Person.workage, dbo.Job_YC_Person.Edu, 
                      dbo.Job_YC_Person.live, dbo.Job_YC_Resume.Complete, dbo.Job_YC_Person.email, dbo.Job_YC_Person.isphoto, dbo.Job_YC_Resume.id AS resumeid, 
                      dbo.Job_YC_Resume.resumekeystr, dbo.Job_YC_Person.graduatetschool, dbo.Job_YC_Person.X_Marriage, dbo.Job_YC_Resume.state
FROM         dbo.Job_YC_Person INNER JOIN
                      dbo.Job_YC_Resume ON dbo.Job_YC_Person.id = dbo.Job_YC_Resume.pid
'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DiagramPane1' , N'SCHEMA',N'dbo', N'VIEW',N'YC_View_PersonResume', NULL,NULL))
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[70] 4[21] 2[3] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "Job_YC_Person"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 487
               Right = 209
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Job_YC_Resume"
            Begin Extent = 
               Top = 6
               Left = 247
               Bottom = 507
               Right = 446
            End
            DisplayFlags = 280
            TopColumn = 8
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 23
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 7260
         Alias = 2940
         Table = 6630
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'YC_View_PersonResume'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DiagramPaneCount' , N'SCHEMA',N'dbo', N'VIEW',N'YC_View_PersonResume', NULL,NULL))
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'YC_View_PersonResume'
GO
/****** Object:  UserDefinedFunction [dbo].[getCorpPlaceid]    Script Date: 05/08/2013 20:13:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[getCorpPlaceid]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute dbo.sp_executesql @statement = N'
-- ================================================
-- Template generated from Template Explorer using:
-- Create Inline Function (New Menu).SQL
--
-- Use the Specify Values for Template Parameters 
-- command (Ctrl-Shift-M) to fill in the parameter 
-- values below.
--
-- This block of comments will not be included in
-- the definition of the function.
-- ================================================
 
CReate   function   [dbo].[getCorpPlaceid](@id   int)
returns   varchar(10) 
as
begin
declare   @result   varchar(10) 
set   @result= '' ''
 select @result=Placeid from Job_YC_company   where   cid=@id
 
return(@result)
End

' 
END
GO
/****** Object:  UserDefinedFunction [dbo].[getCorpTradeid]    Script Date: 05/08/2013 20:13:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[getCorpTradeid]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute dbo.sp_executesql @statement = N'-- ================================================
-- Template generated from Template Explorer using:
-- Create Inline Function (New Menu).SQL
--
-- Use the Specify Values for Template Parameters 
-- command (Ctrl-Shift-M) to fill in the parameter 
-- values below.
--
-- This block of comments will not be included in
-- the definition of the function.
-- ================================================
 
create   function   [dbo].[getCorpTradeid](@id   int)
returns   varchar(10) 
as
begin
declare   @result   varchar(10) 
set   @result= '' ''
 select @result=tradeid from Job_YC_company   where   cid=@id
 
return(@result)
End
' 
END
GO
/****** Object:  UserDefinedFunction [dbo].[getCorpName]    Script Date: 05/08/2013 20:13:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[getCorpName]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute dbo.sp_executesql @statement = N'-- ================================================
-- Template generated from Template Explorer using:
-- Create Inline Function (New Menu).SQL
--
-- Use the Specify Values for Template Parameters 
-- command (Ctrl-Shift-M) to fill in the parameter 
-- values below.
--
-- This block of comments will not be included in
-- the definition of the function.
-- ================================================
 
Create   function   [dbo].[getCorpName](@id   int)
returns   nvarchar(50) 
as
begin
declare   @result   nvarchar(50)  
set   @result= '' ''
 select @result=companyname from Job_YC_company   where   cid=@id
 
return(@result)
End
' 
END
GO
/****** Object:  UserDefinedFunction [dbo].[getCorpVgroup]    Script Date: 05/08/2013 20:13:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[getCorpVgroup]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute dbo.sp_executesql @statement = N'-- ================================================
-- Template generated from Template Explorer using:
-- Create Inline Function (New Menu).SQL
--
-- Use the Specify Values for Template Parameters 
-- command (Ctrl-Shift-M) to fill in the parameter 
-- values below.
--
-- This block of comments will not be included in
-- the definition of the function.
-- ================================================
--判断当前企业是否为有效期的VIP会员
CREATE   function   [dbo].[getCorpVgroup](@id   int)
returns   varchar(5)
as
begin
declare   @result varchar(5) 
declare   @edate  datetime 
set   @result= 1
 select @result=vgroup,@edate=edate from Job_YC_company   where   cid=@id
 IF (@result >1 and getdate()<@edate)

    BEGIN

       SET @result = ''YES''

    END

ELSE

    BEGIN

       SET @result = ''NO''

    END

 
return(@result)
End
' 
END
GO
/****** Object:  UserDefinedFunction [dbo].[fmerg]    Script Date: 05/08/2013 20:13:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[fmerg]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
execute dbo.sp_executesql @statement = N'-- ================================================
-- Template generated from Template Explorer using:
-- Create Inline Function (New Menu).SQL
--
-- Use the Specify Values for Template Parameters 
-- command (Ctrl-Shift-M) to fill in the parameter 
-- values below.
--
-- This block of comments will not be included in
-- the definition of the function.
-- ================================================
 
create   function   [dbo].[fmerg](@id   int)
returns   varchar(8000)
as
begin
declare   @str   varchar(8000)
set   @str= '' ''
select   @str=@str+ ''   ''+jobname   from   Job_YC_Jobs   where   cid=@id
set   @str=right(@str,len(@str)-1)
return(@str)
End
' 
END
GO
/****** Object:  View [dbo].[YC_View_NewestPublishCompny]    Script Date: 05/08/2013 20:12:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[dbo].[YC_View_NewestPublishCompny]'))
EXEC dbo.sp_executesql @statement = N'CREATE VIEW [dbo].[YC_View_NewestPublishCompny]
AS
SELECT     TOP (100) PERCENT cid, dbo.getCorpName(cid) AS companyname, dbo.getCorpVgroup(cid) AS isvip, CT AS jobmodtime, dbo.getCorpTradeid(cid) 
                      AS tradeid, dbo.getCorpPlaceid(cid) AS placeid
FROM         (SELECT     TOP (100) PERCENT cid, MAX(modtime) AS CT
                       FROM          dbo.job_YC_Jobs
                       WHERE      (State = 1)
                       GROUP BY cid
                       ORDER BY CT DESC) AS aa
ORDER BY jobmodtime DESC
'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DiagramPane1' , N'SCHEMA',N'dbo', N'VIEW',N'YC_View_NewestPublishCompny', NULL,NULL))
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[19] 4[39] 2[21] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "aa"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 95
               Right = 180
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 4245
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 3150
         Alias = 2835
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'YC_View_NewestPublishCompny'
GO
IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_DiagramPaneCount' , N'SCHEMA',N'dbo', N'VIEW',N'YC_View_NewestPublishCompny', NULL,NULL))
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'YC_View_NewestPublishCompny'
GO

 
/****** Object:  Table [dbo].[Job_YC_VipCard]    Script Date: 05/23/2013 23:00:27 ******/
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Job_YC_VipCard]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Job_YC_VipCard](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[cardNum] [nvarchar](50) NULL,
	[createdate] [datetime] NULL,
	[rechargeaccount] [nvarchar](50) NULL,
	[rechargedate] [datetime] NULL,
	[state] [tinyint] NULL,
 CONSTRAINT [PK_Job_YC_VipCard] 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]
END
GO

