20 lines
491 B
TypeScript
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"];
|