Set all Uid's to NOT NULL

This commit is contained in:
Ivan Hörler 2018-07-29 09:57:03 +02:00
parent 2ebe968eb6
commit 971348764e
1 changed files with 6 additions and 6 deletions

View File

@ -101,7 +101,7 @@ PRINT 'Creating all TABLES';
-- Creating table 'Patient' -- Creating table 'Patient'
CREATE TABLE [dbo].[Patient] ( CREATE TABLE [dbo].[Patient] (
[PatientId] int IDENTITY(1,1) NOT NULL, [PatientId] int IDENTITY(1,1) NOT NULL,
[PatientUid] nvarchar(max) , [PatientUid] nvarchar(max) NOT NULL,
[FirstName] nvarchar(max) NOT NULL, [FirstName] nvarchar(max) NOT NULL,
[LastName] nvarchar(max) NOT NULL, [LastName] nvarchar(max) NOT NULL,
[BirthDate] datetime NOT NULL, [BirthDate] datetime NOT NULL,
@ -116,7 +116,7 @@ GO
-- Creating table 'Doctor' -- Creating table 'Doctor'
CREATE TABLE [dbo].[Doctor] ( CREATE TABLE [dbo].[Doctor] (
[DoctorId] int IDENTITY(1,1) NOT NULL, [DoctorId] int IDENTITY(1,1) NOT NULL,
[DoctorUid] nvarchar(max) , [DoctorUid] nvarchar(max) NOT NULL,
[FirstName] nvarchar(max) NOT NULL, [FirstName] nvarchar(max) NOT NULL,
[LastName] nvarchar(max) NOT NULL, [LastName] nvarchar(max) NOT NULL,
[DoctorOrigin] nvarchar(max) NOT NULL, [DoctorOrigin] nvarchar(max) NOT NULL,
@ -129,7 +129,7 @@ GO
-- Creating table 'Origin' -- Creating table 'Origin'
CREATE TABLE [dbo].[Origin] ( CREATE TABLE [dbo].[Origin] (
[OriginId] int IDENTITY(1,1) NOT NULL, [OriginId] int IDENTITY(1,1) NOT NULL,
[OriginUid] nvarchar(max) , [OriginUid] nvarchar(max) NOT NULL,
[Name] nvarchar(max) NOT NULL, [Name] nvarchar(max) NOT NULL,
[Food] nvarchar(max) NOT NULL, [Food] nvarchar(max) NOT NULL,
[Street] nvarchar(max) NOT NULL, [Street] nvarchar(max) NOT NULL,
@ -142,7 +142,7 @@ GO
-- Creating table 'Result' -- Creating table 'Result'
CREATE TABLE [dbo].[Result] ( CREATE TABLE [dbo].[Result] (
[ResultId] int IDENTITY(1,1) NOT NULL, [ResultId] int IDENTITY(1,1) NOT NULL,
[ResultUid] nvarchar(max) , [ResultUid] nvarchar(max) NOT NULL,
[Name] nvarchar(max) NOT NULL, [Name] nvarchar(max) NOT NULL,
CONSTRAINT [PK_Result] CONSTRAINT [PK_Result]
PRIMARY KEY CLUSTERED ([ResultId] ASC) PRIMARY KEY CLUSTERED ([ResultId] ASC)
@ -152,7 +152,7 @@ GO
-- Creating table 'Exam' -- Creating table 'Exam'
CREATE TABLE [dbo].[Exam] ( CREATE TABLE [dbo].[Exam] (
[ExamId] int IDENTITY(1,1) NOT NULL, [ExamId] int IDENTITY(1,1) NOT NULL,
[ExamUid] nvarchar(max) , [ExamUid] nvarchar(max) NOT NULL,
[DoctorId] int NOT NULL, [DoctorId] int NOT NULL,
[PatientId] int NOT NULL, [PatientId] int NOT NULL,
[ResultId] int NOT NULL, [ResultId] int NOT NULL,
@ -176,7 +176,7 @@ GO
-- Creating table 'Origin_Exam' -- Creating table 'Origin_Exam'
CREATE TABLE [dbo].[Origin_Exam] ( CREATE TABLE [dbo].[Origin_Exam] (
[Origin_ExamId] int IDENTITY(1,1) NOT NULL, [Origin_ExamId] int IDENTITY(1,1) NOT NULL,
[Origin_ExamUid] nvarchar(max) , [Origin_ExamUid] nvarchar(max) NOT NULL,
[OriginId] int NOT NULL, [OriginId] int NOT NULL,
[ExamId] int NOT NULL, [ExamId] int NOT NULL,
CONSTRAINT [PK_Origin_Exam] CONSTRAINT [PK_Origin_Exam]