npm.io
1.0.2 • Published yesterday

@bingtsingw/orchid-helper

Licence
MIT
Version
1.0.2
Deps
2
Size
19 kB
Vulns
0
Weekly
0
Stars
1

@bingtsingw/orchid-helper

How to use

import { BaseTable } from '@bingtsingw/orchid-helper';

export class TableUser extends BaseTable {
  public override readonly table = 'user';

  public override columns = this.setColumns((t) => ({
    ...t.baseColumns(),

    name: t.string().nullable(),
    // ...
  }));
}

How to test

# 1. build
pnpm run check-publish
# 2. go to apps/db folder
cd apps/db
# 3. run db test
pnpm run db:test-rebuild
pnpm run db:test