xtablo-source/xtablo-expo/types/tablos.types.ts
2025-07-17 23:10:55 +02:00

20 lines
491 B
TypeScript

import { Database } from "@/types/database.types";
import { RemoveNullFromObject } from "@/types/removeNull";
export type UserTablo = RemoveNullFromObject<
Database["public"]["Views"]["user_tablos"]["Row"],
| "id"
| "access_level"
| "is_admin"
| "created_at"
| "deleted_at"
| "position"
| "user_id"
| "name"
| "status"
>;
export type Tablo = Database["public"]["Tables"]["tablos"];
export type TabloInsert = Tablo["Insert"];
export type TabloUpdate = Tablo["Update"];