Commit graph

14 commits

Author SHA1 Message Date
fef
4be3bdda0c
add public/private keys for users 2023-01-20 19:24:32 +01:00
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
ef1bdfcf7c
data: add content_type field to notes 2022-12-27 02:30:03 +01:00
fef
0d9504ca3b
add objects table 2022-12-25 18:29:33 +01:00
fef
4f542571e0
add iri column 2022-12-25 15:57:33 +01:00
fef
776cbe6d52
add even more fields to user schema 2022-12-19 15:45:03 +01:00
fef
808b03b817
add source to notes schema 2022-12-18 17:38:19 +01:00
fef
ead1a4fc62
add likes 2022-12-11 20:44:06 +01:00
fef
c227d09af3
rename statuses to notes
This matches the ActivityPub terminology, so why
not do it as long as it's still possible to
arbitrarily change the database schema.
2022-12-10 12:32:12 +01:00
fef
57026cb21d
add follows 2022-12-08 01:12:23 +01:00
fef
50dab32391
add users table 2022-12-07 07:34:45 +01:00
fef
323fe471c5
add statuses
This commit requires wiping the database, because
it changes the accounts migration as well.
2022-12-06 02:40:42 +01:00
fef
e0358c2c67
add account model 2022-12-05 20:22:46 +01:00
fef
37d897d500
use sqlx 2022-12-04 23:38:02 +01:00