Home / File/ neon-auth.ts — drizzle-orm Source File

neon-auth.ts — drizzle-orm Source File

Architecture documentation for neon-auth.ts, a typescript file in the drizzle-orm codebase. 1 imports, 0 dependents.

File typescript 1 imports

Entity Profile

Dependency Diagram

graph LR
  ad4665fe_5559_18db_5ba5_d28196ea76f5["neon-auth.ts"]
  fa14e9c0_b73d_4bcb_463b_adf18df8a285["index.ts"]
  ad4665fe_5559_18db_5ba5_d28196ea76f5 --> fa14e9c0_b73d_4bcb_463b_adf18df8a285
  style ad4665fe_5559_18db_5ba5_d28196ea76f5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { jsonb, pgSchema, text, timestamp } from '~/pg-core/index.ts';

const neonAuthSchema = pgSchema('neon_auth');

/**
 * Table schema of the `users_sync` table used by Neon Auth.
 * This table automatically synchronizes and stores user data from external authentication providers.
 *
 * @schema neon_auth
 * @table users_sync
 */
export const usersSync = neonAuthSchema.table('users_sync', {
	rawJson: jsonb('raw_json').notNull(),
	id: text().primaryKey().notNull(),
	name: text(),
	email: text(),
	createdAt: timestamp('created_at', { withTimezone: true, mode: 'string' }),
	deletedAt: timestamp('deleted_at', { withTimezone: true, mode: 'string' }),
	updatedAt: timestamp('updated_at', { withTimezone: true, mode: 'string' }),
});

Dependencies

  • index.ts

Frequently Asked Questions

What does neon-auth.ts do?
neon-auth.ts is a source file in the drizzle-orm codebase, written in typescript.
What does neon-auth.ts depend on?
neon-auth.ts imports 1 module(s): index.ts.
Where is neon-auth.ts in the architecture?
neon-auth.ts is located at drizzle-orm/src/neon/neon-auth.ts (directory: drizzle-orm/src/neon).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free