set Uid's to Null accepted.

This commit is contained in:
Ivan Hörler 2018-07-25 19:44:56 +02:00
parent 5ca4544e15
commit f07c311cdf
1 changed files with 6 additions and 6 deletions

View File

@ -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) NOT NULL,
[PatientUid] nvarchar(max) ,
[FirstName] nvarchar(max) NOT NULL,
[LastName] nvarchar(max) NOT NULL,
[BirthDate] datetime NOT NULL,
@ -114,7 +114,7 @@ GO
-- Creating table 'Doctor'
CREATE TABLE [dbo].[Doctor] (
[DoctorId] int IDENTITY(1,1) NOT NULL,
[DoctorUid] nvarchar(max) NOT NULL,
[DoctorUid] nvarchar(max) ,
[FirstName] nvarchar(max) NOT NULL,
[LastName] nvarchar(max) NOT NULL,
[DoctorOrigin] nvarchar(max) NOT NULL,
@ -125,7 +125,7 @@ GO
-- Creating table 'Origin'
CREATE TABLE [dbo].[Origin] (
[OriginId] int IDENTITY(1,1) NOT NULL,
[OriginUid] nvarchar(max) NOT NULL,
[OriginUid] nvarchar(max) ,
[Name] nvarchar(max) NOT NULL,
[Food] nvarchar(max) NOT NULL,
[Street] nvarchar(max) NOT NULL,
@ -136,7 +136,7 @@ GO
-- Creating table 'Exam'
CREATE TABLE [dbo].[Exam] (
[ExamId] int IDENTITY(1,1) NOT NULL,
[ExamUid] nvarchar(max) NOT NULL,
[ExamUid] nvarchar(max) ,
[DoctorId] int NOT NULL,
[PatientId] int NOT NULL,
[ResultId] int NOT NULL
@ -146,7 +146,7 @@ GO
-- Creating table 'Result'
CREATE TABLE [dbo].[Result] (
[ResultId] int IDENTITY(1,1) NOT NULL,
[ResultUid] nvarchar(max) NOT NULL,
[ResultUid] nvarchar(max) ,
[Name] nvarchar(max) NOT NULL,
);
GO
@ -154,7 +154,7 @@ GO
-- Creating table 'Origin_Exam'
CREATE TABLE [dbo].[Origin_Exam] (
[Origin_ExamId] int IDENTITY(1,1) NOT NULL,
[Origin_ExamUid] nvarchar(max) NOT NULL,
[Origin_ExamUid] nvarchar(max) ,
[OriginId] int NOT NULL,
[ExamId] int NOT NULL
);