Node SDK: "createTable" does not create columns

Open
#136 3 comments 0 reactions 1 assignee View on GitHub

@ChiragAgg5k is already working on this.

Since Feb 24, 2026.

Assessment

This issue has not been assessed yet.

Description

👟 Reproduction steps

Here is my node.js createTable function:

  await db.createTable({
    databaseId,
    tableId: 'months',
    name: 'Months',
    permissions: [Permission.read(Role.user(userId)), Permission.write(Role.user(userId))],
    columns: [
      { key: 'budget_id', type: 'string', size: 255, required: true },
      { key: 'month', type: 'integer', required: true, min: 1, max: 12 },
      { key: 'year', type: 'integer', required: true, min: 1970, max: 9999 },
      { key: 'category_id', type: 'string', size: 255, required: true },
      { key: 'rollover', type: 'float', default: 0 },
      { key: 'assigned', type: 'float', default: 0 },
      { key: 'activity', type: 'float', default: 0 },
      { key: 'available', type: 'float', default: 0 },
      { key: 'deleted_at', type: 'datetime', required: false }
    ],
    indexes: []
  })

and it does not create the provided columns:

Image
👍 Expected behavior

the columns are created as specified

👎 Actual Behavior

no columns created

🎲 Appwrite version

Version 1.8.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?
  • I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
Dominant language
TypeScript
Stars
257
Forks
45
Avg merge
11h 59m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from appwrite/sdk-for-node

All issues in appwrite/sdk-for-node

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.