cot-cli 0.6.0

Command-line interface for the Cot web framework
Documentation
use cot::db::{model, Auto, ForeignKey, LimitedString};

pub const FIELD_LEN: u32 = 64;

#[derive(Debug)]
#[model]
struct Parent {
    #[model(primary_key)]
    id: Auto<i32>,
}

#[derive(Debug)]
#[model]
struct MyModel {
    #[model(primary_key)]
    id: Auto<i32>,
    field_1: String,
    field_2: LimitedString<FIELD_LEN>,
    parent: ForeignKey<Parent>,
}

fn main() {}