Tables [dbo].[SOOrderTypes]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created1:00:49 AM Thursday, March 21, 2019
Last Modified1:16:09 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_SOOrderTypes: OrderTypeIDOrderTypeIDint4
False
100 - 1
OrderTypevarchar(15)15
False
Descriptionvarchar(50)50
False
Activebit1
False
((1))
CreatorIDchar(8)8
False
UpdatorIDchar(8)8
False
CreateDatedatetime8
False
(getdate())
LastUpdatedatetime8
False
(getdate())
AllowFulfillingbit1
False
((1))
Foreign Keys FK_SOOrderTypes_OrderTypeCategoryID_SOOrderTypeCategories: [dbo].[SOOrderTypeCategories].OrderTypeCategoryIDOrderTypeCategoryIDint4
False
((1))
IsSystemTypebit1
False
((0))
BaseTypeIDint4
False
AllowPrebillingbit1
False
((1))
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_SOOrderTypes: OrderTypeIDPK_SOOrderTypesOrderTypeID
True
80
NameColumns
FK_SOOrderTypes_OrderTypeCategoryID_SOOrderTypeCategoriesOrderTypeCategoryID->[dbo].[SOOrderTypeCategories].[OrderTypeCategoryID]
CREATE TABLE [dbo].[SOOrderTypes]
(
[OrderTypeID] [int] NOT NULL IDENTITY(100, 1),
[OrderType] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Description] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Active] [bit] NOT NULL CONSTRAINT [DF_SOOrderTypes_Active] DEFAULT ((1)),
[CreatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[UpdatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_SOOrderTypes_CreateDate] DEFAULT (getdate()),
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_SOOrderTypes_LastUpdate] DEFAULT (getdate()),
[AllowFulfilling] [bit] NOT NULL CONSTRAINT [DF_SOOrderTypes_AllowFulfilling] DEFAULT ((1)),
[OrderTypeCategoryID] [int] NOT NULL CONSTRAINT [DF_SOOrderTypes_OrderTypeCategoryID] DEFAULT ((1)),
[IsSystemType] [bit] NOT NULL CONSTRAINT [DF_SOOrderTypes_IsSystemType] DEFAULT ((0)),
[BaseTypeID] [int] NOT NULL,
[AllowPrebilling] [bit] NOT NULL CONSTRAINT [DF_SOOrderTypes_AllowPrebilling] DEFAULT ((1))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SOOrderTypes] ADD CONSTRAINT [PK_SOOrderTypes] PRIMARY KEY CLUSTERED  ([OrderTypeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SOOrderTypes] ADD CONSTRAINT [FK_SOOrderTypes_OrderTypeCategoryID_SOOrderTypeCategories] FOREIGN KEY ([OrderTypeCategoryID]) REFERENCES [dbo].[SOOrderTypeCategories] ([OrderTypeCategoryID])
GO