Tables [dbo].[FactoringBatch]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created7:28:06 PM Thursday, August 29, 2024
Last Modified7:28:09 PM Thursday, August 29, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_FactoringBatch: FactoringBatchIDFactoringBatchIDint4
No
1 - 1
Foreign Keys FK_FactoringBatch_CreatedBy: [dbo].[Sysuser].CreatedByCreatedByint4
No
CreatedDatedatetime8
No
(getdate())
ControlNumberbigint8
Yes
BatchTotalmoney8
No
FolderNamevarchar(255)255
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_FactoringBatch: FactoringBatchIDPK_FactoringBatchFactoringBatchID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_FactoringBatch_CreatedByCreatedBy->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[FactoringBatch]
(
[FactoringBatchID] [int] NOT NULL IDENTITY(1, 1),
[CreatedBy] [int] NOT NULL,
[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_FactoringBatch_CreatedDate] DEFAULT (getdate()),
[ControlNumber] [bigint] NULL,
[BatchTotal] [money] NOT NULL,
[FolderName] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[FactoringBatch] ADD CONSTRAINT [PK_FactoringBatch] PRIMARY KEY NONCLUSTERED  ([FactoringBatchID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[FactoringBatch] ADD CONSTRAINT [FK_FactoringBatch_CreatedBy] FOREIGN KEY ([CreatedBy]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[FactoringBatch] TO [MssExec]
GRANT INSERT ON  [dbo].[FactoringBatch] TO [MssExec]
GRANT DELETE ON  [dbo].[FactoringBatch] TO [MssExec]
GRANT UPDATE ON  [dbo].[FactoringBatch] TO [MssExec]
GO
Uses
Used By