Skip to content

Commit b534d5d

Browse files
fix: personal privacy levels (#79)
Co-authored-by: RavenTamer <jeremias.furrer@hotmail.com>
1 parent ba7d448 commit b534d5d

15 files changed

Lines changed: 331 additions & 282 deletions

src/backend/Hermes.SituationRoom.Data/Context/HermessituationRoomContext.cs

Lines changed: 164 additions & 164 deletions
Large diffs are not rendered by default.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
using System;
22
using System.Collections.Generic;
3-
3+
44
namespace Hermes.SituationRoom.Data.Entities;
55

66
public partial class Activist
77
{
88
public Guid UserUid { get; set; }
9-
9+
1010
public string Username { get; set; }
11-
11+
1212
public bool IsFirstNameVisible { get; set; }
13-
13+
1414
public bool IsLastNameVisible { get; set; }
15-
15+
1616
public bool IsEmailVisible { get; set; }
17-
17+
1818
public virtual User UserU { get; set; }
1919
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
using System;
22
using System.Collections.Generic;
3-
3+
44
namespace Hermes.SituationRoom.Data.Entities;
55

66
public partial class Chat
77
{
88
public Guid Uid { get; set; }
9-
9+
1010
public Guid User1Uid { get; set; }
11-
11+
1212
public Guid User2Uid { get; set; }
13-
13+
1414
public virtual ICollection<Message> Messages { get; set; } = new List<Message>();
15-
15+
1616
public virtual User User1U { get; set; }
17-
17+
1818
public virtual User User2U { get; set; }
19-
19+
2020
public virtual ICollection<UserChatReadStatus> UserChatReadStatuses { get; set; } = new List<UserChatReadStatus>();
2121
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
using System;
22
using System.Collections.Generic;
3-
3+
44
namespace Hermes.SituationRoom.Data.Entities;
55

66
public partial class Comment
77
{
88
public Guid Uid { get; set; }
9-
9+
1010
public DateTime Timestamp { get; set; }
11-
11+
1212
public string Content { get; set; }
13-
13+
1414
public Guid CreatorUid { get; set; }
15-
15+
1616
public Guid PostUid { get; set; }
17-
17+
1818
public virtual User CreatorU { get; set; }
19-
19+
2020
public virtual Post PostU { get; set; }
2121
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
using System;
22
using System.Collections.Generic;
3-
3+
44
namespace Hermes.SituationRoom.Data.Entities;
55

66
public partial class Journalist
77
{
88
public Guid UserUid { get; set; }
9-
9+
1010
public string Employer { get; set; }
11-
11+
1212
public virtual User UserU { get; set; }
1313
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
using System;
22
using System.Collections.Generic;
3-
3+
44
namespace Hermes.SituationRoom.Data.Entities;
55

66
public partial class Message
77
{
88
public Guid Uid { get; set; }
9-
9+
1010
public DateTime Timestamp { get; set; }
11-
11+
1212
public string Content { get; set; }
13-
13+
1414
public Guid SenderUid { get; set; }
15-
15+
1616
public Guid ChatUid { get; set; }
17-
17+
1818
public virtual Chat ChatU { get; set; }
19-
19+
2020
public virtual User SenderU { get; set; }
2121
}
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
using System;
2-
using System.Collections.Generic;
1+
using System;
2+
using System.Collections.Generic;
33

4-
namespace Hermes.SituationRoom.Data.Entities;
4+
namespace Hermes.SituationRoom.Data.Entities;
5+
6+
public partial class Post
7+
{
8+
public Guid Uid { get; set; }
59

6-
public partial class Post
7-
{
8-
public Guid Uid { get; set; }
10+
public DateTime Timestamp { get; set; }
911

10-
public DateTime Timestamp { get; set; }
12+
public string Title { get; set; }
1113

12-
public string Title { get; set; }
14+
public string Description { get; set; }
1315

14-
public string Description { get; set; }
16+
public string Content { get; set; }
1517

16-
public string Content { get; set; }
18+
public Guid CreatorUid { get; set; }
1719

18-
public Guid CreatorUid { get; set; }
20+
public int PrivacyLevel { get; set; }
1921

20-
public int PrivacyLevel { get; set; }
22+
public virtual ICollection<Comment> Comments { get; set; } = new List<Comment>();
2123

22-
public virtual ICollection<Comment> Comments { get; set; } = new List<Comment>();
24+
public virtual User CreatorU { get; set; }
2325

24-
public virtual User CreatorU { get; set; }
25-
26-
public virtual ICollection<PostTag> PostTags { get; set; } = new List<PostTag>();
27-
}
26+
public virtual ICollection<PostTag> PostTags { get; set; } = new List<PostTag>();
27+
}
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
using System;
2-
using System.Collections.Generic;
1+
using System;
2+
using System.Collections.Generic;
33

4-
namespace Hermes.SituationRoom.Data.Entities;
4+
namespace Hermes.SituationRoom.Data.Entities;
5+
6+
public partial class PostTag
7+
{
8+
public Guid PostUid { get; set; }
59

6-
public partial class PostTag
7-
{
8-
public Guid PostUid { get; set; }
10+
public string Tag { get; set; }
911

10-
public string Tag { get; set; }
11-
12-
public virtual Post PostU { get; set; }
13-
}
12+
public virtual Post PostU { get; set; }
13+
}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
using System;
22
using System.Collections.Generic;
3-
3+
44
namespace Hermes.SituationRoom.Data.Entities;
55

66
public partial class PrivacyLevelPersonal
77
{
88
public Guid Uid { get; set; }
9-
9+
1010
public bool? IsFirstNameVisible { get; set; }
11-
11+
1212
public bool? IsLastNameVisible { get; set; }
13-
13+
1414
public bool? IsEmailVisible { get; set; }
15-
15+
1616
public Guid OwnerUid { get; set; }
17-
17+
1818
public Guid ConsumerUid { get; set; }
19-
19+
2020
public virtual User ConsumerU { get; set; }
21-
21+
2222
public virtual User OwnerU { get; set; }
2323
}
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
using System;
2-
using System.Collections.Generic;
1+
using System;
2+
using System.Collections.Generic;
33

4-
namespace Hermes.SituationRoom.Data.Entities;
4+
namespace Hermes.SituationRoom.Data.Entities;
5+
6+
public partial class User
7+
{
8+
public Guid Uid { get; set; }
59

6-
public partial class User
7-
{
8-
public Guid Uid { get; set; }
10+
public string FirstName { get; set; }
911

10-
public string FirstName { get; set; }
12+
public string LastName { get; set; }
1113

12-
public string LastName { get; set; }
14+
public string EmailAddress { get; set; }
1315

14-
public string EmailAddress { get; set; }
16+
public byte[] PasswordHash { get; set; }
1517

16-
public byte[] PasswordHash { get; set; }
18+
public byte[] PasswordSalt { get; set; }
1719

18-
public byte[] PasswordSalt { get; set; }
20+
public string ProfileIcon { get; set; }
1921

20-
public string ProfileIcon { get; set; }
22+
public string ProfileIconColor { get; set; }
2123

22-
public string ProfileIconColor { get; set; }
24+
public virtual Activist Activist { get; set; }
2325

24-
public virtual Activist Activist { get; set; }
26+
public virtual ICollection<Chat> ChatUser1Us { get; set; } = new List<Chat>();
2527

26-
public virtual ICollection<Chat> ChatUser1Us { get; set; } = new List<Chat>();
28+
public virtual ICollection<Chat> ChatUser2Us { get; set; } = new List<Chat>();
2729

28-
public virtual ICollection<Chat> ChatUser2Us { get; set; } = new List<Chat>();
30+
public virtual ICollection<Comment> Comments { get; set; } = new List<Comment>();
2931

30-
public virtual ICollection<Comment> Comments { get; set; } = new List<Comment>();
32+
public virtual Journalist Journalist { get; set; }
3133

32-
public virtual Journalist Journalist { get; set; }
34+
public virtual ICollection<Message> Messages { get; set; } = new List<Message>();
3335

34-
public virtual ICollection<Message> Messages { get; set; } = new List<Message>();
36+
public virtual ICollection<Post> Posts { get; set; } = new List<Post>();
3537

36-
public virtual ICollection<Post> Posts { get; set; } = new List<Post>();
38+
public virtual ICollection<PrivacyLevelPersonal> PrivacyLevelPersonalConsumerUs { get; set; } = new List<PrivacyLevelPersonal>();
3739

38-
public virtual ICollection<PrivacyLevelPersonal> PrivacyLevelPersonalConsumerUs { get; set; } = new List<PrivacyLevelPersonal>();
40+
public virtual ICollection<PrivacyLevelPersonal> PrivacyLevelPersonalOwnerUs { get; set; } = new List<PrivacyLevelPersonal>();
3941

40-
public virtual ICollection<PrivacyLevelPersonal> PrivacyLevelPersonalOwnerUs { get; set; } = new List<PrivacyLevelPersonal>();
41-
42-
public virtual ICollection<UserChatReadStatus> UserChatReadStatuses { get; set; } = new List<UserChatReadStatus>();
43-
}
42+
public virtual ICollection<UserChatReadStatus> UserChatReadStatuses { get; set; } = new List<UserChatReadStatus>();
43+
}

0 commit comments

Comments
 (0)