Files
opencode/script/ast-grep/rule-tests/no-drizzle-column-name-test.yml
2026-07-03 13:58:26 -04:00

15 lines
370 B
YAML

id: no-drizzle-column-name
valid:
- |
const table = sqliteTable("session", {
project_id: text().notNull(),
time_created: integer().notNull(),
payload: text({ mode: "json" }),
})
invalid:
- |
const table = sqliteTable("session", {
projectID: text("project_id").notNull(),
createdAt: integer("time_created").notNull(),
})