(&self)
| 43 | impl ColumnTrait for Column { |
| 44 | type EntityName = Entity; |
| 45 | fn def(&self) -> ColumnDef { |
| 46 | match self { |
| 47 | Self::Id => ColumnType::Integer.def(), |
| 48 | Self::Integers => ColumnType::Array(RcOrArc::new(ColumnType::Integer)).def(), |
| 49 | Self::IntegersOpt => ColumnType::Array(RcOrArc::new(ColumnType::Integer)).def().null(), |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | impl RelationTrait for Relation { |