[INFO] Is there any DB schema somewhere to look up to? #325
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#325
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I would like to study tha pleroma/akkoma is structured from the POV of the DB but can't find anywhere any kind of documentation or schema file. Is there any?
Pleroma and Akkoma use Ecto for database operations, that includes migration and schema management. If you want to take a look at how all the current entities are declared, you want to search for "use Ecto.Schema" across the codebase, and for the schemas that describe database upgrades, they're all in the
priv/repo/migrations
folder.What about the database structure, with it's tables and foreign keys, is there anything that I could throw to diagram maker and see graph?
as said above, that is defined by ecto
Ecto is a pseudo-ORM, there is no direct
schema.sql
file you can inspect. If you wish to introspect into all the current table structure with SQL-specific tooling, you want to install Akkoma manually in your machine, and play with a tool like DBeaver for such.