26 lines
No EOL
1.1 KiB
Transact-SQL
26 lines
No EOL
1.1 KiB
Transact-SQL
IF OBJECT_ID(N'[dbo].[Prd_T_OperationInstruction]', 'U') IS NULL
|
|
BEGIN
|
|
CREATE TABLE [dbo].[Prd_T_OperationInstruction]
|
|
(
|
|
[Id] uniqueidentifier NOT NULL DEFAULT NEWID(),
|
|
[TenantId] uniqueidentifier NULL,
|
|
[OperationId] uniqueidentifier NOT NULL,
|
|
[Title] nvarchar(256) NOT NULL,
|
|
[InstructionType] nvarchar(16) NOT NULL DEFAULT 'Text',
|
|
[Reference] nvarchar(1000) NULL,
|
|
[Note] nvarchar(MAX) NULL,
|
|
[SortOrder] int NOT NULL DEFAULT 0,
|
|
[CreationTime] datetime2 NOT NULL DEFAULT GETUTCDATE(),
|
|
[CreatorId] uniqueidentifier NULL,
|
|
[LastModificationTime] datetime2 NULL,
|
|
[LastModifierId] uniqueidentifier NULL,
|
|
[IsDeleted] bit NOT NULL DEFAULT 0,
|
|
[DeletionTime] datetime2 NULL,
|
|
[DeleterId] uniqueidentifier NULL,
|
|
CONSTRAINT [PK_Prd_T_OperationInstruction] PRIMARY KEY NONCLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
END
|
|
GO |