52 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System.ComponentModel.DataAnnotations;
 | |
| using System.ComponentModel.DataAnnotations.Schema;
 | |
| using NodaTime;
 | |
| 
 | |
| namespace DysonNetwork.Sphere.Account;
 | |
| 
 | |
| public enum StatusAttitude
 | |
| {
 | |
|     Positive,
 | |
|     Negative,
 | |
|     Neutral
 | |
| }
 | |
| 
 | |
| public class Status : ModelBase
 | |
| {
 | |
|     public Guid Id { get; set; } = Guid.NewGuid();
 | |
|     public StatusAttitude Attitude { get; set; }
 | |
|     [NotMapped] public bool IsOnline { get; set; }
 | |
|     public bool IsInvisible { get; set; }
 | |
|     public bool IsNotDisturb { get; set; }
 | |
|     [MaxLength(1024)] public string? Label { get; set; }
 | |
|     public Instant? ClearedAt { get; set; }
 | |
|     
 | |
|     public long AccountId { get; set; }
 | |
|     public Account Account { get; set; } = null!;
 | |
| }
 | |
| 
 | |
| public enum CheckInResultLevel
 | |
| {
 | |
|     Worst,
 | |
|     Worse,
 | |
|     Normal,
 | |
|     Better,
 | |
|     Best
 | |
| }
 | |
| 
 | |
| public class CheckInResult : ModelBase
 | |
| {
 | |
|     public Guid Id { get; set; } = Guid.NewGuid();
 | |
|     public CheckInResultLevel Level { get; set; }
 | |
|     [Column(TypeName = "jsonb")] public ICollection<FortuneTip> Tips { get; set; } = new List<FortuneTip>();
 | |
|     
 | |
|     public long AccountId { get; set; }
 | |
|     public Account Account { get; set; } = null!;
 | |
| }
 | |
| 
 | |
| public class FortuneTip
 | |
| {
 | |
|     public bool IsPositive { get; set; }
 | |
|     public string Title { get; set; } = null!;
 | |
|     public string Content { get; set; } = null!;
 | |
| } |