{
  "id": "374690c3-ff7e-4de7-bda9-7e00a413bda7",
  "prevId": "e49ebf64-703c-4248-8828-12c78337fbd2",
  "version": "7",
  "dialect": "postgresql",
  "tables": {
    "public.access_token": {
      "name": "access_token",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "uuid",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "createdAt": {
          "name": "createdAt",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updatedAt": {
          "name": "updatedAt",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": false
        },
        "userId": {
          "name": "userId",
          "type": "uuid",
          "primaryKey": false,
          "notNull": false
        },
        "token": {
          "name": "token",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "lastUsedOn": {
          "name": "lastUsedOn",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {},
      "foreignKeys": {
        "access_token_userId_user_id_fk": {
          "name": "access_token_userId_user_id_fk",
          "tableFrom": "access_token",
          "tableTo": "user",
          "columnsFrom": [
            "userId"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.changelog": {
      "name": "changelog",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "uuid",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "createdAt": {
          "name": "createdAt",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updatedAt": {
          "name": "updatedAt",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": false
        },
        "userId": {
          "name": "userId",
          "type": "uuid",
          "primaryKey": false,
          "notNull": false
        },
        "pageId": {
          "name": "pageId",
          "type": "uuid",
          "primaryKey": false,
          "notNull": false
        },
        "title": {
          "name": "title",
          "type": "varchar(256)",
          "primaryKey": false,
          "notNull": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "isSemver": {
          "name": "isSemver",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": true
        },
        "isConventional": {
          "name": "isConventional",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "default": true
        }
      },
      "indexes": {},
      "foreignKeys": {
        "changelog_userId_user_id_fk": {
          "name": "changelog_userId_user_id_fk",
          "tableFrom": "changelog",
          "tableTo": "user",
          "columnsFrom": [
            "userId"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "changelog_pageId_page_id_fk": {
          "name": "changelog_pageId_page_id_fk",
          "tableFrom": "changelog",
          "tableTo": "page",
          "columnsFrom": [
            "pageId"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.changelog_commit": {
      "name": "changelog_commit",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "uuid",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "createdAt": {
          "name": "createdAt",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updatedAt": {
          "name": "updatedAt",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": false
        },
        "changelogId": {
          "name": "changelogId",
          "type": "uuid",
          "primaryKey": false,
          "notNull": false
        },
        "versionId": {
          "name": "versionId",
          "type": "uuid",
          "primaryKey": false,
          "notNull": false
        },
        "commit": {
          "name": "commit",
          "type": "varchar(8)",
          "primaryKey": false,
          "notNull": true
        },
        "parent": {
          "name": "parent",
          "type": "varchar(8)",
          "primaryKey": false,
          "notNull": false
        },
        "subject": {
          "name": "subject",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "author": {
          "name": "author",
          "type": "json",
          "primaryKey": false,
          "notNull": false
        },
        "commiter": {
          "name": "commiter",
          "type": "json",
          "primaryKey": false,
          "notNull": false
        },
        "body": {
          "name": "body",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {
        "unique": {
          "name": "unique",
          "columns": [
            {
              "expression": "changelogId",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            },
            {
              "expression": "commit",
              "isExpression": false,
              "asc": true,
              "nulls": "last"
            }
          ],
          "isUnique": true,
          "concurrently": false,
          "method": "btree",
          "with": {}
        }
      },
      "foreignKeys": {
        "changelog_commit_changelogId_changelog_id_fk": {
          "name": "changelog_commit_changelogId_changelog_id_fk",
          "tableFrom": "changelog_commit",
          "tableTo": "changelog",
          "columnsFrom": [
            "changelogId"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "changelog_commit_versionId_changelog_version_id_fk": {
          "name": "changelog_commit_versionId_changelog_version_id_fk",
          "tableFrom": "changelog_commit",
          "tableTo": "changelog_version",
          "columnsFrom": [
            "versionId"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "set null"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.changelog_version": {
      "name": "changelog_version",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "uuid",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "createdAt": {
          "name": "createdAt",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updatedAt": {
          "name": "updatedAt",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": false
        },
        "releasedAt": {
          "name": "releasedAt",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "changelogId": {
          "name": "changelogId",
          "type": "uuid",
          "primaryKey": false,
          "notNull": true
        },
        "version": {
          "name": "version",
          "type": "varchar(32)",
          "primaryKey": false,
          "notNull": true
        },
        "markdown": {
          "name": "markdown",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "status": {
          "name": "status",
          "type": "status",
          "typeSchema": "public",
          "primaryKey": false,
          "notNull": true,
          "default": "'draft'"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "changelog_version_changelogId_changelog_id_fk": {
          "name": "changelog_version_changelogId_changelog_id_fk",
          "tableFrom": "changelog_version",
          "tableTo": "changelog",
          "columnsFrom": [
            "changelogId"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.changelogs_to_pages": {
      "name": "changelogs_to_pages",
      "schema": "",
      "columns": {
        "changelogId": {
          "name": "changelogId",
          "type": "uuid",
          "primaryKey": false,
          "notNull": true
        },
        "pageId": {
          "name": "pageId",
          "type": "uuid",
          "primaryKey": false,
          "notNull": true
        }
      },
      "indexes": {},
      "foreignKeys": {
        "changelogs_to_pages_changelogId_changelog_id_fk": {
          "name": "changelogs_to_pages_changelogId_changelog_id_fk",
          "tableFrom": "changelogs_to_pages",
          "tableTo": "changelog",
          "columnsFrom": [
            "changelogId"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "changelogs_to_pages_pageId_page_id_fk": {
          "name": "changelogs_to_pages_pageId_page_id_fk",
          "tableFrom": "changelogs_to_pages",
          "tableTo": "page",
          "columnsFrom": [
            "pageId"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "changelogs_to_pages_changelogId_pageId_pk": {
          "name": "changelogs_to_pages_changelogId_pageId_pk",
          "columns": [
            "changelogId",
            "pageId"
          ]
        }
      },
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.page": {
      "name": "page",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "uuid",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "createdAt": {
          "name": "createdAt",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updatedAt": {
          "name": "updatedAt",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": false
        },
        "userId": {
          "name": "userId",
          "type": "uuid",
          "primaryKey": false,
          "notNull": false
        },
        "title": {
          "name": "title",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "icon": {
          "name": "icon",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "default": "''"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "page_userId_user_id_fk": {
          "name": "page_userId_user_id_fk",
          "tableFrom": "page",
          "tableTo": "user",
          "columnsFrom": [
            "userId"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {},
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    },
    "public.user": {
      "name": "user",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "uuid",
          "primaryKey": true,
          "notNull": true,
          "default": "gen_random_uuid()"
        },
        "createdAt": {
          "name": "createdAt",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "updatedAt": {
          "name": "updatedAt",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": false
        },
        "providerId": {
          "name": "providerId",
          "type": "varchar(32)",
          "primaryKey": false,
          "notNull": true
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        },
        "email": {
          "name": "email",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "user_providerId_unique": {
          "name": "user_providerId_unique",
          "nullsNotDistinct": false,
          "columns": [
            "providerId"
          ]
        },
        "user_email_unique": {
          "name": "user_email_unique",
          "nullsNotDistinct": false,
          "columns": [
            "email"
          ]
        }
      },
      "policies": {},
      "checkConstraints": {},
      "isRLSEnabled": false
    }
  },
  "enums": {
    "public.status": {
      "name": "status",
      "schema": "public",
      "values": [
        "draft",
        "review",
        "published"
      ]
    }
  },
  "schemas": {},
  "sequences": {},
  "roles": {},
  "policies": {},
  "views": {},
  "_meta": {
    "columns": {},
    "schemas": {},
    "tables": {}
  }
}