6 Commits (89aa01c266390680c0542cdeee4e8290c4e4b593)

Author SHA1 Message Date
anna 89aa01c266
util: refactor crypto API 1 year ago
anna a0d2dc4151
refactor model IDs to use safe types
This is a major refactor that introduces a new
generic type Id<T, I> for tagging any ID with the
model they reference without any runtime overhead.
From now on, it should be pretty much impossible
to pass e.g. a note ID to a function that expects,
say, an account ID.

Furthermore, the follow and like tables have been
simplified to use the two IDs that define the
relationship as a composite primary key.

Finally, likes now have a memory cache.
1 year ago
anna 8ea3ebda54
data: add in-memory cache 1 year ago
anna f1a631efff
data: remove unnecessary generics
The repository layer is the central gateway to
the data storage subsystem, so it should also be
solely responsible for transforming data coming
from the rest of the app into the appropriate
format.
1 year ago
anna 41b27830b9
add signup endpoint 1 year ago
anna a5d9f049a9
add repository stuff 1 year ago