Create a database
Create a table
psql
, you can do \d todos
in order to view the schema.See the tenant_id
column? By specifying this column, You are making the table tenant aware. The rows in it will belong to specific tenants. If you leave it out, the table is considered shared, more on this later.
Insert first tenant/customer
tenants
table that you used earlier. They are covered in more depth in our concepts documentation.Meanwhile, lets insert a tenant into the built-in tenant table:Insert first todo task
Add another tenant and todo
Try tenant isolation
Use vector similarity with tenant isolation
What's next?