-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.ts
More file actions
54 lines (54 loc) · 1.65 KB
/
Copy pathdatabase.ts
File metadata and controls
54 lines (54 loc) · 1.65 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* Minimal typed schema matching supabase/migrations/0001_init.sql.
* Regenerate with `supabase gen types typescript` once the project
* is live to keep this in sync - see /docs/DATABASE.md.
*/
export interface Database {
public: {
Tables: {
profiles: {
Row: {
id: string;
email: string;
full_name: string;
role: "director" | "council" | "contributor" | "viewer";
avatar_url: string | null;
region: string | null;
created_at: string;
};
Insert: Partial<Database["public"]["Tables"]["profiles"]["Row"]> & {
id: string;
email: string;
};
Update: Partial<Database["public"]["Tables"]["profiles"]["Row"]>;
};
treasury_transactions: {
Row: {
id: string;
type: "inflow" | "outflow";
category: string;
amount_usd: number;
currency: "USD" | "USDm" | "CELO";
description: string;
tx_hash: string | null;
occurred_at: string;
created_by: string;
};
Insert: Partial<Database["public"]["Tables"]["treasury_transactions"]["Row"]>;
Update: Partial<Database["public"]["Tables"]["treasury_transactions"]["Row"]>;
};
audit_log: {
Row: {
id: string;
actor_id: string;
action: string;
target: string;
metadata: Record<string, unknown> | null;
created_at: string;
};
Insert: Partial<Database["public"]["Tables"]["audit_log"]["Row"]>;
Update: Partial<Database["public"]["Tables"]["audit_log"]["Row"]>;
};
};
};
}