File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/routes/docs/products/auth/multi-tenancy Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,8 @@ const document = await databases.createDocument(
200
200
title: 'Q2 Invoice',
201
201
amount: 2500.00,
202
202
customer: 'Example Customer',
203
- status: 'pending'
203
+ status: 'pending',
204
+ tenant_id: 'example_corp'
204
205
},
205
206
[
206
207
// All Example Corp team members can read
@@ -229,7 +230,8 @@ final document = await databases.createDocument(
229
230
'title': 'Q2 Invoice',
230
231
'amount': 2500.00,
231
232
'customer': 'Example Customer',
232
- 'status': 'pending'
233
+ 'status': 'pending',
234
+ 'tenant_id': 'example_corp'
233
235
},
234
236
permissions: [
235
237
// All Example Corp team members can read
@@ -258,7 +260,8 @@ let document = try await databases.createDocument(
258
260
"title": "Q2 Invoice",
259
261
"amount": 2500.00,
260
262
"customer": "Example Customer",
261
- "status": "pending"
263
+ "status": "pending",
264
+ "tenant_id": "example_corp"
262
265
],
263
266
permissions: [
264
267
// All Example Corp team members can read
@@ -291,7 +294,8 @@ val document = databases.createDocument(
291
294
"title" to "Q2 Invoice",
292
295
"amount" to 2500.00,
293
296
"customer" to "Example Customer",
294
- "status" to "pending"
297
+ "status" to "pending",
298
+ "tenant_id" to "example_corp"
295
299
),
296
300
permissions = listOf(
297
301
// All Example Corp team members can read
You can’t perform that action at this time.
0 commit comments