101 lines
2.3 KiB
Transact-SQL
101 lines
2.3 KiB
Transact-SQL
|
|
|
|
|
|
--施工计划人力表
|
|
CREATE TABLE [dbo].[JDGL_SGManPower] (
|
|
[Id] nvarchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL,
|
|
[ProjectId] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
|
|
[UnitId] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
|
|
[UnitWorkId] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
|
|
[WorkPostId] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
|
|
[Version] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
|
|
[Quantity] int NULL,
|
|
[PlanDate] datetime NULL,
|
|
[CompileMan] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
|
|
[CompileTime] datetime NULL,
|
|
[Remarks] nvarchar(500) COLLATE Chinese_PRC_CI_AS NULL,
|
|
CONSTRAINT [PK_JDGL_SGManPower] PRIMARY KEY CLUSTERED ([Id])
|
|
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].[JDGL_SGManPower] SET (LOCK_ESCALATION = TABLE)
|
|
GO
|
|
|
|
EXEC sp_addextendedproperty
|
|
'MS_Description', N'主健',
|
|
'SCHEMA', N'dbo',
|
|
'TABLE', N'JDGL_SGManPower',
|
|
'COLUMN', N'Id'
|
|
GO
|
|
|
|
EXEC sp_addextendedproperty
|
|
'MS_Description', N'项目id',
|
|
'SCHEMA', N'dbo',
|
|
'TABLE', N'JDGL_SGManPower',
|
|
'COLUMN', N'ProjectId'
|
|
GO
|
|
|
|
EXEC sp_addextendedproperty
|
|
'MS_Description', N'单位id',
|
|
'SCHEMA', N'dbo',
|
|
'TABLE', N'JDGL_SGManPower',
|
|
'COLUMN', N'UnitId'
|
|
GO
|
|
|
|
EXEC sp_addextendedproperty
|
|
'MS_Description', N'装置id',
|
|
'SCHEMA', N'dbo',
|
|
'TABLE', N'JDGL_SGManPower',
|
|
'COLUMN', N'UnitWorkId'
|
|
GO
|
|
|
|
EXEC sp_addextendedproperty
|
|
'MS_Description', N'岗位id',
|
|
'SCHEMA', N'dbo',
|
|
'TABLE', N'JDGL_SGManPower',
|
|
'COLUMN', N'WorkPostId'
|
|
GO
|
|
|
|
EXEC sp_addextendedproperty
|
|
'MS_Description', N'版本',
|
|
'SCHEMA', N'dbo',
|
|
'TABLE', N'JDGL_SGManPower',
|
|
'COLUMN', N'Version'
|
|
GO
|
|
|
|
EXEC sp_addextendedproperty
|
|
'MS_Description', N'数量',
|
|
'SCHEMA', N'dbo',
|
|
'TABLE', N'JDGL_SGManPower',
|
|
'COLUMN', N'Quantity'
|
|
GO
|
|
|
|
EXEC sp_addextendedproperty
|
|
'MS_Description', N'日期',
|
|
'SCHEMA', N'dbo',
|
|
'TABLE', N'JDGL_SGManPower',
|
|
'COLUMN', N'PlanDate'
|
|
GO
|
|
|
|
EXEC sp_addextendedproperty
|
|
'MS_Description', N'编制人',
|
|
'SCHEMA', N'dbo',
|
|
'TABLE', N'JDGL_SGManPower',
|
|
'COLUMN', N'CompileMan'
|
|
GO
|
|
|
|
EXEC sp_addextendedproperty
|
|
'MS_Description', N'编制时间',
|
|
'SCHEMA', N'dbo',
|
|
'TABLE', N'JDGL_SGManPower',
|
|
'COLUMN', N'CompileTime'
|
|
GO
|
|
|
|
EXEC sp_addextendedproperty
|
|
'MS_Description', N'备注',
|
|
'SCHEMA', N'dbo',
|
|
'TABLE', N'JDGL_SGManPower',
|
|
'COLUMN', N'Remarks' |