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

76 lines
3.7 KiB
Transact-SQL

/****** Object: Table [dbo].[HJGL_ElectrodeRecovery] Script Date: 2021/8/30 18:54:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[HJGL_ElectrodeRecovery](
[ElectrodeRecoveryId] [nvarchar](50) NOT NULL,
[ElectrodeRecoveryCode] [nvarchar](50) NULL,
[ElectrodeRecoveryDate] [datetime] NOT NULL,
[CompileMan] [nvarchar](50) NULL,
[CompileDate] [datetime] NULL,
[ProjectId] [nvarchar](50) NULL,
[UnitId] [nvarchar](50) NULL,
[AuditMan] [nvarchar](50) NULL,
[AuditDate] [datetime] NULL,
[IsRoleAudit] [bit] NULL,
[RoleAuditMan] [nvarchar](50) NULL,
[RoleAuditDate] [datetime] NULL,
CONSTRAINT [PK_HJGL_ElectrodeRecovery] PRIMARY KEY CLUSTERED
(
[ElectrodeRecoveryId] 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
ALTER TABLE [dbo].[HJGL_ElectrodeRecovery] WITH CHECK ADD CONSTRAINT [FK_HJGL_ElectrodeRecovery_Base_Project] FOREIGN KEY([ProjectId])
REFERENCES [dbo].[Base_Project] ([ProjectId])
GO
ALTER TABLE [dbo].[HJGL_ElectrodeRecovery] CHECK CONSTRAINT [FK_HJGL_ElectrodeRecovery_Base_Project]
GO
ALTER TABLE [dbo].[HJGL_ElectrodeRecovery] WITH CHECK ADD CONSTRAINT [FK_HJGL_ElectrodeRecovery_Base_Unit] FOREIGN KEY([UnitId])
REFERENCES [dbo].[Base_Unit] ([UnitId])
GO
ALTER TABLE [dbo].[HJGL_ElectrodeRecovery] CHECK CONSTRAINT [FK_HJGL_ElectrodeRecovery_Base_Unit]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊条发放回收记录主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecovery', @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_ElectrodeRecovery', @level2type=N'COLUMN',@level2name=N'ElectrodeRecoveryCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊条发放回收记录日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecovery', @level2type=N'COLUMN',@level2name=N'ElectrodeRecoveryDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecovery', @level2type=N'COLUMN',@level2name=N'CompileMan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecovery', @level2type=N'COLUMN',@level2name=N'CompileDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属项目' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecovery', @level2type=N'COLUMN',@level2name=N'ProjectId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属单位' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecovery', @level2type=N'COLUMN',@level2name=N'UnitId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecovery', @level2type=N'COLUMN',@level2name=N'AuditMan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecovery', @level2type=N'COLUMN',@level2name=N'AuditDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊条发放回收记录主表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeRecovery'
GO