--物料管理
/****** Object:  Table [dbo].[T_Wo_MaterialManage]    Script Date: 06/03/2019 17:58:09 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[T_Wo_MaterialManage]') AND type in (N'U'))
DROP TABLE [dbo].[T_Wo_MaterialManage]
GO

/****** Object:  Table [dbo].[T_Wo_MaterialManage]    Script Date: 06/03/2019 17:58:09 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[T_Wo_MaterialManage](
	[F_Id] [int] IDENTITY(1,1) NOT NULL,
	[F_MaterialCode] [nvarchar](11) NULL,--物料编码
	[F_MaterialName] [nvarchar](2000) NULL,--物料名称
	[F_Model] [nvarchar](500) NULL,--型号
	[F_Specs] [nvarchar](500) NULL,--规格
	[F_Level1] [nvarchar](500) NULL,--一级分类
	[F_Level2] [nvarchar](500) NULL,--二级分类
	[F_Level3] [nvarchar](500) NULL,--三级分类
	[F_Brand] [nvarchar](500) NULL,--品牌
	[F_MaterialEffect] [ntext] NULL,--复合肥肥效
	[F_Pipeline] [nvarchar](500) NULL,--产品线
	[F_Craft] [nvarchar](500) NULL,--工艺
	[F_Remark] [ntext] NULL,
	[F_CreateBy] [varchar](50) NULL,
	[F_CreateOn] [datetime] NULL,
	[F_UpdateCount] [int] NULL,
	[F_UpdateBy] [varchar](50) NULL,
	[F_UpdateOn] [datetime] NULL,
	[F_IsDelete] [int] NULL,
	[F_DeleteBy] [varchar](50) NULL,
	[F_DeleteOn] [datetime] NULL,
 CONSTRAINT [PK_T_Wo_MaterialManage] PRIMARY KEY CLUSTERED 
(
	[F_Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO


EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_Id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'物料编码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_MaterialCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'物料编码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_MaterialName'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'型号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_Model'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'规格' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_Specs'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'一级分类' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_Level1'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'二级分类' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_Level2'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'三级分类' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_Level3'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'品牌' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_Brand'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'复合肥肥效' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_MaterialEffect'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'产品线' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_Pipeline'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工艺' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_Craft'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @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_Wo_MaterialManage', @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_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_CreateOn'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'修改次数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_UpdateCount'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'修改人工号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_UpdateBy'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'修改时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_Wo_MaterialManage', @level2type=N'COLUMN',@level2name=N'F_UpdateOn'
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_Wo_MaterialManage', @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_Wo_MaterialManage', @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_Wo_MaterialManage', @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_Wo_MaterialManage'
GO
