
/****** Object:  Table [dbo].[T_Bus_DemandsType]    Script Date: 09/04/2019 09:15:22 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[T_Bus_DemandsType]') AND type in (N'U'))
DROP TABLE [dbo].[T_Bus_DemandsType]
GO


/****** Object:  Table [dbo].[T_Bus_DemandsType]    Script Date: 09/04/2019 09:15:22 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[T_Bus_DemandsType](
	[F_Id] [int] IDENTITY(1,1) NOT NULL,
	[F_Code] [nvarchar](500) NULL,
	[F_Name] [nvarchar](500) NULL,
	[F_ParentId] [int] NULL,
	[F_ParentCode] [nvarchar](500) NULL,
	[F_layer] [int] NULL,
	[F_Sort] [int] NULL,
	[F_Remark] [nvarchar](200) NULL,
	[F_CreateBy] [varchar](50) NULL,
	[F_CreateOn] [datetime] NULL,
	[F_IsDelete] [int] NULL,
	[F_DeleteBy] [varchar](50) NULL,
	[F_DeleteOn] [datetime] NULL,
	
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'id，自增' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_DemandsType', @level2type=N'COLUMN',@level2name=N'F_Id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号（无值为|0|）' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_DemandsType', @level2type=N'COLUMN',@level2name=N'F_Code'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_DemandsType', @level2type=N'COLUMN',@level2name=N'F_Name'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上级id（无值为0）' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_DemandsType', @level2type=N'COLUMN',@level2name=N'F_ParentId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上级编号（无值为|0|）' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_DemandsType', @level2type=N'COLUMN',@level2name=N'F_ParentCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'当前级别（0级：无上级，1级：有上级）' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_DemandsType', @level2type=N'COLUMN',@level2name=N'F_layer'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'排序' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_DemandsType', @level2type=N'COLUMN',@level2name=N'F_Sort'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_DemandsType', @level2type=N'COLUMN',@level2name=N'F_Remark'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_DemandsType', @level2type=N'COLUMN',@level2name=N'F_CreateBy'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_DemandsType', @level2type=N'COLUMN',@level2name=N'F_CreateOn'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否删除：0否，1是' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_DemandsType', @level2type=N'COLUMN',@level2name=N'F_IsDelete'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'删除人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_DemandsType', @level2type=N'COLUMN',@level2name=N'F_DeleteBy'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'删除时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_DemandsType', @level2type=N'COLUMN',@level2name=N'F_DeleteOn'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'诉求分类表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Bus_DemandsType'
GO


