

PRINT N'Creating [dbo].[WASExemption] if missing...';
GO
IF OBJECT_ID(N'dbo.WASExemption', N'U') IS NULL
BEGIN
    CREATE TABLE [dbo].[WASExemption] (
        [Id] UNIQUEIDENTIFIER NOT NULL,
        [IMO] NCHAR (7) NOT NULL,
        [ShipName] NVARCHAR (100) NULL,
        [Port] NCHAR (5) NOT NULL,
        [ValidUntil] DATETIME NOT NULL,
        [Remarks] NVARCHAR (255) NULL,
        PRIMARY KEY CLUSTERED ([Id] ASC)
    );
    PRINT N'Table [dbo].[WASExemption] created.';
END
GO
