Skip to content

Commit

Permalink
Updating tables
Browse files Browse the repository at this point in the history
  • Loading branch information
iamhectorsosa committed Jul 14, 2024
1 parent d60b11b commit 6b671ed
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 50 deletions.
2 changes: 1 addition & 1 deletion apps/next/app/profiles/_components/all-profiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from "@/components/ui/card"
import { Skeleton } from "@/components/ui/skeleton"

import { getAllProfiles } from "@/database/profile"
import { getAllProfiles } from "@/database/profiles"

export const AllProfiles: React.FC = () => {
const { resolvedTheme: theme } = useTheme()
Expand Down
2 changes: 1 addition & 1 deletion apps/next/app/profiles/_components/update-profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { PartialExcept, Profile } from "@/database/types"
import {
getProfile,
updateProfile as updateProfileFn,
} from "@/database/profile"
} from "@/database/profiles"

export const UpdateProfile: React.FC<{ userId: string }> = ({ userId }) => {
const profile = useQuery({
Expand Down
2 changes: 1 addition & 1 deletion apps/next/app/profiles/_components/user-profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
TableRow,
} from "@/components/ui/table"

import { getProfile } from "@/database/profile"
import { getProfile } from "@/database/profiles"

export const UserProfile: React.FC<{ userId: string }> = ({ userId }) => {
const { resolvedTheme: theme } = useTheme()
Expand Down
File renamed without changes.
44 changes: 0 additions & 44 deletions apps/next/database/types/supabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,50 +34,6 @@ export type Database = {
}
public: {
Tables: {
bookmarks: {
Row: {
created_at: string
created_by: string
description: string
id: string
image_url: string | null
tags: string[] | null
title: string
updated_at: string
url: string
}
Insert: {
created_at?: string
created_by: string
description: string
id?: string
image_url?: string | null
tags?: string[] | null
title: string
updated_at?: string
url: string
}
Update: {
created_at?: string
created_by?: string
description?: string
id?: string
image_url?: string | null
tags?: string[] | null
title?: string
updated_at?: string
url?: string
}
Relationships: [
{
foreignKeyName: "bookmarks_created_by_fkey"
columns: ["created_by"]
isOneToOne: false
referencedRelation: "users"
referencedColumns: ["id"]
},
]
}
profiles: {
Row: {
created_at: string
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ Authentication supports the following methods:

### `getProfile`

<<< ../../apps/next/database/profile.ts#getProfile
<<< ../../apps/next/database/profiles.ts#getProfile

### `updateProfile`

<<< ../../apps/next/database/profile.ts#updateProfile
<<< ../../apps/next/database/profiles.ts#updateProfile
4 changes: 3 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"db:reset": {
"cache": false
},
"db:gen-types": {},
"db:gen-types": {
"cache": false
},
"email:dev": {
"cache": false
},
Expand Down

0 comments on commit 6b671ed

Please sign in to comment.