table! { units_of_measure (id) { id -> Unsigned, volumetricUnitId -> Nullable>, weightUnitId -> Nullable>, number -> Nullable, createdAt -> Nullable, updatedAt -> Nullable, } } table! { something_types (id) { id -> Unsigned, value -> Varchar, name -> Varchar, active -> Bit, createdAt -> Nullable, updatedAt -> Nullable, inbound -> Bool, } } table! { something (id) { id -> Unsigned, somethingId -> Nullable>, somethingInOunces -> Decimal, total -> Unsigned, createdAt -> Nullable, updatedAt -> Nullable, } } // CREATE TABLE text_types ( // `id` INT NOT NULL, // `tinytext` TINYTEXT NOT NULL, // `nullable_tinytext` TINYTEXT NULL, // `mediumtext` MEDIUMTEXT NOT NULL, // `nullableMediumtext` MEDIUMTEXT NULL, // `longtext` MEDIUMTEXT NOT NULL, // `nullableLongtext` MEDIUMTEXT NULL, // PRIMARY KEY (`id`)); table! { text_types (id) { id -> Integer, tinytext -> Tinytext, nullableTinytext -> Nullable, mediumtext -> Mediumtext, nullableMediumtext -> Nullable, longtext -> Mediumtext, nullableLongtext -> Nullable, } } // CREATE TABLE numeric_types ( // `id` INT NOT NULL, // `double` DOUBLE NOT NULL, // `nullableDouble` DOUBLE NULL, // `tinyint` TINYINT NOT NULL, // `nullableTinyint` TINYINT NULL, // `smallint` SMALLINT NOT NULL, // `nullableSmallint` SMALLINT NULL, // `bigint` BIGINT NOT NULL, // `nullable_bigint` BIGINT NULL, // PRIMARY KEY (`id`)); table! { numeric_types (id) { id -> Integer, double -> Double, nullableDouble -> Nullable, tinyint -> Tinyint, nullableTinyint -> Nullable, smallint -> Smallint, nullableSmallint -> Nullable, bigint -> Bigint, nullableBigint -> Nullable, } } // CREATE TABLE unsigned_types ( // `id` INT NOT NULL, // `unsigned_tinyint` TINYINT UNSIGNED NOT NULL, // `nullable_unsigned_tinyint` TINYINT UNSIGNED NULL, // `unsigned_smallint` SMALLINT UNSIGNED NOT NULL, // `nullable_unsigned_smallint` SMALLINT UNSIGNED NULL, // `bigint` BIGINT UNSIGNED NOT NULL, // `nullable_bigint` BIGINT UNSIGNED NULL, // PRIMARY KEY (`id`)); table! { unsigned_types (id) { id -> Integer, unsignedTinyint -> Unsigned, nullableUnsignedTinyint -> Nullable>, unsignedSmallint -> Unsigned, nullableUnsignedSmallint -> Nullable>, bigint -> Unsigned, nullableBigint -> Nullable>, } } table! { blob_types (id) { id -> Integer, blob -> Blob, nullableBlob -> Nullable, tinyblob -> Tinyblob, nullableTinyblob -> Nullable, mediumblob -> Mediumblob, nullableMediumblob -> Nullable, longblob -> Mediumblob, nullableLongblob -> Nullable, } } table! { binary_and_chars (id) { id -> Integer, char -> Char, varchar -> Varchar, binary -> Binary, varbinary -> Varbinary, } } table! { uppercase_fields (id) { ID -> Integer, NAME -> Varchar, CREATED_AT -> Nullable, UPDATED_AT -> Nullable, } }