-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e4c7c1
commit 7f6f74b
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using SQLite; | ||
|
||
namespace Hyperstellar.Sql; | ||
public class Donation(long time, string cocId, int donated, int received) : DbObj<Donation> | ||
{ | ||
[PrimaryKey, NotNull] | ||
public long Time { get; set; } = time; | ||
|
||
[PrimaryKey, NotNull] | ||
public string CocID { get; set; } = cocId; | ||
|
||
[NotNull] | ||
public int Donated { get; set; } = donated; | ||
|
||
[NotNull] | ||
public int Received { get; set; } = received; | ||
|
||
public Donation() : this(0, "", 0, 0) { } | ||
|
||
public Donation(long time, string cocId) : this(time, cocId, 0, 0) { } | ||
Check notice on line 20 in Bot/Sql/Donation.cs GitHub Actions / inspect
|
||
} |