Commit graph

3 commits

Author SHA1 Message Date
fef
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.
2023-01-20 16:45:12 +01:00
fef
4f542571e0
add iri column 2022-12-25 15:57:33 +01:00
fef
57026cb21d
add follows 2022-12-08 01:12:23 +01:00