From 971348764ec1f96c2dd8eb00543b0996d87ec4b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ho=CC=88rler?= Date: Sun, 29 Jul 2018 09:57:03 +0200 Subject: [PATCH] Set all Uid's to NOT NULL --- SQL/EHEC_DB_Query.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SQL/EHEC_DB_Query.sql b/SQL/EHEC_DB_Query.sql index f899dba..aa13d4d 100644 --- a/SQL/EHEC_DB_Query.sql +++ b/SQL/EHEC_DB_Query.sql @@ -101,7 +101,7 @@ PRINT 'Creating all TABLES'; -- Creating table 'Patient' CREATE TABLE [dbo].[Patient] ( [PatientId] int IDENTITY(1,1) NOT NULL, - [PatientUid] nvarchar(max) , + [PatientUid] nvarchar(max) NOT NULL, [FirstName] nvarchar(max) NOT NULL, [LastName] nvarchar(max) NOT NULL, [BirthDate] datetime NOT NULL, @@ -116,7 +116,7 @@ GO -- Creating table 'Doctor' CREATE TABLE [dbo].[Doctor] ( [DoctorId] int IDENTITY(1,1) NOT NULL, - [DoctorUid] nvarchar(max) , + [DoctorUid] nvarchar(max) NOT NULL, [FirstName] nvarchar(max) NOT NULL, [LastName] nvarchar(max) NOT NULL, [DoctorOrigin] nvarchar(max) NOT NULL, @@ -129,7 +129,7 @@ GO -- Creating table 'Origin' CREATE TABLE [dbo].[Origin] ( [OriginId] int IDENTITY(1,1) NOT NULL, - [OriginUid] nvarchar(max) , + [OriginUid] nvarchar(max) NOT NULL, [Name] nvarchar(max) NOT NULL, [Food] nvarchar(max) NOT NULL, [Street] nvarchar(max) NOT NULL, @@ -142,7 +142,7 @@ GO -- Creating table 'Result' CREATE TABLE [dbo].[Result] ( [ResultId] int IDENTITY(1,1) NOT NULL, - [ResultUid] nvarchar(max) , + [ResultUid] nvarchar(max) NOT NULL, [Name] nvarchar(max) NOT NULL, CONSTRAINT [PK_Result] PRIMARY KEY CLUSTERED ([ResultId] ASC) @@ -152,7 +152,7 @@ GO -- Creating table 'Exam' CREATE TABLE [dbo].[Exam] ( [ExamId] int IDENTITY(1,1) NOT NULL, - [ExamUid] nvarchar(max) , + [ExamUid] nvarchar(max) NOT NULL, [DoctorId] int NOT NULL, [PatientId] int NOT NULL, [ResultId] int NOT NULL, @@ -176,7 +176,7 @@ GO -- Creating table 'Origin_Exam' CREATE TABLE [dbo].[Origin_Exam] ( [Origin_ExamId] int IDENTITY(1,1) NOT NULL, - [Origin_ExamUid] nvarchar(max) , + [Origin_ExamUid] nvarchar(max) NOT NULL, [OriginId] int NOT NULL, [ExamId] int NOT NULL, CONSTRAINT [PK_Origin_Exam]