Tables [dbo].[AdvanceUserAccount]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created5:00:23 PM Monday, April 21, 2008
Last Modified8:47:30 AM Thursday, December 5, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_AdvanceUserAccount: AdvanceUserAccountIDAdvanceUserAccountIDint4
No
1 - 1
Foreign Keys FK_AdvanceUserAccount_Sysuser: [dbo].[Sysuser].SysuserFIDIndexes IX_AdvanceUserAccount_SysuserFID_AdvanceBankingServiceProviderTypeFID: SysuserFID\AdvanceBankingServiceProviderTypeFIDSysuserFIDint4
No
AccountNumbervarchar(16)16
No
AccountIDvarchar(16)16
No
Foreign Keys FK_AdvanceUserAccount_AdvanceBankingServiceProviderType: [dbo].[AdvanceBankingServiceProviderType].AdvanceBankingServiceProviderTypeFIDIndexes IX_AdvanceUserAccount_SysuserFID_AdvanceBankingServiceProviderTypeFID: SysuserFID\AdvanceBankingServiceProviderTypeFIDAdvanceBankingServiceProviderTypeFIDint4
Yes
CardNumbervarchar(16)16
Yes
DirectDepositbit1
No
((0))
ChargeAdvanceFeebit1
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_AdvanceUserAccount: AdvanceUserAccountIDPK_AdvanceUserAccountAdvanceUserAccountID
Yes
80
IX_AdvanceUserAccount_SysuserFID_AdvanceBankingServiceProviderTypeFIDSysuserFID, AdvanceBankingServiceProviderTypeFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_AdvanceUserAccount_AdvanceBankingServiceProviderTypeAdvanceBankingServiceProviderTypeFID->[dbo].[AdvanceBankingServiceProviderType].[AdvanceBankingServiceProviderTypeID]
FK_AdvanceUserAccount_SysuserSysuserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[AdvanceUserAccount]
(
[AdvanceUserAccountID] [int] NOT NULL IDENTITY(1, 1),
[SysuserFID] [int] NOT NULL,
[AccountNumber] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[AccountID] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[AdvanceBankingServiceProviderTypeFID] [int] NULL,
[CardNumber] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DirectDeposit] [bit] NOT NULL CONSTRAINT [DF_AdvanceUserAccount_DirectDeposit] DEFAULT ((0)),
[ChargeAdvanceFee] [bit] NOT NULL CONSTRAINT [DF_AdvanceUserAccount_ChargeAdvanceFee] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AdvanceUserAccount] ADD CONSTRAINT [PK_AdvanceUserAccount] PRIMARY KEY CLUSTERED  ([AdvanceUserAccountID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_AdvanceUserAccount_SysuserFID_AdvanceBankingServiceProviderTypeFID] ON [dbo].[AdvanceUserAccount] ([SysuserFID], [AdvanceBankingServiceProviderTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AdvanceUserAccount] ADD CONSTRAINT [FK_AdvanceUserAccount_AdvanceBankingServiceProviderType] FOREIGN KEY ([AdvanceBankingServiceProviderTypeFID]) REFERENCES [dbo].[AdvanceBankingServiceProviderType] ([AdvanceBankingServiceProviderTypeID])
GO
ALTER TABLE [dbo].[AdvanceUserAccount] ADD CONSTRAINT [FK_AdvanceUserAccount_Sysuser] FOREIGN KEY ([SysuserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[AdvanceUserAccount] TO [MssExec]
GRANT INSERT ON  [dbo].[AdvanceUserAccount] TO [MssExec]
GRANT DELETE ON  [dbo].[AdvanceUserAccount] TO [MssExec]
GRANT UPDATE ON  [dbo].[AdvanceUserAccount] TO [MssExec]
GO
Uses