haste_repository/types/
tenant.rs

1use haste_jwt::TenantId;
2
3pub struct CreateTenant {
4    pub id: Option<TenantId>,
5    pub subscription_tier: Option<String>,
6}
7
8#[derive(sqlx::FromRow, Debug)]
9pub struct Tenant {
10    pub id: TenantId,
11    pub subscription_tier: String,
12}
13
14pub struct TenantSearchClaims {
15    pub subscription_tier: Option<String>,
16}