Tables [dbo].[FactoringBatch]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created8:56:53 AM Friday, November 22, 2024
Last Modified8:56:57 AM Friday, November 22, 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