2023-08-22 14:05:26 +00:00
|
|
|
module data.model;
|
|
|
|
|
|
|
|
struct User {
|
|
|
|
string username;
|
|
|
|
string email;
|
|
|
|
string passwordHash;
|
2023-08-24 19:37:25 +00:00
|
|
|
bool admin;
|
2023-08-22 14:05:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
struct NoteList {
|
|
|
|
ulong id;
|
|
|
|
string name;
|
|
|
|
uint ordinality;
|
|
|
|
string description;
|
|
|
|
Note[] notes;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Note {
|
|
|
|
ulong id;
|
|
|
|
ulong noteListId;
|
|
|
|
uint ordinality;
|
|
|
|
string content;
|
|
|
|
}
|