/****** 对象: 表 [dbo].[templateType]    脚本日期: 2006-7-12 8:59:53 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_template_templateType]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[template] DROP CONSTRAINT FK_template_templateType
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[templateType]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [templateType]
GO


/****** 对象: 表 [dbo].[templateType]    脚本日期: 2006-7-12 8:59:53 ******/
CREATE TABLE [templateType] (
	[pkId] [int] IDENTITY (1, 1) NOT NULL ,
	[name] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[type] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[remark] [varchar] (1000) COLLATE Chinese_PRC_CI_AS NULL ,
	CONSTRAINT [PK_templateType] PRIMARY KEY  CLUSTERED 
	(
		[pkId]
	)  ON [PRIMARY] 
) ON [PRIMARY]
GO


