Tables [dbo].[EqType]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)11
Created4:57:07 PM Thursday, September 7, 2006
Last Modified7:41:17 PM Wednesday, February 28, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_EqType: TypeNumberTypeNumberint4
No
1 - 1
Typevarchar(20)20
No
Foreign Keys FK_EqType_ItemCode: [dbo].[ItemCode].ICPriKeyICPriKeyint4
Yes
AverageCostdecimal(14,4)9
Yes
DispatchByQuantitybit1
No
((0))
Foreign Keys FK_EqType_CapacityBucket: [dbo].[CapacityBucket].CapacityBucketFIDIndexes IX_EqType_CapacityBucketFID: CapacityBucketFIDCapacityBucketFIDint4
Yes
HoursAvailableDailyint4
Yes
AutoDispatchQuantitybit1
No
((0))
Inactivebit1
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_EqType: TypeNumberPK_EqTypeTypeNumber
Yes
80
IX_EqType_CapacityBucketFIDCapacityBucketFID
Foreign Keys Foreign Keys
NameColumns
FK_EqType_CapacityBucketCapacityBucketFID->[dbo].[CapacityBucket].[CapacityBucketID]
FK_EqType_ItemCodeICPriKey->[dbo].[ItemCode].[ICPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[EqType]
(
[TypeNumber] [int] NOT NULL IDENTITY(1, 1),
[Type] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ICPriKey] [int] NULL,
[AverageCost] [decimal] (14, 4) NULL,
[DispatchByQuantity] [bit] NOT NULL CONSTRAINT [DF_EqType_DispatchByQuantity] DEFAULT ((0)),
[CapacityBucketFID] [int] NULL,
[HoursAvailableDaily] [int] NULL,
[AutoDispatchQuantity] [bit] NOT NULL CONSTRAINT [DF_EqType_AutoDispatchQuantity] DEFAULT ((0)),
[Inactive] [bit] NOT NULL CONSTRAINT [DF_EqType_Inactive] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[EqType] ADD CONSTRAINT [PK_EqType] PRIMARY KEY CLUSTERED  ([TypeNumber]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_EqType_CapacityBucketFID] ON [dbo].[EqType] ([CapacityBucketFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[EqType] ADD CONSTRAINT [FK_EqType_CapacityBucket] FOREIGN KEY ([CapacityBucketFID]) REFERENCES [dbo].[CapacityBucket] ([CapacityBucketID])
GO
ALTER TABLE [dbo].[EqType] ADD CONSTRAINT [FK_EqType_ItemCode] FOREIGN KEY ([ICPriKey]) REFERENCES [dbo].[ItemCode] ([ICPriKey])
GO
GRANT SELECT ON  [dbo].[EqType] TO [MssExec]
GRANT INSERT ON  [dbo].[EqType] TO [MssExec]
GRANT DELETE ON  [dbo].[EqType] TO [MssExec]
GRANT UPDATE ON  [dbo].[EqType] TO [MssExec]
GO
Uses
Used By