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' -- 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) NOT NULL, [PatientUid] nvarchar(max) ,
[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,
@ -114,7 +114,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) NOT NULL, [DoctorUid] nvarchar(max) ,
[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,
@ -125,7 +125,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) NOT NULL, [OriginUid] nvarchar(max) ,
[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,
@ -136,7 +136,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) NOT NULL, [ExamUid] nvarchar(max) ,
[DoctorId] int NOT NULL, [DoctorId] int NOT NULL,
[PatientId] int NOT NULL, [PatientId] int NOT NULL,
[ResultId] int NOT NULL [ResultId] int NOT NULL
@ -146,7 +146,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) NOT NULL, [ResultUid] nvarchar(max) ,
[Name] nvarchar(max) NOT NULL, [Name] nvarchar(max) NOT NULL,
); );
GO GO
@ -154,7 +154,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) NOT NULL, [Origin_ExamUid] nvarchar(max) ,
[OriginId] int NOT NULL, [OriginId] int NOT NULL,
[ExamId] int NOT NULL [ExamId] int NOT NULL
); );