xinjiang/DataBase/版本日志/已更新/焊材管理/HJGL_ElectrodeRecoveryItem.sql

88 lines
4.5 KiB
Transact-SQL

/****** Object: Table [dbo].[HJGL_ElectrodeRecoveryItem] Script Date: 2021/8/30 18:54:51 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[HJGL_ElectrodeRecoveryItem](
[ElectrodeRecoveryItemID] [nvarchar](50) NOT NULL,
[ElectrodeRecoveryId] [nvarchar](50) NOT NULL,
[ElectrodeGrade] [nvarchar](50) NULL,
[BatchNumber] [nvarchar](50) NULL,
[InLibCode] [nvarchar](50) NULL,
[Specifications] [nvarchar](50) NULL,
[WelderCode] [nvarchar](20) NULL,
[UseSite] [nvarchar](50) NULL,
[WeldingMaterial] [nvarchar](50) NULL,
[RecipientsCount] [int] NULL,
[RecoveryCount] [decimal](19, 1) NULL,
[GrantMan] [nvarchar](20) NULL,
[ElectrodeRecoveryModel] [nvarchar](50) NULL,
[WMT_ID] [varchar](50) NULL,
[InstallationId] [nvarchar](50) NULL,
[CnProfession] [char](1) NULL,
[Equipment] [char](1) NULL,
CONSTRAINT [PK_HJGL_ElectrodeRecoveryItem] PRIMARY KEY CLUSTERED
(
[ElectrodeRecoveryItemID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[HJGL_ElectrodeRecoveryItem] WITH CHECK ADD CONSTRAINT [FK_HJGL_ElectrodeRecoveryItem_HJGL_ElectrodeRecovery] FOREIGN KEY([ElectrodeRecoveryId])
REFERENCES [dbo].[HJGL_ElectrodeRecovery] ([ElectrodeRecoveryId])
GO
ALTER TABLE [dbo].[HJGL_ElectrodeRecoveryItem] CHECK CONSTRAINT [FK_HJGL_ElectrodeRecoveryItem_HJGL_ElectrodeRecovery]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊条发放回收记录明细主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecoveryItem', @level2type=N'COLUMN',@level2name=N'ElectrodeRecoveryItemID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊条发放回收记录Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecoveryItem', @level2type=N'COLUMN',@level2name=N'ElectrodeRecoveryId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊条牌号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecoveryItem', @level2type=N'COLUMN',@level2name=N'ElectrodeGrade'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'批号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecoveryItem', @level2type=N'COLUMN',@level2name=N'BatchNumber'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'入库自编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecoveryItem', @level2type=N'COLUMN',@level2name=N'InLibCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'规格' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecoveryItem', @level2type=N'COLUMN',@level2name=N'Specifications'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊工代号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecoveryItem', @level2type=N'COLUMN',@level2name=N'WelderCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'使用部位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecoveryItem', @level2type=N'COLUMN',@level2name=N'UseSite'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊件材质' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecoveryItem', @level2type=N'COLUMN',@level2name=N'WeldingMaterial'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'领用数量(根)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecoveryItem', @level2type=N'COLUMN',@level2name=N'RecipientsCount'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'回收数量(根)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecoveryItem', @level2type=N'COLUMN',@level2name=N'RecoveryCount'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'发放人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecoveryItem', @level2type=N'COLUMN',@level2name=N'GrantMan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊条发放回收记录明细' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecoveryItem'
GO