litelist/litelist-api/source/data/model.d

24 lines
325 B
D
Raw Permalink Normal View History

module data.model;
struct User {
string username;
string email;
string passwordHash;
bool admin;
}
struct NoteList {
ulong id;
string name;
uint ordinality;
string description;
Note[] notes;
}
struct Note {
ulong id;
ulong noteListId;
uint ordinality;
string content;
}