   {
     // Also used by ActiveRecord.reflectedEntity
     if includeConstraint {
-      if swiftType == Int.self     { return "INT NOT NULL"       }
-      if swiftType == String.self  { return "VARCHAR NOT NULL"   }
-      if swiftType == Float.self   { return "FLOAT NOT NULL"     }
-      if swiftType == Double.self  { return "DOUBLE NOT NULL"    }
-      if swiftType == Data.self    { return "BLOB NOT NULL"      }
-      if swiftType == Date.self    { return "TIMESTAMP NOT NULL" }
-      if swiftType == Int.self     { return "INT NOT NULL"       }
-      if swiftType == Bool.self    { return "BOOLEAN NOT NULL"   }
+      if swiftType == Int   .self { return "INT NOT NULL"       }
+      if swiftType == String.self { return "VARCHAR NOT NULL"   }
+      if swiftType == Float .self { return "FLOAT NOT NULL"     }
+      if swiftType == Double.self { return "DOUBLE NOT NULL"    }
+      if swiftType == Data  .self { return "BLOB NOT NULL"      }
+      if swiftType == Date  .self { return "TIMESTAMP NOT NULL" }
+      if swiftType == Int   .self { return "INT NOT NULL"       }
+      if swiftType == Bool  .self { return "BOOLEAN NOT NULL"   }
       
-      if swiftType == Optional<Int>.self     { return "INT NULL"       }
-      if swiftType == Optional<String>.self  { return "VARCHAR NULL"   }
-      if swiftType == Optional<Float>.self   { return "FLOAT NULL"     }
-      if swiftType == Optional<Double>.self  { return "DOUBLE NULL"    }
-      if swiftType == Optional<Data>.self    { return "BLOB NULL"      }
-      if swiftType == Optional<Date>.self    { return "TIMESTAMP NULL" }
-      if swiftType == Optional<Int>.self     { return "INT NULL"       }
-      if swiftType == Optional<Bool>.self    { return "BOOLEAN NULL"   }
+      if swiftType == Optional<Int>   .self { return "INT NULL"       }
+      if swiftType == Optional<String>.self { return "VARCHAR NULL"   }
+      if swiftType == Optional<Float> .self { return "FLOAT NULL"     }
+      if swiftType == Optional<Double>.self { return "DOUBLE NULL"    }
+      if swiftType == Optional<Data>  .self { return "BLOB NULL"      }
+      if swiftType == Optional<Date>  .self { return "TIMESTAMP NULL" }
+      if swiftType == Optional<Int>   .self { return "INT NULL"       }
+      if swiftType == Optional<Bool>  .self { return "BOOLEAN NULL"   }
     }
     else {
-      if swiftType == Int.self     { return "INT"       }
-      if swiftType == String.self  { return "VARCHAR"   }
-      if swiftType == Float.self   { return "FLOAT"     }
-      if swiftType == Double.self  { return "DOUBLE"    }
-      if swiftType == Data.self    { return "BLOB"      }
-      if swiftType == Date.self    { return "TIMESTAMP" }
-      if swiftType == Int.self     { return "INT"       }
-      if swiftType == Bool.self    { return "BOOLEAN"   }
+      if swiftType == Int   .self { return "INT"       }
+      if swiftType == String.self { return "VARCHAR"   }
+      if swiftType == Float .self { return "FLOAT"     }
+      if swiftType == Double.self { return "DOUBLE"    }
+      if swiftType == Data  .self { return "BLOB"      }
+      if swiftType == Date  .self { return "TIMESTAMP" }
+      if swiftType == Int   .self { return "INT"       }
+      if swiftType == Bool  .self { return "BOOLEAN"   }
       
-      if swiftType == Optional<Int>.self     { return "INT"       }
-      if swiftType == Optional<String>.self  { return "VARCHAR"   }
-      if swiftType == Optional<Float>.self   { return "FLOAT"     }
-      if swiftType == Optional<Double>.self  { return "DOUBLE"    }
-      if swiftType == Optional<Data>.self    { return "BLOB"      }
-      if swiftType == Optional<Date>.self    { return "TIMESTAMP" }
-      if swiftType == Optional<Int>.self     { return "INT"       }
-      if swiftType == Optional<Bool>.self    { return "BOOLEAN"   }
+      if swiftType == Optional<Int>   .self { return "INT"       }
+      if swiftType == Optional<String>.self { return "VARCHAR"   }
+      if swiftType == Optional<Float> .self { return "FLOAT"     }
+      if swiftType == Optional<Double>.self { return "DOUBLE"    }
+      if swiftType == Optional<Data>  .self { return "BLOB"      }
+      if swiftType == Optional<Date>  .self { return "TIMESTAMP" }
+      if swiftType == Optional<Int>   .self { return "INT"       }
+      if swiftType == Optional<Bool>  .self { return "BOOLEAN"   }
     }
     return nil
   }

      case "Float":  return "FLOAT"
      case "Double": return "DOUBLE"
      case "Bool":   return "BOOLEAN"
      default:       return nil
    }
  }

//  ZeeQL3
//
//  Created by Helge Hess on 08.05.17.
//  Copyright © 2017-2019 ZeeZide GmbH. All rights reserved.
//

import struct Foundation.Date
