alter table  DriverSub_DriverSubPlan add  DriverSubNames varchar(100)
go
alter table  DriverSub_DriverSubContact add  DriverSubPlanId varchar(100)
go
alter table  DriverSub_DriverSubContact add  DriverSubContractorsId varchar(100)
go
alter table  DriverSub_DriverSubContact add  SubcontractingType varchar(100)
go
create table DriverSub_DriverSubContractors
(
    DriverSubContractorsId varchar(100) primary key,
    SubUnitName varchar(500),
    EnterpriseNature varchar(500),
    SubcontractingType varchar(500),
    CollCropCode varchar(500),
    SafetyProductionLicense varchar(500),
    QualificationCertificateNumber varchar(500),
    QualificationType varchar(500),
    QualificationLevel varchar(500),
    Province varchar(100),
    City varchar(100),
    IsUse bit default 1,
)
go
exec sp_addextendedproperty 'MS_Description', N'企业名称', 'SCHEMA', 'dbo', 'TABLE', 'DriverSub_DriverSubContractors',
     'COLUMN', 'SubUnitName'
go

exec sp_addextendedproperty 'MS_Description', N'企业性质', 'SCHEMA', 'dbo', 'TABLE', 'DriverSub_DriverSubContractors',
     'COLUMN', 'EnterpriseNature'
go

exec sp_addextendedproperty 'MS_Description', N'分包类别(催化剂装填:1,烘炉:2,化学:3,清洗开车队:4)', 'SCHEMA', 'dbo',
     'TABLE', 'DriverSub_DriverSubContractors', 'COLUMN', 'SubcontractingType'
go

exec sp_addextendedproperty 'MS_Description', N'统一社会信用代码', 'SCHEMA', 'dbo', 'TABLE',
     'DriverSub_DriverSubContractors', 'COLUMN', 'CollCropCode'
go

exec sp_addextendedproperty 'MS_Description', N'安全生产许可证', 'SCHEMA', 'dbo', 'TABLE',
     'DriverSub_DriverSubContractors', 'COLUMN', 'SafetyProductionLicense'
go

exec sp_addextendedproperty 'MS_Description', N'资质证书编号', 'SCHEMA', 'dbo', 'TABLE',
     'DriverSub_DriverSubContractors', 'COLUMN', 'QualificationCertificateNumber'
go

exec sp_addextendedproperty 'MS_Description', N'资质类别', 'SCHEMA', 'dbo', 'TABLE', 'DriverSub_DriverSubContractors',
     'COLUMN', 'QualificationType'
go

exec sp_addextendedproperty 'MS_Description', N'资质等级', 'SCHEMA', 'dbo', 'TABLE', 'DriverSub_DriverSubContractors',
     'COLUMN', 'QualificationLevel'
go

exec sp_addextendedproperty 'MS_Description', N'省份', 'SCHEMA', 'dbo', 'TABLE', 'DriverSub_DriverSubContractors',
     'COLUMN', 'Province'
go

exec sp_addextendedproperty 'MS_Description', N'城市', 'SCHEMA', 'dbo', 'TABLE', 'DriverSub_DriverSubContractors',
     'COLUMN', 'City'
go

exec sp_addextendedproperty 'MS_Description', N'是否使用', 'SCHEMA', 'dbo', 'TABLE', 'DriverSub_DriverSubContractors',
     'COLUMN', 'IsUse'
go
