Tables [dbo].[CTDrawEntries]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:57:10 AM Thursday, March 21, 2019
Last Modified1:10:40 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_CTDrawEntries: EntryIDEntryIDint4
False
1 - 1
CommissionPeriodint4
False
Foreign Keys FK_CTDrawEntries_EntryTypeID_CTDrawEntryTypes: [dbo].[CTDrawEntryTypes].EntryTypeIDEntryTypeIDint4
False
SalesRepIDint4
False
Descriptionvarchar(255)255
False
Amountmoney8
False
Activebit1
False
((1))
CreatorIDchar(8)8
False
UpdaterIDchar(8)8
False
CreateDatedatetime8
False
LastUpdatedatetime8
False
timestamptimestamp8
False
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_CTDrawEntries: EntryIDPK_CTDrawEntriesEntryID
True
80
NameColumns
FK_CTDrawEntries_EntryTypeID_CTDrawEntryTypesEntryTypeID->[dbo].[CTDrawEntryTypes].[DrawEntryTypeID]
CREATE TABLE [dbo].[CTDrawEntries]
(
[EntryID] [int] NOT NULL IDENTITY(1, 1),
[CommissionPeriod] [int] NOT NULL,
[EntryTypeID] [int] NOT NULL,
[SalesRepID] [int] NOT NULL,
[Description] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Amount] [money] NOT NULL,
[Active] [bit] NOT NULL CONSTRAINT [DF_CTDrawEntries_Active] DEFAULT ((1)),
[CreatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[UpdaterID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreateDate] [datetime] NOT NULL,
[LastUpdate] [datetime] NOT NULL,
[timestamp] [timestamp] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CTDrawEntries] ADD CONSTRAINT [PK_CTDrawEntries] PRIMARY KEY CLUSTERED  ([EntryID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CTDrawEntries] ADD CONSTRAINT [FK_CTDrawEntries_EntryTypeID_CTDrawEntryTypes] FOREIGN KEY ([EntryTypeID]) REFERENCES [dbo].[CTDrawEntryTypes] ([DrawEntryTypeID])
GO