Tables [dbo].[APHVoucherDetails]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:56:34 AM Thursday, March 21, 2019
Last Modified1:09:58 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_APHVoucherDetails: HVoucherID\DetailIDForeign Keys FK_APHVoucherDetails_HVoucherID_APHVouchers: [dbo].[APHVouchers].HVoucherIDHVoucherIDint4
False
Cluster Primary Key PK_APHVoucherDetails: HVoucherID\DetailIDDetailIDint4
False
Descriptionvarchar(255)255
True
Amountmoney8
True
Foreign Keys FK_APHVoucherDetails_BranchID_GLBranches: [dbo].[GLBranches].BranchIDBranchIDint4
True
BranchNamevarchar(50)50
True
Foreign Keys FK_APHVoucherDetails_AssetID_GLAssets: [dbo].[GLAssets].AssetIDAssetIDint4
True
AssetNumbervarchar(32)32
True
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_APHVoucherDetails: HVoucherID\DetailIDPK_APHVoucherDetailsHVoucherID, DetailID
True
80
NameColumns
FK_APHVoucherDetails_AssetID_GLAssetsAssetID->[dbo].[GLAssets].[AssetID]
FK_APHVoucherDetails_BranchID_GLBranchesBranchID->[dbo].[GLBranches].[BranchID]
FK_APHVoucherDetails_HVoucherID_APHVouchersHVoucherID->[dbo].[APHVouchers].[HVoucherID]
CREATE TABLE [dbo].[APHVoucherDetails]
(
[HVoucherID] [int] NOT NULL,
[DetailID] [int] NOT NULL,
[Description] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Amount] [money] NULL,
[BranchID] [int] NULL,
[BranchName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[AssetID] [int] NULL,
[AssetNumber] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[APHVoucherDetails] ADD CONSTRAINT [PK_APHVoucherDetails] PRIMARY KEY CLUSTERED  ([HVoucherID], [DetailID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[APHVoucherDetails] ADD CONSTRAINT [FK_APHVoucherDetails_AssetID_GLAssets] FOREIGN KEY ([AssetID]) REFERENCES [dbo].[GLAssets] ([AssetID])
GO
ALTER TABLE [dbo].[APHVoucherDetails] ADD CONSTRAINT [FK_APHVoucherDetails_BranchID_GLBranches] FOREIGN KEY ([BranchID]) REFERENCES [dbo].[GLBranches] ([BranchID])
GO
ALTER TABLE [dbo].[APHVoucherDetails] ADD CONSTRAINT [FK_APHVoucherDetails_HVoucherID_APHVouchers] FOREIGN KEY ([HVoucherID]) REFERENCES [dbo].[APHVouchers] ([HVoucherID])
GO