-- Dt_MESDeviceConfig SQL Script
-- 对应实体 Dt_MESDeviceConfig，继承自 BaseEntity（包含 Creater, CreateDate, Modifier, ModifyDate）
DROP TABLE IF EXISTS Dt_MESDeviceConfig;

CREATE TABLE Dt_MESDeviceConfig (
    Id INT IDENTITY(1,1) PRIMARY KEY,
    DeviceName NVARCHAR(50) NOT NULL,
    EquipmentCode NVARCHAR(50) NOT NULL,
    ResourceCode NVARCHAR(50) NOT NULL,
    Token NVARCHAR(500) NOT NULL,
    WarehouseCode NVARCHAR(50) NULL,
    Creater NVARCHAR(50) NOT NULL,
    CreateDate DATETIME NOT NULL,
    Modifier NVARCHAR(50) NULL,
    ModifyDate DATETIME NULL
);

-- INSERT device configuration data
INSERT INTO Dt_MESDeviceConfig (DeviceName, EquipmentCode, ResourceCode, Token, WarehouseCode, Creater, CreateDate)
VALUES
(N'注液组盘机械手', N'A02-YZHJJS-001', N'ZY25091001', N'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEwODkyNjQ4MzYzODUzODI0MCIsIm5hbWUiOiLkuIDms6jlkI7mnLrmorDmiYsiLCJGYWN0b3J5SWQiOiI0Mjg3NDU2MTc3ODI1MzgyNCIsIlNpdGVJZCI6IjQyODc0NTYxNzc4MjUzODI0IiwiQ29kZSI6IkEwMi1ZWkhKSlMtMDAxIiwibmJmIjoxNzc2NDExODk0LCJleHAiOjIyMTc5MTU4OTQsImlzcyI6Imh0dHBzOi8vd3d3Lmh5bXNvbi5jb20iLCJhdWQiOiJodHRwczovL3d3dy5oeW1zb24uY29tIn0.HCBK-mq7zrbn6s335Ddn1ZwUffCXdFAmflgHFtOyOXg', NULL, N'Admin', GETDATE()),
(N'高温1换盘机械手', N'A02-GW1HJJS-001', N'ZY25091002', N'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEwODkyNjUxOTA3NDExNTU4NCIsIm5hbWUiOiLpq5jmuKkx5ZCO5py65qKw5omLIiwiRmFj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