{
  "__model__":"Rental",
  "__metaData__":{
    "objectName":"Rental",
    "module":"model/Rental.js",
    "tableName":"rental",
    "fields":[
      {
        "fieldName":"rentalId",
        "type":"INT",
        "columnName":"rental_id",
        "required":true,
        "primaryKey":true,
        "autoIncrementGenerator":"LAST_INSERT_ID()"
      },
      {
        "fieldName":"rentalDate",
        "type":"DATETIME",
        "columnName":"rental_date",
        "required":true
      },
      {
        "fieldName":"inventoryId",
        "type":"MEDIUMINT UNSIGNED",
        "columnName":"inventory_id",
        "required":true
      },
      {
        "fieldName":"customerId",
        "type":"SMALLINT UNSIGNED",
        "columnName":"customer_id",
        "required":true
      },
      {
        "fieldName":"returnDate",
        "type":"DATETIME",
        "columnName":"return_date"
      },
      {
        "fieldName":"staffId",
        "type":"TINYINT UNSIGNED",
        "columnName":"staff_id",
        "required":true
      },
      {
        "fieldName":"lastUpdate",
        "type":"TIMESTAMP",
        "columnName":"last_update",
        "required":true,
        "defaultValue":"CURRENT_TIMESTAMP()"
      }
    ],
    "oneToOneDefinitions":[
      {
        "fieldName":"staff",
        "type":1,
        "targetModelName":"Staff",
        "targetModule":"model/Staff.js",
        "targetTableName":"staff",
        "status":"enabled",
        "joinColumns":{
          "sourceColumns":"staff_id",
          "targetColumns":"staff_id"
        },
        "alias":"t16"
      },
      {
        "fieldName":"inventory",
        "type":1,
        "targetModelName":"Inventory",
        "targetModule":"model/Inventory.js",
        "targetTableName":"inventory",
        "status":"enabled",
        "joinColumns":{
          "sourceColumns":"inventory_id",
          "targetColumns":"inventory_id"
        },
        "alias":"t17"
      },
      {
        "fieldName":"customer",
        "type":1,
        "targetModelName":"Customer",
        "targetModule":"model/Customer.js",
        "targetTableName":"customer",
        "status":"enabled",
        "joinColumns":{
          "sourceColumns":"customer_id",
          "targetColumns":"customer_id"
        },
        "alias":"t18"
      }
    ],
    "oneToManyDefinitions":[

    ],
    "manyToManyDefinitions":[

    ],
    "fieldConstraints":{

    },
    "lazyLoadFields":{

    },
    "columnToFieldMap":{

    },
    "fieldMap":{

    },
    "referenceMap":{

    }
  },
  "__modified__":true,
  "__new__":true,
  "__constraintsEnabled__":false,
  "staff":{
    "__model__":"Staff",
    "__metaData__":{
      "objectName":"Staff",
      "module":"model/Staff.js",
      "tableName":"staff",
      "fields":[
        {
          "fieldName":"staffId",
          "type":"TINYINT UNSIGNED",
          "columnName":"staff_id",
          "required":true,
          "primaryKey":true,
          "autoIncrementGenerator":"LAST_INSERT_ID()"
        },
        {
          "fieldName":"firstName",
          "type":"VARCHAR",
          "length":45,
          "columnName":"first_name",
          "required":true
        },
        {
          "fieldName":"lastName",
          "type":"VARCHAR",
          "length":45,
          "columnName":"last_name",
          "required":true
        },
        {
          "fieldName":"addressId",
          "type":"SMALLINT UNSIGNED",
          "length":50,
          "columnName":"address_id",
          "required":true
        },
        {
          "fieldName":"picture",
          "type":"BLOB",
          "columnName":"picture",
          "lob":true
        },
        {
          "fieldName":"email",
          "type":"VARCHAR",
          "length":50,
          "columnName":"email"
        },
        {
          "fieldName":"storeId",
          "type":"TINYINT UNSIGNED",
          "columnName":"store_id",
          "required":true
        },
        {
          "fieldName":"active",
          "type":"BOOLEAN",
          "columnName":"active",
          "required":true,
          "defaultValue":"true",
          "converter":"ZeroOneToBoolean"
        },
        {
          "fieldName":"username",
          "type":"VARCHAR",
          "length":16,
          "columnName":"username",
          "required":true
        },
        {
          "fieldName":"password",
          "type":"VARCHAR",
          "length":40,
          "columnName":"password"
        },
        {
          "fieldName":"lastUpdate",
          "type":"TIMESTAMP",
          "columnName":"last_update",
          "required":true,
          "defaultValue":"CURRENT_TIMESTAMP()"
        }
      ],
      "oneToOneDefinitions":[
        {
          "fieldName":"store",
          "type":1,
          "targetModelName":"Store",
          "targetModule":"model/Store.js",
          "targetTableName":"store",
          "status":"enabled",
          "joinColumns":{
            "sourceColumns":"store_id",
            "targetColumns":"store_id"
          },
          "alias":"t19"
        },
        {
          "fieldName":"addess",
          "type":1,
          "targetModelName":"Address",
          "targetModule":"model/Address.js",
          "targetTableName":"address",
          "status":"enabled",
          "joinColumns":{
            "sourceColumns":"address_id",
            "targetColumns":"address_id"
          },
          "alias":"t20"
        }
      ],
      "oneToManyDefinitions":[

      ],
      "manyToManyDefinitions":[

      ],
      "fieldConstraints":{

      },
      "lazyLoadFields":{

      },
      "columnToFieldMap":{

      },
      "fieldMap":{

      },
      "referenceMap":{

      }
    },
    "__modified__":false,
    "__new__":false,
    "__constraintsEnabled__":false,
    "staffId":1,
    "firstName":"Mike",
    "lastName":"Hillyer",
    "addressId":3,
    "email":"Mike.Hillyer@sakilastaff.com",
    "storeId":1,
    "active":true,
    "username":"Mike",
    "password":"8cb2237d0679ca88db6464eac60da96345513964",
    "lastUpdate":"2006-02-15T10:57:16.000Z"
  },
  "inventory":{
    "__model__":"Inventory",
    "__metaData__":{
      "objectName":"Inventory",
      "module":"model/Inventory.js",
      "tableName":"inventory",
      "fields":[
        {
          "fieldName":"inventoryId",
          "type":"MEDIUMINT UNSIGNED",
          "columnName":"inventory_id",
          "required":true,
          "primaryKey":true,
          "autoIncrementGenerator":"LAST_INSERT_ID()"
        },
        {
          "fieldName":"filmId",
          "type":"SMALLINT UNSIGNED",
          "columnName":"film_id",
          "required":true
        },
        {
          "fieldName":"storeId",
          "type":"TINYINT UNSIGNED",
          "columnName":"store_id",
          "required":true
        },
        {
          "fieldName":"lastUpdate",
          "type":"TIMESTAMP",
          "columnName":"last_update",
          "required":true,
          "defaultValue":"CURRENT_TIMESTAMP()"
        }
      ],
      "oneToOneDefinitions":[
        {
          "fieldName":"film",
          "type":1,
          "targetModelName":"Film",
          "targetModule":"model/Film.js",
          "targetTableName":"film",
          "status":"enabled",
          "joinColumns":{
            "sourceColumns":"film_id",
            "targetColumns":"film_id"
          },
          "alias":"t11"
        },
        {
          "fieldName":"store",
          "type":1,
          "targetModelName":"Store",
          "targetModule":"model/Store.js",
          "targetTableName":"store",
          "status":"enabled",
          "joinColumns":{
            "sourceColumns":"store_id",
            "targetColumns":"store_id"
          },
          "alias":"t12"
        }
      ],
      "oneToManyDefinitions":[

      ],
      "manyToManyDefinitions":[

      ],
      "fieldConstraints":{

      },
      "lazyLoadFields":{

      },
      "columnToFieldMap":{

      },
      "fieldMap":{

      },
      "referenceMap":{

      }
    },
    "__modified__":false,
    "__new__":false,
    "__constraintsEnabled__":false,
    "inventoryId":367,
    "filmId":80,
    "storeId":1,
    "lastUpdate":"2006-02-15T12:09:17.000Z"
  },
  "customer":{
    "__model__":"Customer",
    "__metaData__":{
      "objectName":"Customer",
      "module":"model/Customer.js",
      "tableName":"customer",
      "fields":[
        {
          "fieldName":"customerId",
          "type":"SMALLINT UNSIGNED",
          "columnName":"customer_id",
          "required":true,
          "primaryKey":true,
          "autoIncrementGenerator":"LAST_INSERT_ID()"
        },
        {
          "fieldName":"storeId",
          "type":"TINYINT UNSIGNED",
          "columnName":"store_id",
          "required":true
        },
        {
          "fieldName":"firstName",
          "type":"VARCHAR",
          "length":45,
          "columnName":"first_name",
          "required":true
        },
        {
          "fieldName":"lastName",
          "type":"VARCHAR",
          "length":45,
          "columnName":"last_name",
          "required":true
        },
        {
          "fieldName":"email",
          "type":"VARCHAR",
          "length":50,
          "columnName":"email"
        },
        {
          "fieldName":"addressId",
          "type":"SMALLINT UNSIGNED",
          "columnName":"address_id",
          "required":true
        },
        {
          "fieldName":"active",
          "type":"BOOLEAN",
          "columnName":"active",
          "required":true,
          "defaultValue":"true",
          "converter":"ZeroOneToBoolean"
        },
        {
          "fieldName":"createDate",
          "type":"DATETIME",
          "columnName":"create_date",
          "required":true,
          "defaultValue":"CURRENT_TIMESTAMP"
        },
        {
          "fieldName":"lastUpdate",
          "type":"TIMESTAMP",
          "columnName":"last_update",
          "required":true,
          "defaultValue":"CURRENT_TIMESTAMP()"
        }
      ],
      "oneToOneDefinitions":[
        {
          "fieldName":"address",
          "type":1,
          "targetModelName":"Address",
          "targetModule":"model/Address.js",
          "targetTableName":"address",
          "status":"enabled",
          "required":true,
          "joinColumns":{
            "sourceColumns":"address_id",
            "targetColumns":"address_id"
          },
          "alias":"t3"
        },
        {
          "fieldName":"store",
          "type":1,
          "targetModelName":"Store",
          "targetModule":"model/Store.js",
          "targetTableName":"store",
          "status":"enabled",
          "required":true,
          "joinColumns":{
            "sourceColumns":"store_id",
            "targetColumns":"store_id"
          },
          "alias":"t4"
        }
      ],
      "oneToManyDefinitions":[

      ],
      "manyToManyDefinitions":[

      ],
      "fieldConstraints":{

      },
      "lazyLoadFields":{

      },
      "columnToFieldMap":{

      },
      "fieldMap":{

      },
      "referenceMap":{

      }
    },
    "__modified__":false,
    "__new__":false,
    "__constraintsEnabled__":false,
    "customerId":130,
    "storeId":1,
    "firstName":"CHARLOTTE",
    "lastName":"HUNTER",
    "email":"CHARLOTTE.HUNTER@sakilacustomer.org",
    "addressId":134,
    "active":true,
    "createDate":"2006-02-15T05:04:36.000Z",
    "lastUpdate":"2006-02-15T11:57:20.000Z"
  },
  "rentalDate":"2005-05-25T05:53:30.000Z",
  "inventoryId":367,
  "customerId":130,
  "returnDate":"2005-05-27T05:04:30.000Z",
  "staffId":1
}