Initial commit — eLegal Software monorepo

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Leon Serfaty
2026-04-26 02:42:42 -04:00
co-authored by Claude Sonnet 4.6
commit 0700d54225
160 changed files with 22771 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import { pgTable, uuid, text, timestamp, index } from 'drizzle-orm/pg-core';
import { firms } from './firms';
export const clients = pgTable(
'clients',
{
id: uuid('id').defaultRandom().primaryKey(),
firmId: uuid('firm_id')
.notNull()
.references(() => firms.id, { onDelete: 'cascade' }),
name: text('name').notNull(),
email: text('email'),
phone: text('phone'),
address: text('address'),
notes: text('notes'),
createdAt: timestamp('created_at', { withTimezone: true }).notNull().defaultNow(),
updatedAt: timestamp('updated_at', { withTimezone: true }).notNull().defaultNow(),
},
(t) => ({
firmIdx: index('clients_firm_idx').on(t.firmId),
}),
);