sofie-tenancy 0.1.0

Organizations that own records, their members and roles, and invitations by email.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use sofie::db::Db;
use sofie::sqlite::Sqlite;

#[tokio::test]
async fn its_tables_match_its_records_on_sqlite() {
    let db = Db::new(Sqlite::memory().unwrap());
    let migrations = [sofie_tenancy::migrations()];

    db.schema().migrate(&migrations).await.unwrap();

    let mismatches = db.schema().check(&migrations).await.unwrap();
    assert!(mismatches.is_empty(), "{mismatches:?}");
}