Skip to content

Commit

Permalink
Fix missing BucketVersion for System Buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAxelander committed Nov 11, 2023
1 parent 24958a4 commit 6669d1e
Show file tree
Hide file tree
Showing 17 changed files with 1,816 additions and 210 deletions.
2 changes: 1 addition & 1 deletion OpenBudgeteer.Core.Data.Entities/Models/Account.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class Account : IEntity
[Key, Column("AccountId")]
public Guid Id { get; set; }

public string Name { get; set; } = string.Empty;
public string? Name { get; set; }

public int IsActive { get; set; }
}
2 changes: 1 addition & 1 deletion OpenBudgeteer.Core.Data.Entities/Models/Bucket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class Bucket : IEntity
[Key, Column("BucketId")]
public Guid Id { get; set; }

public string Name { get; set; } = string.Empty;
public string? Name { get; set; }

[Required]
public Guid BucketGroupId { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion OpenBudgeteer.Core.Data.Entities/Models/BucketGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class BucketGroup : IEntity
[Key, Column("BucketGroupId")]
public Guid Id { get; set; }

public string Name { get; set; } = string.Empty;
public string? Name { get; set; }

[Required]
public int Position { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion OpenBudgeteer.Core.Data.Entities/Models/BucketRuleSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class BucketRuleSet : IEntity
[Required]
public int Priority { get; set; }

public string Name { get; set; } = string.Empty;
public string? Name { get; set; }

[Required]
public Guid TargetBucketId { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion OpenBudgeteer.Core.Data.Entities/Models/BucketVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class BucketVersion : IEntity
public int Version { get; set; }

[Required]
public int BucketType{ get; set; }
public int BucketType { get; set; }

public int BucketTypeXParam { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion OpenBudgeteer.Core.Data.Entities/Models/ImportProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class ImportProfile : IEntity
[Key, Column("ImportProfileId")]
public Guid Id { get; set; }

public string ProfileName { get; set; } = string.Empty;
public string? ProfileName { get; set; }

public Guid AccountId { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion OpenBudgeteer.Core.Data.Entities/Models/MappingRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ public string ComparisionTypeOutput
}

[Required]
public string ComparisionValue { get; set; } = string.Empty;
public string ComparisionValue { get; set; } = null!;
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public class RecurringBankTransaction: IEntity

public DateTime FirstOccurrenceDate { get; set; }

public string Payee { get; set; } = string.Empty;
public string? Payee { get; set; }

public string Memo { get; set; } = string.Empty;
public string? Memo { get; set; }

[Column(TypeName = "decimal(65, 2)")]
public decimal Amount { get; set; }
Expand Down
Loading

0 comments on commit 6669d1e

Please sign in to comment.