{
  "version": "5",
  "dialect": "mysql",
  "id": "67352107-06b7-4f5d-a4e0-4ba27327f588",
  "prevId": "50ab4b07-6f46-438b-806d-27827f138a01",
  "tables": {
    "account": {
      "name": "account",
      "columns": {
        "userId": {
          "name": "userId",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "provider": {
          "name": "provider",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "providerAccountId": {
          "name": "providerAccountId",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "refresh_token": {
          "name": "refresh_token",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "access_token": {
          "name": "access_token",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "expires_at": {
          "name": "expires_at",
          "type": "int",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "token_type": {
          "name": "token_type",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "scope": {
          "name": "scope",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "id_token": {
          "name": "id_token",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "session_state": {
          "name": "session_state",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "userId_idx": {
          "name": "userId_idx",
          "columns": ["userId"],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "account_userId_user_id_fk": {
          "name": "account_userId_user_id_fk",
          "tableFrom": "account",
          "tableTo": "user",
          "columnsFrom": ["userId"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "account_provider_providerAccountId_pk": {
          "name": "account_provider_providerAccountId_pk",
          "columns": ["provider", "providerAccountId"]
        }
      },
      "uniqueConstraints": {}
    },
    "app": {
      "name": "app",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "icon_url": {
          "name": "icon_url",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "href": {
          "name": "href",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "app_id": {
          "name": "app_id",
          "columns": ["id"]
        }
      },
      "uniqueConstraints": {}
    },
    "boardGroupPermission": {
      "name": "boardGroupPermission",
      "columns": {
        "board_id": {
          "name": "board_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "group_id": {
          "name": "group_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "permission": {
          "name": "permission",
          "type": "varchar(128)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {
        "boardGroupPermission_board_id_board_id_fk": {
          "name": "boardGroupPermission_board_id_board_id_fk",
          "tableFrom": "boardGroupPermission",
          "tableTo": "board",
          "columnsFrom": ["board_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "boardGroupPermission_group_id_group_id_fk": {
          "name": "boardGroupPermission_group_id_group_id_fk",
          "tableFrom": "boardGroupPermission",
          "tableTo": "group",
          "columnsFrom": ["group_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "boardGroupPermission_board_id_group_id_permission_pk": {
          "name": "boardGroupPermission_board_id_group_id_permission_pk",
          "columns": ["board_id", "group_id", "permission"]
        }
      },
      "uniqueConstraints": {}
    },
    "boardUserPermission": {
      "name": "boardUserPermission",
      "columns": {
        "board_id": {
          "name": "board_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "permission": {
          "name": "permission",
          "type": "varchar(128)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {
        "boardUserPermission_board_id_board_id_fk": {
          "name": "boardUserPermission_board_id_board_id_fk",
          "tableFrom": "boardUserPermission",
          "tableTo": "board",
          "columnsFrom": ["board_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "boardUserPermission_user_id_user_id_fk": {
          "name": "boardUserPermission_user_id_user_id_fk",
          "tableFrom": "boardUserPermission",
          "tableTo": "user",
          "columnsFrom": ["user_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "boardUserPermission_board_id_user_id_permission_pk": {
          "name": "boardUserPermission_board_id_user_id_permission_pk",
          "columns": ["board_id", "user_id", "permission"]
        }
      },
      "uniqueConstraints": {}
    },
    "board": {
      "name": "board",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(256)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "is_public": {
          "name": "is_public",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "creator_id": {
          "name": "creator_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "page_title": {
          "name": "page_title",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "meta_title": {
          "name": "meta_title",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "logo_image_url": {
          "name": "logo_image_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "favicon_image_url": {
          "name": "favicon_image_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "background_image_url": {
          "name": "background_image_url",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "background_image_attachment": {
          "name": "background_image_attachment",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "('fixed')"
        },
        "background_image_repeat": {
          "name": "background_image_repeat",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "('no-repeat')"
        },
        "background_image_size": {
          "name": "background_image_size",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "('cover')"
        },
        "primary_color": {
          "name": "primary_color",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "('#fa5252')"
        },
        "secondary_color": {
          "name": "secondary_color",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "('#fd7e14')"
        },
        "opacity": {
          "name": "opacity",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 100
        },
        "custom_css": {
          "name": "custom_css",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "column_count": {
          "name": "column_count",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 10
        }
      },
      "indexes": {},
      "foreignKeys": {
        "board_creator_id_user_id_fk": {
          "name": "board_creator_id_user_id_fk",
          "tableFrom": "board",
          "tableTo": "user",
          "columnsFrom": ["creator_id"],
          "columnsTo": ["id"],
          "onDelete": "set null",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "board_id": {
          "name": "board_id",
          "columns": ["id"]
        }
      },
      "uniqueConstraints": {
        "board_name_unique": {
          "name": "board_name_unique",
          "columns": ["name"]
        }
      }
    },
    "groupMember": {
      "name": "groupMember",
      "columns": {
        "groupId": {
          "name": "groupId",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "userId": {
          "name": "userId",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {
        "groupMember_groupId_group_id_fk": {
          "name": "groupMember_groupId_group_id_fk",
          "tableFrom": "groupMember",
          "tableTo": "group",
          "columnsFrom": ["groupId"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "groupMember_userId_user_id_fk": {
          "name": "groupMember_userId_user_id_fk",
          "tableFrom": "groupMember",
          "tableTo": "user",
          "columnsFrom": ["userId"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "groupMember_groupId_userId_pk": {
          "name": "groupMember_groupId_userId_pk",
          "columns": ["groupId", "userId"]
        }
      },
      "uniqueConstraints": {}
    },
    "groupPermission": {
      "name": "groupPermission",
      "columns": {
        "groupId": {
          "name": "groupId",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "permission": {
          "name": "permission",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {
        "groupPermission_groupId_group_id_fk": {
          "name": "groupPermission_groupId_group_id_fk",
          "tableFrom": "groupPermission",
          "tableTo": "group",
          "columnsFrom": ["groupId"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {},
      "uniqueConstraints": {}
    },
    "group": {
      "name": "group",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "owner_id": {
          "name": "owner_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {
        "group_owner_id_user_id_fk": {
          "name": "group_owner_id_user_id_fk",
          "tableFrom": "group",
          "tableTo": "user",
          "columnsFrom": ["owner_id"],
          "columnsTo": ["id"],
          "onDelete": "set null",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "group_id": {
          "name": "group_id",
          "columns": ["id"]
        }
      },
      "uniqueConstraints": {}
    },
    "iconRepository": {
      "name": "iconRepository",
      "columns": {
        "iconRepository_id": {
          "name": "iconRepository_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "iconRepository_slug": {
          "name": "iconRepository_slug",
          "type": "varchar(150)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "iconRepository_iconRepository_id": {
          "name": "iconRepository_iconRepository_id",
          "columns": ["iconRepository_id"]
        }
      },
      "uniqueConstraints": {}
    },
    "icon": {
      "name": "icon",
      "columns": {
        "icon_id": {
          "name": "icon_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "icon_name": {
          "name": "icon_name",
          "type": "varchar(250)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "icon_url": {
          "name": "icon_url",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "icon_checksum": {
          "name": "icon_checksum",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "iconRepository_id": {
          "name": "iconRepository_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {
        "icon_iconRepository_id_iconRepository_iconRepository_id_fk": {
          "name": "icon_iconRepository_id_iconRepository_iconRepository_id_fk",
          "tableFrom": "icon",
          "tableTo": "iconRepository",
          "columnsFrom": ["iconRepository_id"],
          "columnsTo": ["iconRepository_id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "icon_icon_id": {
          "name": "icon_icon_id",
          "columns": ["icon_id"]
        }
      },
      "uniqueConstraints": {}
    },
    "integrationGroupPermissions": {
      "name": "integrationGroupPermissions",
      "columns": {
        "integration_id": {
          "name": "integration_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "group_id": {
          "name": "group_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "permission": {
          "name": "permission",
          "type": "varchar(128)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {
        "integrationGroupPermissions_integration_id_integration_id_fk": {
          "name": "integrationGroupPermissions_integration_id_integration_id_fk",
          "tableFrom": "integrationGroupPermissions",
          "tableTo": "integration",
          "columnsFrom": ["integration_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "integrationGroupPermissions_group_id_group_id_fk": {
          "name": "integrationGroupPermissions_group_id_group_id_fk",
          "tableFrom": "integrationGroupPermissions",
          "tableTo": "group",
          "columnsFrom": ["group_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "integration_group_permission__pk": {
          "name": "integration_group_permission__pk",
          "columns": ["integration_id", "group_id", "permission"]
        }
      },
      "uniqueConstraints": {}
    },
    "integration_item": {
      "name": "integration_item",
      "columns": {
        "item_id": {
          "name": "item_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "integration_id": {
          "name": "integration_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {
        "integration_item_item_id_item_id_fk": {
          "name": "integration_item_item_id_item_id_fk",
          "tableFrom": "integration_item",
          "tableTo": "item",
          "columnsFrom": ["item_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "integration_item_integration_id_integration_id_fk": {
          "name": "integration_item_integration_id_integration_id_fk",
          "tableFrom": "integration_item",
          "tableTo": "integration",
          "columnsFrom": ["integration_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "integration_item_item_id_integration_id_pk": {
          "name": "integration_item_item_id_integration_id_pk",
          "columns": ["item_id", "integration_id"]
        }
      },
      "uniqueConstraints": {}
    },
    "integrationSecret": {
      "name": "integrationSecret",
      "columns": {
        "kind": {
          "name": "kind",
          "type": "varchar(16)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "value": {
          "name": "value",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "integration_id": {
          "name": "integration_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {
        "integration_secret__kind_idx": {
          "name": "integration_secret__kind_idx",
          "columns": ["kind"],
          "isUnique": false
        },
        "integration_secret__updated_at_idx": {
          "name": "integration_secret__updated_at_idx",
          "columns": ["updated_at"],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "integrationSecret_integration_id_integration_id_fk": {
          "name": "integrationSecret_integration_id_integration_id_fk",
          "tableFrom": "integrationSecret",
          "tableTo": "integration",
          "columnsFrom": ["integration_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "integrationSecret_integration_id_kind_pk": {
          "name": "integrationSecret_integration_id_kind_pk",
          "columns": ["integration_id", "kind"]
        }
      },
      "uniqueConstraints": {}
    },
    "integrationUserPermission": {
      "name": "integrationUserPermission",
      "columns": {
        "integration_id": {
          "name": "integration_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "permission": {
          "name": "permission",
          "type": "varchar(128)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {
        "integrationUserPermission_integration_id_integration_id_fk": {
          "name": "integrationUserPermission_integration_id_integration_id_fk",
          "tableFrom": "integrationUserPermission",
          "tableTo": "integration",
          "columnsFrom": ["integration_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "integrationUserPermission_user_id_user_id_fk": {
          "name": "integrationUserPermission_user_id_user_id_fk",
          "tableFrom": "integrationUserPermission",
          "tableTo": "user",
          "columnsFrom": ["user_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "integrationUserPermission_integration_id_user_id_permission_pk": {
          "name": "integrationUserPermission_integration_id_user_id_permission_pk",
          "columns": ["integration_id", "user_id", "permission"]
        }
      },
      "uniqueConstraints": {}
    },
    "integration": {
      "name": "integration",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "url": {
          "name": "url",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "kind": {
          "name": "kind",
          "type": "varchar(128)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {
        "integration__kind_idx": {
          "name": "integration__kind_idx",
          "columns": ["kind"],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "integration_id": {
          "name": "integration_id",
          "columns": ["id"]
        }
      },
      "uniqueConstraints": {}
    },
    "invite": {
      "name": "invite",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "token": {
          "name": "token",
          "type": "varchar(512)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "expiration_date": {
          "name": "expiration_date",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "creator_id": {
          "name": "creator_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {
        "invite_creator_id_user_id_fk": {
          "name": "invite_creator_id_user_id_fk",
          "tableFrom": "invite",
          "tableTo": "user",
          "columnsFrom": ["creator_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "invite_id": {
          "name": "invite_id",
          "columns": ["id"]
        }
      },
      "uniqueConstraints": {
        "invite_token_unique": {
          "name": "invite_token_unique",
          "columns": ["token"]
        }
      }
    },
    "item": {
      "name": "item",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "section_id": {
          "name": "section_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "kind": {
          "name": "kind",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "x_offset": {
          "name": "x_offset",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "y_offset": {
          "name": "y_offset",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "width": {
          "name": "width",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "height": {
          "name": "height",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "options": {
          "name": "options",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "('{\"json\": {}}')"
        },
        "advanced_options": {
          "name": "advanced_options",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "('{\"json\": {}}')"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "item_section_id_section_id_fk": {
          "name": "item_section_id_section_id_fk",
          "tableFrom": "item",
          "tableTo": "section",
          "columnsFrom": ["section_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "item_id": {
          "name": "item_id",
          "columns": ["id"]
        }
      },
      "uniqueConstraints": {}
    },
    "section": {
      "name": "section",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "board_id": {
          "name": "board_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "kind": {
          "name": "kind",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "x_offset": {
          "name": "x_offset",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "y_offset": {
          "name": "y_offset",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "width": {
          "name": "width",
          "type": "int",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "height": {
          "name": "height",
          "type": "int",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "parent_section_id": {
          "name": "parent_section_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {
        "section_board_id_board_id_fk": {
          "name": "section_board_id_board_id_fk",
          "tableFrom": "section",
          "tableTo": "board",
          "columnsFrom": ["board_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "section_parent_section_id_section_id_fk": {
          "name": "section_parent_section_id_section_id_fk",
          "tableFrom": "section",
          "tableTo": "section",
          "columnsFrom": ["parent_section_id"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "section_id": {
          "name": "section_id",
          "columns": ["id"]
        }
      },
      "uniqueConstraints": {}
    },
    "serverSetting": {
      "name": "serverSetting",
      "columns": {
        "key": {
          "name": "key",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "value": {
          "name": "value",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "('{\"json\": {}}')"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "serverSetting_key": {
          "name": "serverSetting_key",
          "columns": ["key"]
        }
      },
      "uniqueConstraints": {
        "serverSetting_key_unique": {
          "name": "serverSetting_key_unique",
          "columns": ["key"]
        }
      }
    },
    "session": {
      "name": "session",
      "columns": {
        "sessionToken": {
          "name": "sessionToken",
          "type": "varchar(512)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "userId": {
          "name": "userId",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "expires": {
          "name": "expires",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {
        "user_id_idx": {
          "name": "user_id_idx",
          "columns": ["userId"],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "session_userId_user_id_fk": {
          "name": "session_userId_user_id_fk",
          "tableFrom": "session",
          "tableTo": "user",
          "columnsFrom": ["userId"],
          "columnsTo": ["id"],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "session_sessionToken": {
          "name": "session_sessionToken",
          "columns": ["sessionToken"]
        }
      },
      "uniqueConstraints": {}
    },
    "user": {
      "name": "user",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "email": {
          "name": "email",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "emailVerified": {
          "name": "emailVerified",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "image": {
          "name": "image",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "password": {
          "name": "password",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "salt": {
          "name": "salt",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "provider": {
          "name": "provider",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'credentials'"
        },
        "homeBoardId": {
          "name": "homeBoardId",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {
        "user_homeBoardId_board_id_fk": {
          "name": "user_homeBoardId_board_id_fk",
          "tableFrom": "user",
          "tableTo": "board",
          "columnsFrom": ["homeBoardId"],
          "columnsTo": ["id"],
          "onDelete": "set null",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "user_id": {
          "name": "user_id",
          "columns": ["id"]
        }
      },
      "uniqueConstraints": {}
    },
    "verificationToken": {
      "name": "verificationToken",
      "columns": {
        "identifier": {
          "name": "identifier",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "token": {
          "name": "token",
          "type": "varchar(512)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "expires": {
          "name": "expires",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "verificationToken_identifier_token_pk": {
          "name": "verificationToken_identifier_token_pk",
          "columns": ["identifier", "token"]
        }
      },
      "uniqueConstraints": {}
    }
  },
  "_meta": {
    "schemas": {},
    "tables": {},
    "columns": {
      "\"section\".\"position\"": "\"section\".\"y_offset\""
    }
  },
  "internal": {
    "tables": {},
    "indexes": {}
  }
}
