Help Center
/
Table (or Collection) and Data Permission
A data table (or some called collection) is a group of related data (or columns). For example, the Movies
table will have a list of movies with name
, releaseDate
, rating
columns. And there can be many tables in a database.
In this document, you'll learn about:
Before you begin, make sure you have already connected to a database
You can restrict users to perform an action they're not supported to by setting Data Permission for User Role. For example, only you can create/update/delete a Movie
item, while everyone can view it.
User Roles are types of users, which are:
Admin
: users that manage the database, including youEveryone
: everyone online, including adminThere are 4 types of access Permission to your data:
Read
: allow someone to view, or list your dataCreate
: allow someone to create a new item on a data tableUpdate
: allow someone to update an existing item on a data tableDelete
: allow someone to remove an existing item on a data tableWhen you want to restrict everyone else except you to add, update or delete a Movie
item, you will set Read
permission to Everyone
, and Admin
for the rest. But if you need everyone to rate for a Movie
, you will need to set Update
to Everyone
.
To create a new table, or link to an existing one on your database, open (Database Panel) located at the bottom right of the Designer Panel. Navigate to your database connection, then:
As mention earlier, each table contains a few data columns. For example, name
, releaseDate
, rating
are columns in a table. On some database, columns are also called keys.
Each data column is also defined with its data type. Current, :
datetime
: date and time data typetext
: any text, label, paragraphnumber
: numeric data typeboolean
: only true
or false
valuesBesides, there are a few other types that is also one of the above, but for convienient:
image
: basically type string
(have upload image feature on some places in the Editor)Note: if you linked to an existing table, for some database, Inverr will automatically get existing table keys. Otherwise, you can add keys to your table.
To add more table columns, you can:
Click on icon button (located at the further left of the table), a Add data field modal will popup.
Enter the following fields:
Text
for name, or Datetime
for releaseDate)John
, {date.now}
, or {calc(item.views + 1)}
)Click
to create. It will create a new column on your database, and will show an error if it already existFinished. The new table column should appear on your table view
Now, you've understand a data table (or collection) contains many table columns to store related data. For example, table Movie
has its columns such as name
, releaseDate
and rating
.
You can restrict users perform read, create, update or delete your data by specifying Data Permission. Which can either be Admin, or Everyone.
Share
Last updated on 19/01/2022
Rebit provides a set of tools, make it easier to change, help you save time and money to evolve your business
© 2021 Rebit
Privacy Policy
Terms of Use