MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / def

Method def

sea-orm-codegen/tests/expanded/cake_filling_price.rs:50–56  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

48 type EntityName = Entity;
49
50 fn def(&self) -> ColumnDef {
51 match self {
52 Self::CakeId => ColumnType::Integer.def(),
53 Self::FillingId => ColumnType::Integer.def(),
54 Self::Price => ColumnType::Decimal(None).def(),
55 }
56 }
57}
58
59impl RelationTrait for Relation {

Callers 1

toMethod · 0.45

Calls 2

toMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected