(&self)
| 45 | impl ColumnTrait for Column { |
| 46 | type EntityName = Entity; |
| 47 | fn def(&self) -> ColumnDef { |
| 48 | match self { |
| 49 | Self::Id => ColumnType::Integer.def(), |
| 50 | Self::ParentId1 => ColumnType::Integer.def(), |
| 51 | Self::ParentId2 => ColumnType::Integer.def(), |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | impl RelationTrait for Relation { |