41 lines
653 B
TypeScript
Raw Normal View History

// DB Types
export type User = {
id: string
name: string
email: string
2024-04-18 15:25:20 -04:00
sandbox: Sandbox[]
2024-05-01 01:53:49 -04:00
usersToSandboxes: UsersToSandboxes[]
}
export type Sandbox = {
id: string
name: string
type: "react" | "node"
2024-04-27 16:22:35 -04:00
visibility: "public" | "private"
userId: string
2024-05-01 01:53:49 -04:00
usersToSandboxes: UsersToSandboxes[]
}
export type UsersToSandboxes = {
userId: string
sandboxId: string
}
2024-04-26 00:10:53 -04:00
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
}