41 lines
653 B
TypeScript
41 lines
653 B
TypeScript
// DB Types
|
|
|
|
export type User = {
|
|
id: string
|
|
name: string
|
|
email: string
|
|
sandbox: Sandbox[]
|
|
usersToSandboxes: UsersToSandboxes[]
|
|
}
|
|
|
|
export type Sandbox = {
|
|
id: string
|
|
name: string
|
|
type: "react" | "node"
|
|
visibility: "public" | "private"
|
|
userId: string
|
|
usersToSandboxes: UsersToSandboxes[]
|
|
}
|
|
|
|
export type UsersToSandboxes = {
|
|
userId: string
|
|
sandboxId: string
|
|
}
|
|
|
|
export type R2Files = {
|
|
objects: R2FileData[]
|
|
truncated: boolean
|
|
delimitedPrefixes: any[]
|
|
}
|
|
|
|
export type R2FileData = {
|
|
storageClass: string
|
|
uploaded: string
|
|
checksums: any
|
|
httpEtag: string
|
|
etag: string
|
|
size: number
|
|
version: string
|
|
key: string
|
|
}
|