You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Prefer named exportsexportconstusers=pgTable("users",{});exporttypeUser=typeofusers.$inferSelect;// Re-export from index filesexport*from"./users";export*from"./institutions";// Use absolute imports with @/ prefiximport{auth}from"@/auth";import{db}from"@/db";import{Button}from"@/components/ui/button";
Code Quality Standards
Imports
Use absolute imports with @/ prefix
Group imports: external libraries, then internal modules
Use type imports when importing only types: import type { User } from
Naming Conventions
camelCase for variables and functions
PascalCase for components and types
UPPER_SNAKE_CASE for constants
kebab-case for file names
TypeScript Patterns
Use Drizzle's $inferSelect and $inferInsert for table types
Export types alongside table definitions
Use typeof for enum-like constants: $type<(typeof userRoles)[number]>()