Skip to content
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/good-cities-cut.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@internals/project-config': minor
'@example/erp': minor
---

[[DRIZZ-60] Default API Handler](https://app.plane.so/softnetics/browse/DRIZZ-60/)
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
with:
fetch-depth: 0

- name: Setup GitHub Actions caching for Turbo
uses: dtinth/setup-github-actions-caching-for-turbo@v1
- name: Cache for Turbo
uses: rharkor/caching-for-turbo@v1.5

- name: Setup pnpm
uses: pnpm/action-setup@v4
Expand Down
2 changes: 1 addition & 1 deletion examples/erp/drizzlify/collections/categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { builder } from '../helper'

export const categoriesCollection = builder.collection('categories', {
slug: 'categories',
primaryField: 'id',
identifierColumn: 'id',
fields: builder.fields('categories', (fb) => ({
id: fb.columns('id', {
type: 'text',
Expand Down
2 changes: 1 addition & 1 deletion examples/erp/drizzlify/collections/posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { builder } from '../helper'

export const postsCollection = builder.collection('posts', {
slug: 'posts',
primaryField: 'id',
identifierColumn: 'id',
fields: builder.fields('posts', (fb) => ({
id: fb.columns('id', {
type: 'text',
Expand Down
2 changes: 1 addition & 1 deletion examples/erp/drizzlify/collections/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { builder } from '../helper'

export const usersCollection = builder.collection('users', {
slug: 'users',
primaryField: 'id',
identifierColumn: 'id',
fields: builder.fields('users', (fb) => ({
id: fb.columns('id', {
type: 'text',
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/__mocks__/test-schema.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { relations } from 'drizzle-orm'
import { integer, pgTable, serial, timestamp, varchar } from 'drizzle-orm/pg-core'
import { integer, pgTable, text, timestamp, varchar } from 'drizzle-orm/pg-core'

export const postTs = pgTable('post_db', {
idTs: serial('id_db').primaryKey(),
idTs: text('id_db').primaryKey(),
nameTs: varchar('name_db', { length: 100 }).notNull(),

createdAtTs: timestamp('created_at_db').defaultNow().notNull(),
Expand All @@ -11,15 +11,15 @@ export const postTs = pgTable('post_db', {

// Posts with relation all table
export const authorTs = pgTable('author_db', {
idTs: serial('id_db').primaryKey(),
idTs: text('id_db').primaryKey(),
nameTs: varchar('name_db', { length: 100 }).notNull(),

createdAtTs: timestamp('created_at_db').defaultNow().notNull(),
updatedAtTs: timestamp('updated_at_db').defaultNow().notNull(),
})

export const postWithAuthorTs = pgTable('post_with_author_db', {
idTs: serial('id_db').primaryKey(),
idTs: text('id_db').primaryKey(),
nameTs: varchar('name_db', { length: 100 }).notNull(),

authorIdTs: integer('author_id_db').references(() => authorTs.idTs),
Expand Down
Loading
Loading