{
  "generated": "2017-05-22T21:41:15.243Z",
  "schemas": {
    "pg_diff_sync_test": {
      "schemaExistsInDatabase": true,
      "comment": "Schema auto-generated by Relationize.js!",
      "tables": {
        "person": {
          "comment": "Isn't this just a list of people?",
          "pkColumnNames": [
            "employee_no"
          ],
          "columns": {
            "employee_no": {
              "array": false,
              "columnDefault": null,
              "isNullable": "NO",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": null
            },
            "first_name": {
              "array": false,
              "columnDefault": null,
              "isNullable": "NO",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Person's first name"
            },
            "last_name": {
              "array": false,
              "columnDefault": null,
              "isNullable": "NO",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": null
            },
            "age": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "integer",
              "characterMaximumLength": null,
              "numericScale": 0,
              "comment": "Age in years"
            },
            "_created": {
              "array": false,
              "columnDefault": "now()",
              "isNullable": "NO",
              "dataType": "timestamp with time zone",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Timestamp for when this record was created"
            },
            "_created_by": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "UserID that created this record (if known)"
            },
            "_modified": {
              "array": false,
              "columnDefault": "now()",
              "isNullable": "NO",
              "dataType": "timestamp with time zone",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Timestamp for when this record was last updated"
            },
            "_modified_by": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "UserID that last modified this record (if known)"
            }
          },
          "indexes": {
            "person_first_name_last_name_idx": {
              "columns": [
                [
                  "first_name",
                  "last_name"
                ]
              ],
              "unique": false,
              "method": "btree"
            }
          },
          "fkConstraints": {}
        },
        "craters": {
          "comment": "Auto-generated via Relationize.js!",
          "pkColumnNames": [
            "id"
          ],
          "columns": {
            "title": {
              "array": false,
              "columnDefault": null,
              "isNullable": "NO",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "The display-label of the crater"
            },
            "diameter": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "integer",
              "characterMaximumLength": null,
              "numericScale": 0,
              "comment": "Diameter of the crater, in metres"
            },
            "moons_id": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "uuid",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Auto-added foreign key for moons"
            },
            "id": {
              "array": false,
              "columnDefault": null,
              "isNullable": "NO",
              "dataType": "uuid",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Automatically added UUID-based primary key column"
            },
            "_created": {
              "array": false,
              "columnDefault": "now()",
              "isNullable": "NO",
              "dataType": "timestamp with time zone",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Timestamp for when this record was created"
            },
            "_created_by": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "UserID that created this record (if known)"
            },
            "_modified": {
              "array": false,
              "columnDefault": "now()",
              "isNullable": "NO",
              "dataType": "timestamp with time zone",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Timestamp for when this record was last updated"
            },
            "_modified_by": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "UserID that last modified this record (if known)"
            }
          },
          "indexes": {
            "craters_moons_id_idx": {
              "columns": [
                [
                  "moons_id"
                ]
              ],
              "unique": false,
              "method": "btree"
            }
          },
          "fkConstraints": {
            "craters_to_moons_fk": {
              "targetTable": "pg_diff_sync_test.moons",
              "sourceColumns": [
                "moons_id"
              ],
              "targetColumns": [
                "id"
              ],
              "updateAction": "NO ACTION",
              "deleteAction": "CASCADE",
              "matchType": "SIMPLE"
            }
          }
        },
        "planets": {
          "comment": "A list of planets",
          "pkColumnNames": [
            "name"
          ],
          "columns": {
            "name": {
              "array": false,
              "columnDefault": null,
              "isNullable": "NO",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Unique planet name"
            },
            "title": {
              "array": false,
              "columnDefault": null,
              "isNullable": "NO",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "The display-label of the planet"
            },
            "type": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "What type of planet is this?"
            },
            "diameter": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "numeric",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "The diameter of the planet, in metres"
            },
            "color": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "numeric",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "What color is this planet?"
            },
            "url": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Further reading available here!"
            },
            "other_facts": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "jsonb",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Any other info relevant to this planet"
            },
            "tags": {
              "array": true,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null
            },
            "_created": {
              "array": false,
              "columnDefault": "now()",
              "isNullable": "NO",
              "dataType": "timestamp with time zone",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Timestamp for when this record was created"
            },
            "_created_by": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "UserID that created this record (if known)"
            },
            "_modified": {
              "array": false,
              "columnDefault": "now()",
              "isNullable": "NO",
              "dataType": "timestamp with time zone",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Timestamp for when this record was last updated"
            },
            "_modified_by": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "UserID that last modified this record (if known)"
            }
          },
          "indexes": {},
          "fkConstraints": {}
        },
        "moons": {
          "comment": "Auto-generated via Relationize.js!",
          "pkColumnNames": [
            "id"
          ],
          "columns": {
            "title": {
              "array": false,
              "columnDefault": null,
              "isNullable": "NO",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "The display-label of the moon"
            },
            "discovered_by": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Name of the person who discovered the moon"
            },
            "discovery_year": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "integer",
              "characterMaximumLength": null,
              "numericScale": 0,
              "comment": "Year the moon was discovered (e.g. 1804)"
            },
            "planets_name": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Auto-added foreign key for planets"
            },
            "id": {
              "array": false,
              "columnDefault": null,
              "isNullable": "NO",
              "dataType": "uuid",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Automatically added UUID-based primary key column"
            },
            "_created": {
              "array": false,
              "columnDefault": "now()",
              "isNullable": "NO",
              "dataType": "timestamp with time zone",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Timestamp for when this record was created"
            },
            "_created_by": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "UserID that created this record (if known)"
            },
            "_modified": {
              "array": false,
              "columnDefault": "now()",
              "isNullable": "NO",
              "dataType": "timestamp with time zone",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "Timestamp for when this record was last updated"
            },
            "_modified_by": {
              "array": false,
              "columnDefault": null,
              "isNullable": "YES",
              "dataType": "text",
              "characterMaximumLength": null,
              "numericScale": null,
              "comment": "UserID that last modified this record (if known)"
            }
          },
          "indexes": {
            "moons_planets_name_idx": {
              "columns": [
                [
                  "planets_name"
                ]
              ],
              "unique": false,
              "method": "btree"
            }
          },
          "fkConstraints": {
            "moons_to_planets_fk": {
              "targetTable": "pg_diff_sync_test.planets",
              "sourceColumns": [
                "planets_name"
              ],
              "targetColumns": [
                "name"
              ],
              "updateAction": "NO ACTION",
              "deleteAction": "CASCADE",
              "matchType": "SIMPLE"
            }
          }
        }
      }
    }
  }
}