Tables [dbo].[StoragePaymentTransactionTracking]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created7:36:13 PM Thursday, August 29, 2024
Last Modified7:36:13 PM Thursday, August 29, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_StoragePaymentTransactionTracking: StoragePaymentTransactionTrackingIDStoragePaymentTransactionTrackingIDint4
No
1 - 1
Foreign Keys FK_StoragePaymentTransactionTracking_Storage: [dbo].[Storage].StorageFIDIndexes IX_StoragePaymentTransactionTracking_Storage: StorageFID\InstrumentFIDStorageFIDint4
No
Foreign Keys FK_StoragePaymentTransactionTracking_Instrument: [dbo].[PlasticInstrument].InstrumentFIDIndexes IX_StoragePaymentTransactionTracking_Instrument: InstrumentFIDIndexes IX_StoragePaymentTransactionTracking_Storage: StorageFID\InstrumentFIDInstrumentFIDint4
No
FirstTransactionIDnvarchar(64)128
No
FirstTransactionUtcDatedatetime8
No
LastTransactionIDnvarchar(64)128
No
LastTransactionUtcDatedatetime8
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_StoragePaymentTransactionTracking: StoragePaymentTransactionTrackingIDPK_StoragePaymentTransactionTrackingStoragePaymentTransactionTrackingID
Yes
IX_StoragePaymentTransactionTracking_StorageStorageFID, InstrumentFID
Yes
IX_StoragePaymentTransactionTracking_InstrumentInstrumentFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_StoragePaymentTransactionTracking_InstrumentInstrumentFID->[dbo].[PlasticInstrument].[InstrumentID]
FK_StoragePaymentTransactionTracking_StorageCascadeStorageFID->[dbo].[Storage].[StoragePriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[StoragePaymentTransactionTracking]
(
[StoragePaymentTransactionTrackingID] [int] NOT NULL IDENTITY(1, 1),
[StorageFID] [int] NOT NULL,
[InstrumentFID] [int] NOT NULL,
[FirstTransactionID] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[FirstTransactionUtcDate] [datetime] NOT NULL,
[LastTransactionID] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[LastTransactionUtcDate] [datetime] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StoragePaymentTransactionTracking] ADD CONSTRAINT [PK_StoragePaymentTransactionTracking] PRIMARY KEY NONCLUSTERED  ([StoragePaymentTransactionTrackingID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StoragePaymentTransactionTracking_Instrument] ON [dbo].[StoragePaymentTransactionTracking] ([InstrumentFID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_StoragePaymentTransactionTracking_Storage] ON [dbo].[StoragePaymentTransactionTracking] ([StorageFID], [InstrumentFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StoragePaymentTransactionTracking] ADD CONSTRAINT [FK_StoragePaymentTransactionTracking_Instrument] FOREIGN KEY ([InstrumentFID]) REFERENCES [dbo].[PlasticInstrument] ([InstrumentID])
GO
ALTER TABLE [dbo].[StoragePaymentTransactionTracking] ADD CONSTRAINT [FK_StoragePaymentTransactionTracking_Storage] FOREIGN KEY ([StorageFID]) REFERENCES [dbo].[Storage] ([StoragePriKey]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[StoragePaymentTransactionTracking] TO [MssExec]
GRANT INSERT ON  [dbo].[StoragePaymentTransactionTracking] TO [MssExec]
GRANT DELETE ON  [dbo].[StoragePaymentTransactionTracking] TO [MssExec]
GRANT UPDATE ON  [dbo].[StoragePaymentTransactionTracking] TO [MssExec]
GO
Uses
Used By