-
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
2109fee
commit fe8c39d
Showing
7 changed files
with
77 additions
and
40 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
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,19 @@ | ||
using SQLite; | ||
|
||
namespace Hyperstellar.Sql; | ||
internal class Alt | ||
Check warning on line 4 in Bot/Sql/Alt.cs GitHub Actions / inspect
|
||
{ | ||
[PrimaryKey, NotNull] | ||
public string AltId { get; set; } | ||
|
||
[NotNull] | ||
public string MainId { get; set; } | ||
|
||
public Alt() => AltId = MainId = ""; | ||
|
||
public Alt(string altId, string mainId) | ||
{ | ||
AltId = altId; | ||
MainId = mainId; | ||
} | ||
} |
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,8 @@ | ||
namespace Hyperstellar.Sql; | ||
|
||
internal class Member | ||
Check warning on line 3 in Bot/Sql/Member.cs GitHub Actions / inspect
Check warning on line 3 in Bot/Sql/Member.cs GitHub Actions / build
|
||
{ | ||
internal string Id { get; set; } | ||
|
||
internal Member(string id) => Id = id; | ||
} |
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,25 @@ | ||
using SQLite; | ||
|
||
namespace Hyperstellar.Sql; | ||
internal class Person | ||
Check warning on line 4 in Bot/Sql/Person.cs GitHub Actions / build
|
||
{ | ||
[PrimaryKey, NotNull] | ||
[Column("CocId")] | ||
public string CocId { get; set; } | ||
[Unique] | ||
public ulong? DiscordId { get; set; } | ||
|
||
public Person() => CocId = ""; | ||
|
||
public Person(string CocId, ulong? DiscordId) | ||
{ | ||
this.CocId = CocId; | ||
this.DiscordId = DiscordId; | ||
} | ||
|
||
public void AddAlt(string altId) | ||
{ | ||
Alt alt = new(altId, CocId); | ||
_ = Db.s_db.Insert(alt); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.