Skip to content

Commit 3c0e3be

Browse files
committed
Add tenant_id field to document examples
1 parent 34b3228 commit 3c0e3be

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/routes/docs/products/auth/multi-tenancy/+page.markdoc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ const document = await databases.createDocument(
200200
title: 'Q2 Invoice',
201201
amount: 2500.00,
202202
customer: 'Example Customer',
203-
status: 'pending'
203+
status: 'pending',
204+
tenant_id: 'example_corp'
204205
},
205206
[
206207
// All Example Corp team members can read
@@ -229,7 +230,8 @@ final document = await databases.createDocument(
229230
'title': 'Q2 Invoice',
230231
'amount': 2500.00,
231232
'customer': 'Example Customer',
232-
'status': 'pending'
233+
'status': 'pending',
234+
'tenant_id': 'example_corp'
233235
},
234236
permissions: [
235237
// All Example Corp team members can read
@@ -258,7 +260,8 @@ let document = try await databases.createDocument(
258260
"title": "Q2 Invoice",
259261
"amount": 2500.00,
260262
"customer": "Example Customer",
261-
"status": "pending"
263+
"status": "pending",
264+
"tenant_id": "example_corp"
262265
],
263266
permissions: [
264267
// All Example Corp team members can read
@@ -291,7 +294,8 @@ val document = databases.createDocument(
291294
"title" to "Q2 Invoice",
292295
"amount" to 2500.00,
293296
"customer" to "Example Customer",
294-
"status" to "pending"
297+
"status" to "pending",
298+
"tenant_id" to "example_corp"
295299
),
296300
permissions = listOf(
297301
// All Example Corp team members can read

0 commit comments

Comments
 (0)