sharing logic

This commit is contained in:
Ishaan Dey
2024-05-01 01:53:49 -04:00
parent 66a76eb0f9
commit 5ba1c03030
8 changed files with 90 additions and 38 deletions

View File

@ -5,6 +5,10 @@ export type User = {
name: string
email: string
sandbox: Sandbox[]
usersToSandboxes: {
userId: string
sandboxId: string
}[]
}
export type Sandbox = {
@ -13,6 +17,10 @@ export type Sandbox = {
type: "react" | "node"
visibility: "public" | "private"
userId: string
usersToSandboxes: {
userId: string
sandboxId: string
}[]
}
export type TFolder = {