Skip to content
Discussion options

You must be logged in to vote

Basically I'd do these two things in a migration file:

  1. create tables
sea_orm::rbac::schema::create_tables(&ctx.db, Default::default()).await?
  1. add user, roles and permissions: you can use RbacContext
    https://github.com/SeaQL/sea-orm/blob/master/tests/rbac_tests.rs

An end to end example is also provided in SeaORM Pro Plus

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rrodrigues
Comment options

Answer selected by rrodrigues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants