I'm coming from Firebase I'm trying to get the types for database. For example, I'm used to get the type for timestamp like this:
import type { Timestamp } from 'firebase/firestore';
export type User = {
//..
createdAt: Timestamp;
updatedAt: Timestamp | null;
};
How do I get the types for Supabase database?
You can check out the official Supabase docs for Generating Types. There are few examples as well that you can refer to.
https://supabase.com/docs/guides/api/generating-types