sozsoft-platform/configs/seeds/host/sql/object/Hr_T_TrainingSubject.sql

24 lines
1,014 B
MySQL
Raw Normal View History

2026-10-02 06:07:01 +00:00
IF OBJECT_ID(N'[dbo].[Hr_T_TrainingSubject]', 'U') IS NULL
BEGIN
CREATE TABLE [dbo].[Hr_T_TrainingSubject]
(
[Id] uniqueidentifier NOT NULL DEFAULT NEWID(),
[TenantId] uniqueidentifier NULL,
[TrainingTypeId] uniqueidentifier NOT NULL,
[Name] nvarchar(256) NOT NULL,
[IsEvaluated] bit NOT NULL DEFAULT 1,
[IsActive] bit NOT NULL DEFAULT 1,
[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_Hr_T_TrainingSubject] 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