Skip to content

Commit

Permalink
Update CC types
Browse files Browse the repository at this point in the history
  • Loading branch information
0xGeel committed May 24, 2023
1 parent 150ec36 commit b412cd5
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 130 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
main:
runs-on: ubuntu-latest
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON: ${{ secrets.SUPABASE_ANON }}
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON }}
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
main:
runs-on: ubuntu-latest
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON: ${{ secrets.SUPABASE_ANON }}
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON }}
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/checkAuthentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export async function checkAuthentication(
const siweSesh = await getSiweSesh();

try {
const { data } = await Supabase.from("calcium-crew-holders")
const { data } = await Supabase.from("calcium_crew_holders")
.select("*")
.eq("eth_address", siweSesh.address?.toLowerCase())
.single();
Expand Down
222 changes: 97 additions & 125 deletions src/utils/supabase/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,154 +4,126 @@ export type Json =
| boolean
| null
| { [key: string]: Json }
| Json[];
| Json[]

export interface Database {
public: {
Tables: {
"calcium-crew-holders": {
calcium_crew_holders: {
Row: {
amount: number;
cc_ids: string[];
created_at: string;
eth_address: string;
id: number;
};
amount: number
cc_ids: string[]
created_at: string
eth_address: string
id: number
}
Insert: {
amount: number;
cc_ids: string[];
created_at?: string;
eth_address: string;
id?: number;
};
amount: number
cc_ids: string[]
created_at?: string
eth_address: string
id?: number
}
Update: {
amount?: number;
cc_ids?: string[];
created_at?: string;
eth_address?: string;
id?: number;
};
};
amount?: number
cc_ids?: string[]
created_at?: string
eth_address?: string
id?: number
}
}
content_types: {
Row: {
content_id: number;
content_name: string;
};
content_id: number
content_name: string
}
Insert: {
content_id?: number;
content_name: string;
};
content_id?: number
content_name: string
}
Update: {
content_id?: number;
content_name?: string;
};
};
roles: {
Row: {
role_id: number;
role_name: string;
};
Insert: {
role_id?: number;
role_name: string;
};
Update: {
role_id?: number;
role_name?: string;
};
};
content_id?: number
content_name?: string
}
}
unlock_criteria: {
Row: {
id: number;
nft_id: string;
owner: string;
unlockable_id: string;
updated_at: string | null;
};
id: number
nft_id: string
owner: string
unlockable_id: string
updated_at: string | null
}
Insert: {
id?: number;
nft_id: string;
owner: string;
unlockable_id: string;
updated_at?: string | null;
};
id?: number
nft_id: string
owner: string
unlockable_id: string
updated_at?: string | null
}
Update: {
id?: number;
nft_id?: string;
owner?: string;
unlockable_id?: string;
updated_at?: string | null;
};
};
id?: number
nft_id?: string
owner?: string
unlockable_id?: string
updated_at?: string | null
}
}
unlockables: {
Row: {
content_type_id: number;
content_url: string;
criteria_unlock_amount: number;
description: string | null;
id: string;
name: string | null;
owner: string;
updated_at: string | null;
};
Insert: {
content_type_id: number;
content_url: string;
criteria_unlock_amount: number;
description?: string | null;
id?: string;
name?: string | null;
owner: string;
updated_at?: string | null;
};
Update: {
content_type_id?: number;
content_url?: string;
criteria_unlock_amount?: number;
description?: string | null;
id?: string;
name?: string | null;
owner?: string;
updated_at?: string | null;
};
};
users: {
Row: {
eth_address: string;
role_id: number;
};
content_type_id: number
content_url: string
criteria_unlock_amount: number
description: string | null
id: string
name: string | null
owner: string
updated_at: string | null
}
Insert: {
eth_address: string;
role_id: number;
};
content_type_id: number
content_url: string
criteria_unlock_amount: number
description?: string | null
id?: string
name?: string | null
owner: string
updated_at?: string | null
}
Update: {
eth_address?: string;
role_id?: number;
};
};
};
content_type_id?: number
content_url?: string
criteria_unlock_amount?: number
description?: string | null
id?: string
name?: string | null
owner?: string
updated_at?: string | null
}
}
}
Views: {
unlockables_with_criteria: {
Row: {
content_url: string | null;
criteria_unlock_amount: number | null;
description: string | null;
id: string | null;
name: string | null;
nft_ids: string | null;
owner: string | null;
updated_at: string | null;
};
};
};
content_url: string | null
criteria_unlock_amount: number | null
description: string | null
id: string | null
name: string | null
nft_ids: string | null
owner: string | null
updated_at: string | null
}
}
}
Functions: {
[_ in never]: never;
};
[_ in never]: never
}
Enums: {
[_ in never]: never;
};
[_ in never]: never
}
CompositeTypes: {
[_ in never]: never;
};
};
[_ in never]: never
}
}
}

0 comments on commit b412cd5

Please sign in to comment.