(&self)
| 52 | impl ColumnTrait for Column { |
| 53 | type EntityName = Entity; |
| 54 | fn def(&self) -> ColumnDef { |
| 55 | match self { |
| 56 | Self::Id => ColumnType::Integer.def(), |
| 57 | Self::Name => ColumnType::String(StringLen::N(255u32)).def(), |
| 58 | Self::FruitId => ColumnType::Integer.def().null(), |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | impl RelationTrait for Relation { |