implement better-auth auth with postgres and route protection
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export type User = {
|
||||
id: number;
|
||||
id: string;
|
||||
email: string;
|
||||
name: string | null;
|
||||
image: string | null;
|
||||
@@ -7,7 +7,7 @@ export type User = {
|
||||
|
||||
export type WatchlistItem = {
|
||||
id: number;
|
||||
user_id: number;
|
||||
user_id: string;
|
||||
ticker: string;
|
||||
company_name: string;
|
||||
sector: string | null;
|
||||
@@ -16,7 +16,7 @@ export type WatchlistItem = {
|
||||
|
||||
export type Holding = {
|
||||
id: number;
|
||||
user_id: number;
|
||||
user_id: string;
|
||||
ticker: string;
|
||||
shares: string;
|
||||
avg_cost: string;
|
||||
@@ -68,6 +68,7 @@ export type TaskType = 'sync_filings' | 'refresh_prices' | 'analyze_filing' | 'p
|
||||
|
||||
export type Task = {
|
||||
id: string;
|
||||
user_id: string;
|
||||
task_type: TaskType;
|
||||
status: TaskStatus;
|
||||
priority: number;
|
||||
@@ -83,7 +84,7 @@ export type Task = {
|
||||
|
||||
export type PortfolioInsight = {
|
||||
id: number;
|
||||
user_id: number;
|
||||
user_id: string;
|
||||
provider: string;
|
||||
model: string;
|
||||
content: string;
|
||||
|
||||
Reference in New Issue
Block a user