@@ -55,49 +55,96 @@ Never generate SQL migration files. Instead after making changes to `./src/db/mi
5555
5656```
5757├── src/ # Source directory
58+ │ ├── actions/ # Server actions
59+ │ │ ├── credits.action.ts
60+ │ │ ├── sign-out.action.ts
61+ │ │ ├── team-actions.ts
62+ │ │ ├── team-membership-actions.ts
63+ │ │ └── team-role-actions.ts
5864│ ├── app/ # Next.js App Router
65+ │ │ ├── (admin)/ # Admin routes
66+ │ │ │ └── admin/
67+ │ │ │ ├── _actions/ # Admin-specific actions
68+ │ │ │ ├── _components/ # Admin-specific components
69+ │ │ │ └── users/ # User management
5970│ │ ├── (auth)/ # Auth-related routes
71+ │ │ │ ├── _components/ # Auth components (SSO buttons, etc.)
6072│ │ │ ├── sign-in/ # Sign in functionality
6173│ │ │ ├── sign-up/ # Sign up functionality
6274│ │ │ ├── forgot-password/ # Password reset request
63- │ │ │ └── reset-password/ # Password reset completion
75+ │ │ │ ├── reset-password/ # Password reset completion
76+ │ │ │ ├── passkey/ # Passkey/WebAuthn authentication
77+ │ │ │ ├── sso/ # SSO authentication
78+ │ │ │ │ └── google/ # Google OAuth
79+ │ │ │ ├── team-invite/ # Team invitation acceptance
80+ │ │ │ └── verify-email/ # Email verification
6481│ │ ├── (dashboard)/ # Dashboard and app features
82+ │ │ │ ├── dashboard/ # Main dashboard
83+ │ │ │ └── layout.tsx
6584│ │ ├── (legal)/ # Legal pages (terms, privacy)
6685│ │ ├── (marketing)/ # Landing pages and marketing
6786│ │ ├── (settings)/ # User settings pages
6887│ │ │ └── settings/
6988│ │ │ ├── profile/ # Profile settings
7089│ │ │ └── sessions/ # Session management
7190│ │ ├── teams/ # Team management
72- │ │ │ ├── [teamId ]/ # Team-specific routes
91+ │ │ │ ├── [teamSlug ]/ # Team-specific routes (dynamic)
7392│ │ │ │ ├── members/ # Team member management
7493│ │ │ │ ├── settings/ # Team settings
7594│ │ │ │ └── billing/ # Team billing
7695│ │ │ └── create/ # Team creation
96+ │ │ ├── dashboard/ # Additional dashboard routes
97+ │ │ │ └── billing/ # User billing
7798│ │ ├── api/ # API routes
99+ │ │ │ ├── auth/ # Auth API endpoints
100+ │ │ │ └── get-session/ # Session retrieval
78101│ │ └── globals.css # Global styles
79102│ ├── components/ # React components
80- │ │ ├── auth/ # Authentication components
81- │ │ ├── layout/ # Layout components
103+ │ │ ├── landing/ # Landing page components
82104│ │ ├── teams/ # Team-related components
83105│ │ └── ui/ # Shadcn UI components
84106│ ├── db/ # Database related code
85107│ │ ├── migrations/ # Database migrations
86108│ │ └── schema.ts # DrizzleORM schema
109+ │ ├── hooks/ # Custom React hooks
110+ │ │ ├── useMediaQuery.ts
111+ │ │ └── useSignOut.ts
112+ │ ├── icons/ # Custom icon components
113+ │ ├── layouts/ # Layout components
114+ │ ├── lib/ # Library utilities
115+ │ │ ├── sso/ # SSO integrations
116+ │ │ ├── stripe.ts # Stripe integration
117+ │ │ ├── try-catch.ts # Error handling utilities
118+ │ │ └── utils.ts # General utilities
87119│ ├── react-email/ # Email templates with react-email
88120│ │ ├── reset-password.tsx
89121│ │ ├── verify-email.tsx
90- │ │ └── team-invitation .tsx # Team invitation email
122+ │ │ └── team-invite .tsx
91123│ ├── schemas/ # Zod validation schemas
124+ │ ├── server/ # Server-side utilities
125+ │ │ ├── team-members.ts
126+ │ │ ├── team-roles.ts
127+ │ │ └── teams.ts
92128│ ├── state/ # Client state management (Zustand)
93- │ │ ├── session.ts # Session state store
94- │ │ └── team.ts # Team context state
95- │ └── utils/ # Core utilities
96- │ ├── auth.ts # Authentication logic
97- │ ├── email.tsx # Email sending utilities
98- │ ├── kv-session.ts # Session handling with KV
99- │ └── team-auth.ts # Team authorization utilities
129+ │ │ ├── config.ts
130+ │ │ ├── nav.ts
131+ │ │ ├── session.ts
132+ │ │ └── transaction.ts
133+ │ ├── utils/ # Core utilities
134+ │ │ ├── auth.ts # Authentication logic
135+ │ │ ├── auth-utils.ts # Auth helper utilities
136+ │ │ ├── credits.ts # Credit system utilities
137+ │ │ ├── email.tsx # Email sending utilities
138+ │ │ ├── kv-session.ts # Session handling with KV
139+ │ │ ├── team-auth.ts # Team authorization utilities
140+ │ │ ├── rate-limit.ts # Rate limiting
141+ │ │ ├── webauthn.ts # WebAuthn/Passkey utilities
142+ │ │ └── with-kv-cache.ts # KV caching utilities
143+ │ ├── constants.ts # Application constants
144+ │ ├── flags.ts # Feature flags
145+ │ └── types.ts # Type definitions
100146├── public/ # Static assets
147+ ├── scripts/ # Build and deployment scripts
101148└── .wrangler/ # Cloudflare Workers config
102149```
103150
0 commit comments