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