-
Notifications
You must be signed in to change notification settings - Fork 228
/
Copy pathinstant.schema.ts
67 lines (64 loc) · 1.68 KB
/
instant.schema.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// http://localhost:3000/dash?s=main&t=home&app=24a4d71b-7bb2-4630-9aee-01146af26239
// Docs: https://www.instantdb.com/docs/schema
import { i } from "@instantdb/core";
const graph = i.graph(
{
$users: i.entity({
email: i.string().unique().indexed(),
}),
"e2e-logging": i.entity({
"invalidator-rate": i.number(),
}),
"drop-refresh-spam": i.entity({
"default-value": i.boolean(),
"disabled-apps": i.any(),
"enabled-apps": i.any(),
}),
"friend-emails": i.entity({
email: i.string().unique(),
}),
"use-patch-presence": i.entity({
"default-value": i.boolean(),
disabled: i.boolean(),
"disabled-apps": i.any(),
"enabled-apps": i.any(),
}),
"power-user-emails": i.entity({
email: i.string().unique(),
}),
"promo-emails": i.entity({
email: i.string(),
}),
"rate-limited-apps": i.entity({
appId: i.string().unique(),
}),
"storage-whitelist": i.entity({
appId: i.string().unique().indexed(),
email: i.string(),
isEnabled: i.boolean(),
}),
"team-emails": i.entity({
email: i.string(),
}),
"test-emails": i.entity({
email: i.string(),
}),
"welcome-email-config": i.entity({
'enabled?': i.boolean(),
limit: i.number()
}),
"threading": i.entity({
"use-vfutures": i.boolean()
}),
"storage-migration": i.entity({
"disableLegacy?": i.boolean(),
"useLocationId?": i.boolean(),
}),
},
// You can define links here.
// For example, if `posts` should have many `comments`.
// More in the docs:
// https://www.instantdb.com/docs/schema#defining-links
{}
);
export default graph;