﻿USE [DriveMaintenance]
GO

/****** Object:  Table [dbo].[DriveMaintencePlanDaily]    Script Date: 2024/7/24 22:18:29 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[DriveMaintencePlanDaily](
	[AutoID] [INT] IDENTITY(1,1) NOT NULL,
	[GUID] [UNIQUEIDENTIFIER] NOT NULL,
	[EquipmentID] [INT] NULL,
	[CompleteDate] [DATETIME] NULL,
	[MaintenanceYear] [INT] NULL,
	[MaintenanceDate] [INT] NULL,
	[MaintenanceType] [VARCHAR](50) NULL,
	[PMStartMonth] [DATETIME] NULL,
	[PlanStatus] [CHAR](1) NULL,
	[CreatDate] [DATETIME] NULL,
	[CreatUser] [INT] NULL,
	[ChangeDate] [DATETIME] NULL,
	[ChangeUser] [INT] NULL,
	[Remarks] [NVARCHAR](2000) NULL,
 CONSTRAINT [PK_DriveMaintencePlanDaily] PRIMARY KEY CLUSTERED 
(
	[AutoID] 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'DriveMaintencePlanDaily', @level2type=N'COLUMN',@level2name=N'EquipmentID'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'预计保养日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DriveMaintencePlanDaily', @level2type=N'COLUMN',@level2name=N'CompleteDate'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'保养年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DriveMaintencePlanDaily', @level2type=N'COLUMN',@level2name=N'MaintenanceYear'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'保养类型(Semi-an、Quarterly、Annual、Monthly)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DriveMaintencePlanDaily', @level2type=N'COLUMN',@level2name=N'MaintenanceType'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'新PM起始月份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DriveMaintencePlanDaily', @level2type=N'COLUMN',@level2name=N'PMStartMonth'
GO


