Initial commit: SQL Server 2025 local dev stack
This commit is contained in:
12
db/migrations/2026-01-30_001_create_customer.sql
Normal file
12
db/migrations/2026-01-30_001_create_customer.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user