-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtype.ts
More file actions
35 lines (26 loc) · 794 Bytes
/
type.ts
File metadata and controls
35 lines (26 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { Database } from './types/supabase';
export type ActionType<T> = {
success: boolean;
message: string;
data?: T;
};
export type SeesionData = {
id: string;
name: string;
image: string | null;
email: string;
OAuth?: string;
OAuthId?: string;
};
export type Post = Database['public']['Tables']['posts']['Row'];
export type Comment = Database['public']['Tables']['comments']['Row'];
export type SupabaseUser = Database['public']['Tables']['users']['Row'];
export type Log = Database['public']['Tables']['activity_logs']['Row'];
export type Alarm = Database['public']['Tables']['alarms']['Row'];
export type TemporaryPost =
Database['public']['Tables']['temporary_posts']['Row'];
export type GitHubLog = {
createdAt: string;
count: number;
url: string;
};