sozsoft-platform/configs/seeds/sql/object/Hr_T_Interview.sql

33 lines
1.4 KiB
MySQL
Raw Permalink Normal View History

2026-10-04 08:14:38 +00:00
IF OBJECT_ID(N'[dbo].[Hr_T_Interview]', 'U') IS NULL
BEGIN
CREATE TABLE [dbo].[Hr_T_Interview]
(
[Id] uniqueidentifier NOT NULL DEFAULT NEWID(),
[TenantId] uniqueidentifier NULL,
[ApplicationId] uniqueidentifier NOT NULL,
[Title] nvarchar(256) NULL,
[InterviewType] nvarchar(32) NOT NULL DEFAULT 'FaceToFace',
[StartDate] datetime NOT NULL,
[EndDate] datetime NOT NULL,
[Location] nvarchar(256) NULL,
[MeetingUrl] nvarchar(512) NULL,
[InterviewerUserId] uniqueidentifier NOT NULL,
[Status] nvarchar(32) NOT NULL DEFAULT 'Planned',
[Recommendation] nvarchar(32) NULL,
[OverallScore] decimal(5,2) NULL,
[Notes] nvarchar(MAX) NULL,
[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_Interview] 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