51 lines
2.3 KiB
Transact-SQL
51 lines
2.3 KiB
Transact-SQL
|
|
CREATE TABLE [dbo].[HJGL_ElectrodeBake](
|
|
[ElectrodeID] [nvarchar](50) NOT NULL,
|
|
[ElectrodeCode] [nvarchar](50) NULL,
|
|
[ElectrodeDate] [datetime] NULL,
|
|
[UnitId] [nvarchar](50) NULL,
|
|
[CompileMan] [nvarchar](50) NULL,
|
|
[CompileDate] [datetime] NULL,
|
|
[ProjectId] [nvarchar](50) NULL,
|
|
CONSTRAINT [PK_HJGL_ElectrodeBake] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ElectrodeID] 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_ElectrodeBake] WITH CHECK ADD CONSTRAINT [FK_HJGL_ElectrodeBake_Base_Project] FOREIGN KEY([ProjectId])
|
|
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
|
GO
|
|
|
|
ALTER TABLE [dbo].[HJGL_ElectrodeBake] CHECK CONSTRAINT [FK_HJGL_ElectrodeBake_Base_Project]
|
|
GO
|
|
|
|
ALTER TABLE [dbo].[HJGL_ElectrodeBake] WITH CHECK ADD CONSTRAINT [FK_HJGL_ElectrodeBake_Base_Unit] FOREIGN KEY([UnitId])
|
|
REFERENCES [dbo].[Base_Unit] ([UnitId])
|
|
GO
|
|
|
|
ALTER TABLE [dbo].[HJGL_ElectrodeBake] CHECK CONSTRAINT [FK_HJGL_ElectrodeBake_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_ElectrodeBake', @level2type=N'COLUMN',@level2name=N'ElectrodeID'
|
|
GO
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'보係긍뵀' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeBake', @level2type=N'COLUMN',@level2name=N'ElectrodeCode'
|
|
GO
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'뷸군휑퍅' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeBake', @level2type=N'COLUMN',@level2name=N'ElectrodeDate'
|
|
GO
|
|
|
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'데貫' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_ElectrodeBake', @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_ElectrodeBake', @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_ElectrodeBake'
|
|
GO
|
|
|
|
|