USE DevDb; GO IF OBJECT_ID('dbo.Customer', 'U') IS NULL BEGIN CREATE TABLE dbo.Customer( CustomerId int IDENTITY(1,1) NOT NULL PRIMARY KEY, Name nvarchar(200) NOT NULL, CreatedAt datetime2 NOT NULL CONSTRAINT DF_Customer_CreatedAt DEFAULT (sysutcdatetime()) ); END GO