heldar-entry 0.1.2

Heldar Access Control — generic ANPR authorization, vehicle/visitor/watchlist registry, guard workflow, and entry reports for gated-entry deployments. Built on the heldar-kernel platform.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! The access-control app owns its own schema, applied idempotently against the shared kernel pool on startup
//! (single-tenant-per-deployment). The open kernel does not define these domain tables.

use sqlx::SqlitePool;

/// Create the access-control tables if they do not exist. Called by the composing server after the
/// kernel migrations have run.
pub async fn init(pool: &SqlitePool) -> sqlx::Result<()> {
    sqlx::raw_sql(include_str!("schema.sql"))
        .execute(pool)
        .await?;
    Ok(())
}