CREATE TABLE [dbo].[Case] (
[CaseKey] INT IDENTITY (1, 1) NOT NULL,//อยาก Select ใส่ TextBox
[CaseName] NVARCHAR (200) NOT NULL,
[CaseDetail] NVARCHAR (MAX) NOT NULL,
[CaseDT] DATE NULL,
[CaseStatusKey] INT NOT NULL,
[Requester] NVARCHAR (100) NOT NULL,
[UsrKey] INT NOT NULL,
[CaseTypeKey] INT NOT NULL,
[CaseCode] NVARCHAR (20) NOT NULL,
CONSTRAINT [PK_Case] PRIMARY KEY CLUSTERED ([CaseKey] ASC),
CONSTRAINT [FK_Case_Case] FOREIGN KEY ([CaseKey]) REFERENCES [dbo].[Case] ([CaseKey])
);