Tables [dbo].[MaterialType]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)23
Created5:32:54 PM Wednesday, January 2, 2008
Last Modified1:54:58 PM Wednesday, April 10, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_MaterialType: MaterialTypeIDMaterialTypeIDint4
No
1 - 1
Indexes IX_MaterialType_Description: DescriptionDescriptionvarchar(32)32
No
SortOrderint4
Yes
AlwaysDisplayOnWorkTicketFlagbit1
Yes
((0))
ItemCostdecimal(12,2)9
Yes
Foreign Keys FK_LSMaterial_MaterialType: [dbo].[CapacityBucket].CapacityBucketFIDIndexes IX_MaterialType_CapacityBucketFID: CapacityBucketFIDCapacityBucketFIDint4
Yes
Inactivebit1
No
((0))
AvailableToOrderInformationbit1
No
((0))
AvailableToInternationalbit1
No
((0))
AvailableToSpecialServicesbit1
No
((0))
AvailableToOfficeIndustrialbit1
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_MaterialType: MaterialTypeIDPK_MaterialTypeMaterialTypeID
Yes
80
IX_MaterialType_CapacityBucketFIDCapacityBucketFID
IX_MaterialType_DescriptionDescription
Foreign Keys Foreign Keys
NameColumns
FK_LSMaterial_MaterialTypeCapacityBucketFID->[dbo].[CapacityBucket].[CapacityBucketID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[MaterialType]
(
[MaterialTypeID] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SortOrder] [int] NULL,
[AlwaysDisplayOnWorkTicketFlag] [bit] NULL CONSTRAINT [DF_MaterialType_AlwaysDisplayOnWorkTicketFlag] DEFAULT ((0)),
[ItemCost] [decimal] (12, 2) NULL,
[CapacityBucketFID] [int] NULL,
[Inactive] [bit] NOT NULL CONSTRAINT [DF_MaterialType_Inactive] DEFAULT ((0)),
[AvailableToOrderInformation] [bit] NOT NULL CONSTRAINT [DF_MaterialType_AvailableToOrderInformation] DEFAULT ((0)),
[AvailableToInternational] [bit] NOT NULL CONSTRAINT [DF_MaterialType_AvailableToInternational] DEFAULT ((0)),
[AvailableToSpecialServices] [bit] NOT NULL CONSTRAINT [DF_MaterialType_AvailableToSpecialServices] DEFAULT ((0)),
[AvailableToOfficeIndustrial] [bit] NOT NULL CONSTRAINT [DF_MaterialType_AvailableToOfficeIndustrial] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MaterialType] ADD CONSTRAINT [PK_MaterialType] PRIMARY KEY CLUSTERED  ([MaterialTypeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_MaterialType_CapacityBucketFID] ON [dbo].[MaterialType] ([CapacityBucketFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_MaterialType_Description] ON [dbo].[MaterialType] ([Description]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MaterialType] ADD CONSTRAINT [FK_LSMaterial_MaterialType] FOREIGN KEY ([CapacityBucketFID]) REFERENCES [dbo].[CapacityBucket] ([CapacityBucketID])
GO
GRANT SELECT ON  [dbo].[MaterialType] TO [MssExec]
GRANT INSERT ON  [dbo].[MaterialType] TO [MssExec]
GRANT DELETE ON  [dbo].[MaterialType] TO [MssExec]
GRANT UPDATE ON  [dbo].[MaterialType] TO [MssExec]
GO
Uses
Used By