feat: add database schema and connection pool
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import * as schema from '$lib/server/schema';
|
||||
|
||||
describe('schema exports', () => {
|
||||
it('exports all core tables', () => {
|
||||
const tables = [
|
||||
'users', 'sessions', 'pets', 'petPhotos', 'petMedical',
|
||||
'fosterAssignments', 'mentors', 'petMentors', 'applications',
|
||||
'applicationHomevisitNotes', 'vets', 'intakeSources', 'sponsors',
|
||||
'donations', 'expenses', 'events', 'happyTails', 'fosterSubmissions',
|
||||
'supplyRequests', 'contentBlocks', 'newsletterSubscribers',
|
||||
'contactMessages', 'siteSettings', 'orgConfig', 'auditLog',
|
||||
'pageViews', 'aiJobs'
|
||||
];
|
||||
for (const table of tables) {
|
||||
expect(schema).toHaveProperty(table);
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user