CREATE TABLE [dbo].[SCProposalEquipmentMiscChargeCycleCharges]
(
[BillingEquipmentMiscChargeCycleChargeID] [int] NOT NULL IDENTITY(1, 1),
[ProposalID] [int] NOT NULL,
[ContractDetailID] [int] NOT NULL,
[BillingEquipmentMiscChargeID] [int] NOT NULL,
[BillingEquipmentID] [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_SCProposalEquipmentMiscChargeCycleCharges_CreateDate] DEFAULT (getdate()),
[UpdatorID] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_SCProposalEquipmentMiscChargeCycleCharges_LastUpdate] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SCProposalEquipmentMiscChargeCycleCharges] ADD CONSTRAINT [PK__SCPropos__814F61436DC294CC] PRIMARY KEY CLUSTERED ([BillingEquipmentMiscChargeCycleChargeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SCProposalEquipmentMiscChargeCycleCharges] ADD CONSTRAINT [FK_SCProposalEquipmentMiscChargeCycleCharges_BillingEquipmentMiscChargeID_SCProposalEquipmentMiscCharges] FOREIGN KEY ([BillingEquipmentMiscChargeID]) REFERENCES [dbo].[SCProposalEquipmentMiscCharges] ([BillingEquipmentMiscChargeID])
GO