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

29 lines
1.1 KiB
MySQL
Raw Normal View History

IF OBJECT_ID(N'[dbo].[Hr_T_Shift]', 'U') IS NULL
BEGIN
CREATE TABLE [dbo].[Hr_T_Shift]
(
[Id] uniqueidentifier NOT NULL DEFAULT NEWID(),
[TenantId] uniqueidentifier NULL,
[Name] nvarchar(64) NOT NULL,
[StartTime] nvarchar(5) NULL,
[EndTime] nvarchar(5) NULL,
[BreakMinutes] int NULL,
[WorkingHours] decimal(5,2) NULL,
[IsNightShift] bit NOT NULL DEFAULT 0,
2026-10-04 21:18:13 +00:00
[LateToleranceMinutes] int NULL,
[EarlyLeaveToleranceMinutes] int 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_Shift] 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