entity-derive 0.22.8

Derive macro for generating DTOs, repositories, and SQL from a single entity definition
Documentation
// SPDX-FileCopyrightText: 2025-2026 RAprogramm <andrey.rozanov.vl@gmail.com>
// SPDX-License-Identifier: MIT

//! A domain operation writing a column the entity does not have is
//! rejected at the declaration.

use entity_derive::Entity;
use uuid::Uuid;

#[derive(Entity)]
#[entity(table = "users", commands)]
#[command(VerifyPassport, sets(passport_checked = "true"))]
pub struct User {
    #[id]
    pub id: Uuid,

    #[field(response)]
    pub passport_verified: bool,
}

fn main() {}