| 71 | type EntityName = Entity; |
| 72 | |
| 73 | fn def(&self) -> ColumnDef { |
| 74 | match self { |
| 75 | Self::Id => ColumnType::Integer.def(), |
| 76 | Self::Testing => ColumnType::TinyInteger.def(), |
| 77 | Self::Rust => ColumnType::TinyUnsigned.def(), |
| 78 | Self::Keywords => ColumnType::SmallInteger.def(), |
| 79 | Self::Type => ColumnType::SmallUnsigned.def(), |
| 80 | Self::Typeof => ColumnType::Integer.def(), |
| 81 | Self::Crate => ColumnType::Unsigned.def(), |
| 82 | Self::Self_ => ColumnType::BigInteger.def(), |
| 83 | Self::SelfId1 => ColumnType::BigUnsigned.def(), |
| 84 | Self::SelfId2 => ColumnType::Integer.def(), |
| 85 | Self::FruitId1 => ColumnType::Integer.def(), |
| 86 | Self::FruitId2 => ColumnType::Integer.def(), |
| 87 | Self::CakeId => ColumnType::Integer.def(), |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | impl RelationTrait for Relation { |