CNCEC_SUBQHSE_WUHUAN/DataBase/版本日志/已更新脚本/2020年度/SGGLDB_V2020-12-10-001[实名制]...

135 lines
7.8 KiB
Transact-SQL

ALTER TABLE SitePerson_PersonInOutNow ADD proCode NVARCHAR(50) NULL
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目编码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SitePerson_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'proCode'
GO
ALTER TABLE SitePerson_PersonInOutNow ADD name NVARCHAR(50) NULL
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'姓名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SitePerson_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'name'
GO
ALTER TABLE SitePerson_PersonInOutNow ADD idcardType NVARCHAR(50) NULL
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'证件类型' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SitePerson_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'idcardType'
GO
ALTER TABLE SitePerson_PersonInOutNow ADD idcardNumber NVARCHAR(50) NULL
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'证件号码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SitePerson_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'idcardNumber'
GO
ALTER TABLE SitePerson_PersonInOutNow ADD checkType NVARCHAR(50) NULL
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'考勤类型' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SitePerson_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'checkType'
GO
ALTER TABLE SitePerson_PersonInOutNow ADD checkWay NVARCHAR(50) NULL
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'考勤方式' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SitePerson_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'checkWay'
GO
ALTER TABLE SitePerson_PersonInOutNow ADD checkLocation NVARCHAR(500) NULL
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'考勤位置' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SitePerson_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'checkLocation'
GO
ALTER TABLE SitePerson_PersonInOutNow ADD longitude NVARCHAR(50) NULL
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'经度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SitePerson_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'longitude'
GO
ALTER TABLE SitePerson_PersonInOutNow ADD latitude NVARCHAR(50) NULL
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'维度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SitePerson_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'latitude'
GO
ALTER TABLE SitePerson_PersonInOutNow ADD RealNamePushTime DATETIME NULL
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'与实名制系统推送时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SitePerson_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'RealNamePushTime'
GO
CREATE TABLE [dbo].[RealName_PushLog](
[PushLogId] [nvarchar](50) NOT NULL,
[ProjectId] [nvarchar](50) NULL,
[ProjectCode] [nvarchar](50) NULL,
[PushType] [nvarchar](50) NULL,
[Success] [nvarchar](50) NULL,
[Code] [nvarchar](50) NULL,
[Message] [nvarchar](max) NULL,
[PushTime] [datetime] NULL,
CONSTRAINT [PK_RealName_PushLog] PRIMARY KEY CLUSTERED
(
[PushLogId] 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
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'响应码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RealName_PushLog', @level2type=N'COLUMN',@level2name=N'Code'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'返回信息' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RealName_PushLog', @level2type=N'COLUMN',@level2name=N'Message'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'同步时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RealName_PushLog', @level2type=N'COLUMN',@level2name=N'PushTime'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'与实名制系统同步日志' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RealName_PushLog'
GO
CREATE TABLE [dbo].[RealName_PersonInOutNow](
[PersonInOutId] [nvarchar](50) NOT NULL,
[ProjectId] [nvarchar](50) NULL,
[UnitId] [nvarchar](50) NULL,
[PersonId] [nvarchar](50) NULL,
[IsIn] [bit] NULL,
[ChangeTime] [datetime] NULL,
[InCount] [int] NULL,
[OutCount] [int] NULL,
[TotalCount] [int] NULL,
[ProjectHeadConfirmId] [nvarchar](50) NULL,
[WorkPostId] [nvarchar](50) NULL,
[PostType] [nchar](1) NULL,
[proCode] [nvarchar](50) NULL,
[name] [nvarchar](50) NULL,
[idcardType] [nvarchar](50) NULL,
[idcardNumber] [nvarchar](50) NULL,
[checkType] [nvarchar](50) NULL,
[checkWay] [nvarchar](50) NULL,
[checkLocation] [nvarchar](500) NULL,
[longitude] [nvarchar](50) NULL,
[latitude] [nvarchar](50) NULL,
[RealNamePushTime] [datetime] NULL,
CONSTRAINT [PK_RealName_PersonInOutNow] PRIMARY KEY CLUSTERED
(
[PersonInOutId] 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
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目编码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RealName_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'proCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'姓名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RealName_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'name'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'证件类型' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RealName_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'idcardType'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'证件号码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RealName_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'idcardNumber'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'考勤类型' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RealName_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'checkType'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'考勤方式' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RealName_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'checkWay'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'考勤位置' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RealName_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'checkLocation'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'经度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RealName_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'longitude'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'维度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RealName_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'latitude'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'与实名制系统推送时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RealName_PersonInOutNow', @level2type=N'COLUMN',@level2name=N'RealNamePushTime'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'当日出入场记录表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'RealName_PersonInOutNow'
GO