Tables [dbo].[ARTransactionDetailDistributions]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:57:01 AM Thursday, March 21, 2019
Last Modified1:10:25 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK__ARTransa__FFEE745152957793: RowIDRowIDint4
False
1 - 1
Foreign Keys FK_ARTransactionDetailDistributions_ParentRowID_ARTransactionDetails: [dbo].[ARTransactionDetails].ParentRowIDParentRowIDint4
False
CoverageFromDatedatetime8
False
CoverageToDatedatetime8
False
CoverageDatePeriodint4
False
CoveragePeriodint4
False
Quantitydecimal(18,6)9
False
((0))
Amountmoney8
False
Costmoney8
False
GLIDint4
True
DeptIDint4
True
CostGLIDint4
True
CostDeptIDint4
True
TaxFlagint4
False
MeterTotaldecimal(18,0)9
True
OverageMeterTotaldecimal(18,0)9
True
BilledMeterTotaldecimal(18,0)9
True
UnderageMeterTotaldecimal(18,0)9
True
MeterBWdecimal(18,0)9
True
OverageMeterBWdecimal(18,0)9
True
BilledMeterBWdecimal(18,0)9
True
UnderageMeterBWdecimal(18,0)9
True
MeterColordecimal(18,0)9
True
OverageMeterColordecimal(18,0)9
True
BilledMeterColordecimal(18,0)9
True
UnderageMeterColordecimal(18,0)9
True
MeterScannerdecimal(18,0)9
True
OverageMeterScannerdecimal(18,0)9
True
BilledMeterScannerdecimal(18,0)9
True
UnderageMeterScannerdecimal(18,0)9
True
MeterOtherdecimal(18,0)9
True
OverageMeterOtherdecimal(18,0)9
True
BilledMeterOtherdecimal(18,0)9
True
UnderageMeterOtherdecimal(18,0)9
True
CreateDatedatetime8
False
CreatorIDvarchar(32)32
False
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK__ARTransa__FFEE745152957793: RowIDPK__ARTransa__FFEE745152957793RowID
True
80
NameColumns
FK_ARTransactionDetailDistributions_ParentRowID_ARTransactionDetailsParentRowID->[dbo].[ARTransactionDetails].[RowID]
CREATE TABLE [dbo].[ARTransactionDetailDistributions]
(
[RowID] [int] NOT NULL IDENTITY(1, 1),
[ParentRowID] [int] NOT NULL,
[CoverageFromDate] [datetime] NOT NULL,
[CoverageToDate] [datetime] NOT NULL,
[CoverageDatePeriod] [int] NOT NULL,
[CoveragePeriod] [int] NOT NULL,
[Quantity] [decimal] (18, 6) NOT NULL CONSTRAINT [DF_ARTransactionDetailDistributions_Quantity] DEFAULT ((0)),
[Amount] [money] NOT NULL,
[Cost] [money] NOT NULL,
[GLID] [int] NULL,
[DeptID] [int] NULL,
[CostGLID] [int] NULL,
[CostDeptID] [int] NULL,
[TaxFlag] [int] NOT NULL,
[MeterTotal] [decimal] (18, 0) NULL,
[OverageMeterTotal] [decimal] (18, 0) NULL,
[BilledMeterTotal] [decimal] (18, 0) NULL,
[UnderageMeterTotal] [decimal] (18, 0) NULL,
[MeterBW] [decimal] (18, 0) NULL,
[OverageMeterBW] [decimal] (18, 0) NULL,
[BilledMeterBW] [decimal] (18, 0) NULL,
[UnderageMeterBW] [decimal] (18, 0) NULL,
[MeterColor] [decimal] (18, 0) NULL,
[OverageMeterColor] [decimal] (18, 0) NULL,
[BilledMeterColor] [decimal] (18, 0) NULL,
[UnderageMeterColor] [decimal] (18, 0) NULL,
[MeterScanner] [decimal] (18, 0) NULL,
[OverageMeterScanner] [decimal] (18, 0) NULL,
[BilledMeterScanner] [decimal] (18, 0) NULL,
[UnderageMeterScanner] [decimal] (18, 0) NULL,
[MeterOther] [decimal] (18, 0) NULL,
[OverageMeterOther] [decimal] (18, 0) NULL,
[BilledMeterOther] [decimal] (18, 0) NULL,
[UnderageMeterOther] [decimal] (18, 0) NULL,
[CreateDate] [datetime] NOT NULL,
[CreatorID] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARTransactionDetailDistributions] ADD CONSTRAINT [PK__ARTransa__FFEE745152957793] PRIMARY KEY CLUSTERED  ([RowID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARTransactionDetailDistributions] ADD CONSTRAINT [FK_ARTransactionDetailDistributions_ParentRowID_ARTransactionDetails] FOREIGN KEY ([ParentRowID]) REFERENCES [dbo].[ARTransactionDetails] ([RowID])
GO