{
  "name": "Post",
  "table": {
    "name": "sample24_post"
  },
  "columns": {
    "id": {
      "type": "int",
      "primary": true,
      "generated": true
    },
    "title": {
      "type": "varchar",
      "nullable": false
    },
    "text": {
      "type": "varchar",
      "nullable": false
    }
  },
  "relations": {
    "details": {
      "target": "PostDetails",
      "type": "one-to-one",
      "joinColumn": true,
      "inverseSide": "post",
      "cascade": true
    },
    "images": {
      "target": "Image",
      "type": "one-to-many",
      "inverseSide": "post",
      "cascade": true
    },
    "secondaryImages": {
      "target": "Image",
      "type": "one-to-many",
      "inverseSide": "secondaryPost"
    },
    "categories": {
      "target": "Category",
      "type": "many-to-many",
      "joinTable": true,
      "cascade": true,
      "inverseSide": "posts"
    }
  }
}