Tables [dbo].[SCBillingContractMiscChargeCycleCharges]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:59:06 AM Thursday, March 21, 2019
Last Modified1:14:36 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK__SCBillin__1F726145C6017C6C: BillingContractMiscChargeCycleChargeIDBillingContractMiscChargeCycleChargeIDint4
False
1 - 1
InvoiceIDint4
False
ContractDetailIDint4
False
Foreign Keys FK_SCBillingContractMiscChargeCycleCharges_BillingContractMiscChargeID_SCBillingContractMiscCharges: [dbo].[SCBillingContractMiscCharges].BillingContractMiscChargeIDBillingContractMiscChargeIDint4
False
CycleChargeDetailIDint4
False
FromDatedatetime8
False
ToDatedatetime8
False
Quantitydecimal(18,6)9
False
Ratedecimal(18,6)9
False
Amountmoney8
False
NonAdjustedAmountmoney8
False
CreatorIDvarchar(8)8
True
CreateDatedatetime8
False
(getdate())
UpdatorIDvarchar(8)8
True
LastUpdatedatetime8
False
(getdate())
BillWithIDint4
False
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK__SCBillin__1F726145C6017C6C: BillingContractMiscChargeCycleChargeIDPK__SCBillin__1F726145C6017C6CBillingContractMiscChargeCycleChargeID
True
80
NameColumns
FK_SCBillingContractMiscChargeCycleCharges_BillingContractMiscChargeID_SCBillingContractMiscChargesBillingContractMiscChargeID->[dbo].[SCBillingContractMiscCharges].[BillingContractMiscChargeID]
CREATE TABLE [dbo].[SCBillingContractMiscChargeCycleCharges]
(
[BillingContractMiscChargeCycleChargeID] [int] NOT NULL IDENTITY(1, 1),
[InvoiceID] [int] NOT NULL,
[ContractDetailID] [int] NOT NULL,
[BillingContractMiscChargeID] [int] NOT NULL,
[CycleChargeDetailID] [int] NOT NULL,
[FromDate] [datetime] NOT NULL,
[ToDate] [datetime] NOT NULL,
[Quantity] [decimal] (18, 6) NOT NULL,
[Rate] [decimal] (18, 6) NOT NULL,
[Amount] [money] NOT NULL,
[NonAdjustedAmount] [money] NOT NULL,
[CreatorID] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_SCBillingContractMiscChargeCycleCharges_CreateDate] DEFAULT (getdate()),
[UpdatorID] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_SCBillingContractMiscChargeCycleCharges_LastUpdate] DEFAULT (getdate()),
[BillWithID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SCBillingContractMiscChargeCycleCharges] ADD CONSTRAINT [PK__SCBillin__1F726145C6017C6C] PRIMARY KEY CLUSTERED  ([BillingContractMiscChargeCycleChargeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SCBillingContractMiscChargeCycleCharges] ADD CONSTRAINT [FK_SCBillingContractMiscChargeCycleCharges_BillingContractMiscChargeID_SCBillingContractMiscCharges] FOREIGN KEY ([BillingContractMiscChargeID]) REFERENCES [dbo].[SCBillingContractMiscCharges] ([BillingContractMiscChargeID])
GO