28 lines
633 B
TypeScript
28 lines
633 B
TypeScript
import type { Database } from "./database.d.ts";
|
|
|
|
export type Table<T extends keyof Database["public"]["Tables"]> =
|
|
Database["public"]["Tables"][T]["Row"];
|
|
export type Enum<T extends keyof Database["public"]["Enums"]> = Database["public"]["Enums"][T];
|
|
|
|
export const availableStudySpaceTags = [
|
|
"Quiet",
|
|
"Loud",
|
|
"Silent",
|
|
"Group study",
|
|
"Individual study",
|
|
"Power outlets",
|
|
"No power outlets",
|
|
"24/7",
|
|
"Food allowed",
|
|
"No food allowed",
|
|
"Good wifi",
|
|
"Bad wifi",
|
|
"No wifi",
|
|
"Whiteboard",
|
|
"Restricted access",
|
|
"Hot",
|
|
"Air conditioned",
|
|
"Cold",
|
|
"Cringe"
|
|
];
|