renox-cli 1.3.1

rnx, the command-line tool for the Renox web framework (like Laravel's artisan).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use renox::prelude::*;
use serde::{Deserialize, Serialize};

/// A row of the package's table (replace it with your own models).
#[derive(Model, Serialize, Deserialize, Default, Debug, Clone)]
#[model(table = "__lib___entries")]
pub struct Entry {
    /// The primary key.
    pub id: i64,
    /// What the entry says.
    pub title: String,
    /// When the row was created.
    pub created_at: Option<DateTime>,
    /// When the row was last changed.
    pub updated_at: Option<DateTime>,
}