1
use canyon_sql::macros::*;
2

            
3
764
#[derive(Debug, Fields, CanyonCrud, CanyonMapper, ForeignKeyable, Eq, PartialEq)]
4
// #[canyon_entity(table_name = "league", schema = "public")]
5
#[canyon_entity(table_name = "league")]
6
pub struct League {
7
    #[primary_key]
8
    id: i32,
9
    ext_id: i64,
10
    slug: String,
11
    name: String,
12
    region: String,
13
    image_url: String,
14
}