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