Tables [dbo].[SCBillingMeterGroupBaseCycleCharges]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapTrue
Row Count (~)0
Created12:59:07 AM Thursday, March 21, 2019
Last Modified1:14:40 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
BillingMeterGroupBaseCycleChargeIDint4
False
1 - 1
InvoiceIDint4
False
ContractDetailIDint4
False
Foreign Keys FK_SCBillingMeterGroupBaseCycleCharges_BillingMeterGroupID_SCBillingMeterGroups: [dbo].[SCBillingMeterGroups].BillingMeterGroupIDBillingMeterGroupIDint4
False
CycleChargeDetailIDint4
False
BaseFromDatedatetime8
False
BaseToDatedatetime8
False
BaseRatePerCopydecimal(18,6)9
False
NextBaseRatePerCopydecimal(18,6)9
True
NonAdjustedBaseRatePerCopydecimal(18,6)9
False
BilledCoveredCopiesdecimal(18,6)9
False
CoveredCopiesdecimal(18,6)9
False
NonAdjustedCoveredCopiesdecimal(18,6)9
False
BaseAmountmoney8
False
CreatorIDvarchar(8)8
True
CreateDatedatetime8
False
(getdate())
UpdatorIDvarchar(8)8
True
LastUpdatedatetime8
False
(getdate())
NameColumns
FK_SCBillingMeterGroupBaseCycleCharges_BillingMeterGroupID_SCBillingMeterGroupsBillingMeterGroupID->[dbo].[SCBillingMeterGroups].[BillingMeterGroupID]
CREATE TABLE [dbo].[SCBillingMeterGroupBaseCycleCharges]
(
[BillingMeterGroupBaseCycleChargeID] [int] NOT NULL IDENTITY(1, 1),
[InvoiceID] [int] NOT NULL,
[ContractDetailID] [int] NOT NULL,
[BillingMeterGroupID] [int] NOT NULL,
[CycleChargeDetailID] [int] NOT NULL,
[BaseFromDate] [datetime] NOT NULL,
[BaseToDate] [datetime] NOT NULL,
[BaseRatePerCopy] [decimal] (18, 6) NOT NULL,
[NextBaseRatePerCopy] [decimal] (18, 6) NULL,
[NonAdjustedBaseRatePerCopy] [decimal] (18, 6) NOT NULL,
[BilledCoveredCopies] [decimal] (18, 6) NOT NULL,
[CoveredCopies] [decimal] (18, 6) NOT NULL,
[NonAdjustedCoveredCopies] [decimal] (18, 6) NOT NULL,
[BaseAmount] [money] NOT NULL,
[CreatorID] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_SCBillingMeterGroupBaseCycleCharges_CreateDate] DEFAULT (getdate()),
[UpdatorID] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_SCBillingMeterGroupBaseCycleCharges_LastUpdate] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SCBillingMeterGroupBaseCycleCharges] ADD CONSTRAINT [FK_SCBillingMeterGroupBaseCycleCharges_BillingMeterGroupID_SCBillingMeterGroups] FOREIGN KEY ([BillingMeterGroupID]) REFERENCES [dbo].[SCBillingMeterGroups] ([BillingMeterGroupID])
GO