slave 0.13.1

CLI for slave, a Laravel-inspired Rust framework for MCP-first apps: scaffold an MCP backend with auth, roles, teams and SurrealDB migrations, add server-rendered web apps, and route them by domain or path
1
2
3
4
5
6
7
8
9
10
11
use surrealdb::types::SurrealValue;

/// A user who shops at a team's store. Its record ID is
/// `customer:[team_id, user_id]`. Customers sign in with the same account as
/// everyone else, through a customer-facing app, and get no team access.
#[derive(Debug, Clone, SurrealValue)]
pub struct Customer {
    pub team_id: i64,

    pub user_id: i64,
}