Tables [dbo].[SCQBillingMeterGroupOverages]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapTrue
Row Count (~)0
Created12:59:54 AM Thursday, March 21, 2019
Last Modified1:15:17 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
BillingMeterGroupOverageIDint4
False
1 - 1
BillingIDint4
False
ContractDetailIDint4
False
Foreign Keys FK_SCQBillingMeterGroupOverages_BillingMeterGroupID_SCQBillingMeterGroups: [dbo].[SCQBillingMeterGroups].BillingMeterGroupIDBillingMeterGroupIDint4
False
OverageDetailIDint4
False
Ratedecimal(14,6)9
False
CreditRatedecimal(14,6)9
False
RangeEndingint4
False
CreatorIDvarchar(8)8
True
CreateDatedatetime8
False
(getdate())
UpdatorIDvarchar(8)8
True
LastUpdatedatetime8
False
(getdate())
MeterGroupDetailIDint4
False
NameColumns
FK_SCQBillingMeterGroupOverages_BillingMeterGroupID_SCQBillingMeterGroupsBillingMeterGroupID->[dbo].[SCQBillingMeterGroups].[BillingMeterGroupID]
CREATE TABLE [dbo].[SCQBillingMeterGroupOverages]
(
[BillingMeterGroupOverageID] [int] NOT NULL IDENTITY(1, 1),
[BillingID] [int] NOT NULL,
[ContractDetailID] [int] NOT NULL,
[BillingMeterGroupID] [int] NOT NULL,
[OverageDetailID] [int] NOT NULL,
[Rate] [decimal] (14, 6) NOT NULL,
[CreditRate] [decimal] (14, 6) NOT NULL,
[RangeEnding] [int] NOT NULL,
[CreatorID] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_SCQBillingMeterGroupOverages_CreateDate] DEFAULT (getdate()),
[UpdatorID] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_SCQBillingMeterGroupOverages_LastUpdate] DEFAULT (getdate()),
[MeterGroupDetailID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SCQBillingMeterGroupOverages] ADD CONSTRAINT [FK_SCQBillingMeterGroupOverages_BillingMeterGroupID_SCQBillingMeterGroups] FOREIGN KEY ([BillingMeterGroupID]) REFERENCES [dbo].[SCQBillingMeterGroups] ([BillingMeterGroupID])
GO