Skip to content

Commit e4afe5d

Browse files
committed
Update generated DB schema
1 parent cbc986c commit e4afe5d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Samples/TardisBank/Database/UnitTestGeneratedSchema.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,29 +62,29 @@ alter table Parents drop constraint FK_Parents_Join_Users
6262

6363
create table Messages (
6464
MessageId INT not null,
65+
UserId INT null,
6566
Date DATETIME2 null,
6667
Text NVARCHAR(255) null,
6768
HasBeenRead BIT null,
68-
UserId INT null,
6969
primary key (MessageId)
7070
)
7171

7272
create table PaymentSchedules (
7373
PaymentScheduleId INT not null,
74+
AccountId INT null,
7475
NextRun DATETIME2 null,
7576
Interval NVARCHAR(255) null,
7677
Amount DECIMAL(19,5) null,
7778
Description NVARCHAR(255) null,
78-
AccountId INT null,
7979
primary key (PaymentScheduleId)
8080
)
8181

8282
create table Transactions (
8383
TransactionId INT not null,
84+
AccountId INT null,
8485
Description NVARCHAR(255) null,
8586
Amount DECIMAL(19,5) null,
8687
Date DATETIME2 null,
87-
AccountId INT null,
8888
primary key (TransactionId)
8989
)
9090

@@ -99,8 +99,8 @@ alter table Parents drop constraint FK_Parents_Join_Users
9999

100100
create table Children (
101101
UserId INT not null,
102-
ParentId INT null,
103102
AccountId INT null,
103+
ParentId INT null,
104104
primary key (UserId)
105105
)
106106

0 commit comments

Comments
 (0)