Tables & Schemas
Tables are the core of CordBase. Each table defines a schema that auto-generates slash commands for your server members.
Column Types
Every column has a type that determines how data is validated, stored, and displayed in Discord.
Text
Free-form text. Use for names, descriptions, notes, or any string data.
Number
Integer or decimal values. Number columns power the leaderboard command and can be incremented with update. Ideal for scores, prices, quantities, and XP.
Date
A date, entered as YYYY-MM-DD. Useful for deadlines and event dates.
Boolean
A true/false toggle. Great for status flags like completed, active, verified, or paid.
Select
A predefined list of options that you define when creating the column. Perfect for categories, rarities, status values, and roles.
User
A reference to a Discord user. Stored as a user ID and displayed with the username. Use for ownership and assignments.
Column Settings
- Required — When enabled, the slash command will require this field. When disabled, the field is optional and can be left blank.
Editing a Table Schema
You can edit a table after creation from the dashboard. Go to your table and click Edit Table.
- Add columns — New columns are added to the end of the schema. Existing rows get a null value for the new column until updated.
- Rename columns — Changes the display name shown in the dashboard and in bot replies. The option name members type stays the same.
- Remove columns — Removes the column from the table and its slash commands.
Existing column keys and types are locked once a table is created. To change a column's type, add a new column and remove the old one.
After saving changes, CordBase re-registers the slash commands with Discord. This takes a few seconds to propagate.
Role-Based Permissions
Each table has three permission levels that can be assigned to Discord roles:
- Read — Can use
query,view,saved-viewandleaderboardto view data. - Write — Includes Read permissions plus
addandupdateon any row. - Admin — Full access including
delete,bulk-update, andbulk-delete. Bulk commands need a Pro or Team plan.
Until you assign roles to a table, every member can run all of its commands, including delete. Once you assign any role, members without one of the listed roles can't use the table at all, so give Read to a role every member has if the table should stay public. Discord administrators can always run everything.