Tables [dbo].[BranchPackingCapacity]
Properties
PropertyValue
Row Count (~)0
Created9:42:11 AM Friday, December 7, 2018
Last Modified9:42:33 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_BranchPackingCapacity: BranchPackingCapacityIDBranchPackingCapacityIDint4
No
1 - 1
Foreign Keys FK_BranchPackingCapacity_Branch: [dbo].[Branch].BranchFIDIndexes IX_BranchPackingCapacity_BranchFID: BranchFIDBranchFIDint4
No
Check Constraints CK_BranchPackingCapacity_Capacity : ([Capacity]>(0))Capacityint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_BranchPackingCapacity: BranchPackingCapacityIDPK_BranchPackingCapacityBranchPackingCapacityID
Yes
IX_BranchPackingCapacity_BranchFIDBranchFID
Yes
Check Constraints Check Constraints
NameOn ColumnConstraint
CK_BranchPackingCapacity_CapacityCapacity([Capacity]>(0))
Foreign Keys Foreign Keys
NameColumns
FK_BranchPackingCapacity_BranchBranchFID->[dbo].[Branch].[BranchPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[BranchPackingCapacity]
(
[BranchPackingCapacityID] [int] NOT NULL IDENTITY(1, 1),
[BranchFID] [int] NOT NULL,
[Capacity] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BranchPackingCapacity] ADD CONSTRAINT [CK_BranchPackingCapacity_Capacity] CHECK (([Capacity]>(0)))
GO
ALTER TABLE [dbo].[BranchPackingCapacity] ADD CONSTRAINT [PK_BranchPackingCapacity] PRIMARY KEY CLUSTERED  ([BranchPackingCapacityID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_BranchPackingCapacity_BranchFID] ON [dbo].[BranchPackingCapacity] ([BranchFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BranchPackingCapacity] ADD CONSTRAINT [FK_BranchPackingCapacity_Branch] FOREIGN KEY ([BranchFID]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
GRANT SELECT ON  [dbo].[BranchPackingCapacity] TO [MssExec]
GRANT INSERT ON  [dbo].[BranchPackingCapacity] TO [MssExec]
GRANT DELETE ON  [dbo].[BranchPackingCapacity] TO [MssExec]
GRANT UPDATE ON  [dbo].[BranchPackingCapacity] TO [MssExec]
GO
Uses