Tables [dbo].[SCQReportMeterReadings]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created1:00:09 AM Thursday, March 21, 2019
Last Modified1:15:24 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_SCQReportMeterReadings: SCQMeterReadingIDSCQMeterReadingIDint4
False
1 - 1
CallIDint4
False
Foreign Keys FK_SCQReportMeterReadings_MeterID_MTMeters: [dbo].[MTMeters].MeterIDMeterIDint4
False
Displaydecimal(18,6)9
True
Actualdecimal(18,6)9
True
Creditsdecimal(18,6)9
True
Remarksvarchar(255)255
True
IsValidForBillingbit1
False
((0))
IsEstimatebit1
False
((0))
WasResetbit1
False
((0))
ResetValuedecimal(18,6)9
True
((0))
IsRollOverbit1
False
((0))
IsValidbit1
False
((1))
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_SCQReportMeterReadings: SCQMeterReadingIDPK_SCQReportMeterReadingsSCQMeterReadingID
True
80
NameColumns
FK_SCQReportMeterReadings_MeterID_MTMetersMeterID->[dbo].[MTMeters].[MeterID]
CREATE TABLE [dbo].[SCQReportMeterReadings]
(
[SCQMeterReadingID] [int] NOT NULL IDENTITY(1, 1),
[CallID] [int] NOT NULL,
[MeterID] [int] NOT NULL,
[Display] [decimal] (18, 6) NULL,
[Actual] [decimal] (18, 6) NULL,
[Credits] [decimal] (18, 6) NULL,
[Remarks] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[IsValidForBilling] [bit] NOT NULL CONSTRAINT [DF_SCQReportMeterReadings_IsValidForBilling] DEFAULT ((0)),
[IsEstimate] [bit] NOT NULL CONSTRAINT [DF_SCQReportMeterReadings_IsEstimate] DEFAULT ((0)),
[WasReset] [bit] NOT NULL CONSTRAINT [DF_SCQReportMeterReadings_WasReset] DEFAULT ((0)),
[ResetValue] [decimal] (18, 6) NULL CONSTRAINT [DF_SCQReportMeterReadings_ResetValue] DEFAULT ((0)),
[IsRollOver] [bit] NOT NULL CONSTRAINT [DF_SCQReportMeterReadings_IsRollOver] DEFAULT ((0)),
[IsValid] [bit] NOT NULL CONSTRAINT [DF_SCQReportMeterReadings_IsValid] DEFAULT ((1))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SCQReportMeterReadings] ADD CONSTRAINT [PK_SCQReportMeterReadings] PRIMARY KEY CLUSTERED  ([SCQMeterReadingID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SCQReportMeterReadings] ADD CONSTRAINT [FK_SCQReportMeterReadings_MeterID_MTMeters] FOREIGN KEY ([MeterID]) REFERENCES [dbo].[MTMeters] ([MeterID])
GO