Skip to content

Commit eb85e99

Browse files
committed
test: added giant schema to test
1 parent 1de3c55 commit eb85e99

File tree

10 files changed

+16205
-315
lines changed

10 files changed

+16205
-315
lines changed

db/drizzle/schema.ts

Lines changed: 1642 additions & 0 deletions
Large diffs are not rendered by default.

integration/drizzle-zero.config.ts

Lines changed: 78 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,87 @@
11
import { drizzleZeroConfig } from "drizzle-zero";
2-
import * as drizzleSchema from "@drizzle-zero/db/schema";
2+
import * as drizzleSchema from "./drizzle";
33

44
export const schema = drizzleZeroConfig(drizzleSchema, {
55
tables: {
6-
user: {
7-
createdAt: true,
8-
updatedAt: true,
9-
id: true,
10-
name: true,
11-
partner: true,
12-
email: true,
13-
customTypeJson: true,
14-
customInterfaceJson: true,
15-
testInterface: true,
16-
testType: true,
17-
testExportedType: true,
18-
},
19-
medium: {
20-
createdAt: true,
21-
updatedAt: true,
22-
id: true,
23-
name: true,
24-
},
25-
message: {
26-
createdAt: true,
27-
updatedAt: true,
28-
id: true,
29-
senderId: true,
30-
mediumId: true,
31-
body: true,
32-
metadata: true,
33-
},
346
allTypes: true,
7+
analyticsDashboard: true,
8+
analyticsWidget: true,
9+
analyticsWidgetQuery: true,
10+
benefitEnrollment: true,
11+
benefitPlan: true,
12+
billingInvoice: true,
13+
billingInvoiceLine: true,
14+
budget: true,
15+
budgetLine: true,
16+
crmAccount: true,
17+
crmActivity: true,
18+
crmActivityType: true,
19+
crmContact: true,
20+
crmNote: true,
21+
crmOpportunity: true,
22+
crmOpportunityStageHistory: true,
23+
crmPipelineStage: true,
24+
department: true,
25+
documentFile: true,
26+
documentFileVersion: true,
27+
documentFolder: true,
28+
documentLibrary: true,
29+
documentSharing: true,
30+
employeeDocument: true,
31+
employeeProfile: true,
32+
employmentHistory: true,
33+
expenseItem: true,
34+
expenseReport: true,
35+
filters: true,
3536
friendship: true,
36-
filters: {
37-
id: true,
38-
name: true,
39-
parentId: true,
40-
},
37+
integrationCredential: true,
38+
integrationEvent: true,
39+
integrationWebhook: true,
40+
inventoryItem: true,
41+
inventoryLevel: true,
42+
inventoryLocation: true,
43+
ledgerAccount: true,
44+
ledgerEntry: true,
45+
ledgerTransaction: true,
46+
marketingAudience: true,
47+
marketingCampaign: true,
48+
marketingCampaignAudience: true,
49+
marketingCampaignChannel: true,
50+
marketingChannel: true,
51+
medium: true,
52+
message: true,
53+
omittedTable: true,
54+
orderItem: true,
55+
orderPayment: true,
56+
orderTable: true,
57+
payment: true,
58+
product: true,
59+
productCategory: true,
60+
productMedia: true,
61+
productVariant: true,
62+
project: true,
63+
projectAssignment: true,
64+
projectAttachment: true,
65+
projectAudit: true,
66+
projectComment: true,
67+
projectNote: true,
68+
projectPhase: true,
69+
projectTag: true,
70+
projectTask: true,
71+
projectTaskTag: true,
72+
projectTaskTagLink: true,
73+
shipment: true,
74+
shipmentItem: true,
75+
supportTicket: true,
76+
supportTicketAssignment: true,
77+
supportTicketAudit: true,
78+
supportTicketMessage: true,
79+
supportTicketTag: true,
80+
supportTicketTagLink: true,
81+
team: true,
82+
timeEntry: true,
83+
timesheet: true,
84+
user: true,
4185
},
4286
manyToMany: {
4387
user: {

integration/drizzle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../db/drizzle/schema.ts

integration/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6+
"build": "tsc",
67
"drizzle-zero:generate": "drizzle-zero generate -f",
78
"pretest": "pnpm drizzle-zero:generate",
8-
"test": "vitest run"
9+
"test": "pnpm build && vitest run"
910
},
1011
"dependencies": {
1112
"@drizzle-zero/custom-types": "workspace:*",

integration/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"declarationMap": true,
1818
"sourceMap": true,
1919
"declaration": true,
20-
"noEmit": true,
2120
"forceConsistentCasingInFileNames": true,
2221
"allowJs": true,
2322
"types": ["node", "vitest"],
@@ -27,7 +26,8 @@
2726
"baseUrl": ".",
2827
"paths": {
2928
"@/*": ["./*"]
30-
}
29+
},
30+
"outDir": "./dist"
3131
},
3232
"include": ["**/*.ts"]
3333
}

0 commit comments

Comments
 (0)