-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.d.ts
26 lines (25 loc) · 1.08 KB
/
global.d.ts
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
import type { Database as DB } from './types/supabase'
declare global {
type Database = DB
type SupabaseError = { data: null; status: number }
type Participants = Database['public']['Tables']['participants']['Row']
type Evidence = Database['public']['Tables']['evidence']['Row']
type Quiz = Database['public']['Tables']['quiz']['Row']
type participantQuiz = Database['public']['Tables']['participantQuiz']['Row']
type quizResultsView = Database['public']['Views']['quizresults']['Row']
type AnswerType = {
answer: string
option: number
isCorrect: boolean
}
type financeType = Database['public']['Tables']['finance']['Row']
type Sancion = Database['public']['Tables']['sancion']['Row']
type participantEvidenceView =
Database['public']['Views']['participantevidenceview']['Row']
type participantStats =
Database['public']['Views']['participant_stats']['Row']
type participantsancionview =
Database['public']['Views']['participantsancionview']['Row']
type pendingSancionView =
Database['public']['Views']['participantpendingsancionview']['Row']
}