@housekit/kit 0.1.12 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -8628,18 +8628,17 @@ export default {
8628
8628
  const exampleSchemaContent = `// Example table - This is a sample schema file to demonstrate HouseKit usage
8629
8629
  import { t, defineTable, Engine } from '@housekit/orm';
8630
8630
 
8631
- export const logs = defineTable('logs', (t) => ({
8631
+ export const logs = defineTable('logs', {
8632
8632
  id: t.uuid('id').autoGenerate().primaryKey(),
8633
8633
  message: t.text('message').comment('Log message content'),
8634
8634
  level: t.enum('level', ['info', 'warning', 'error']).default('info').comment('Log severity level'),
8635
- tags: t.array(t.text('tag')).nullable().comment('Array of tags for categorizing logs'),
8635
+ tags: t.array(t.string('tag')).nullable().comment('Array of tags for categorizing logs'),
8636
8636
  metadata: t.json('metadata').nullable().comment('Additional log metadata'),
8637
8637
  createdAt: t.timestamp('created_at').default('now()'),
8638
- }), {
8638
+ }, {
8639
8639
  engine: Engine.MergeTree(),
8640
8640
  orderBy: ['createdAt', 'id'],
8641
- appendOnly: false,
8642
- metadataVersion: "1.2.0"
8641
+ appendOnly: false
8643
8642
  });
8644
8643
  `;
8645
8644
  writeFileSync4(exampleSchemaPath, exampleSchemaContent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@housekit/kit",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "CLI tool for HouseKit - manage ClickHouse schemas, migrations, and database operations with type-safe workflows.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@clickhouse/client": "^1.14.0",
51
- "@housekit/orm": "^0.1.12",
51
+ "@housekit/orm": "^0.1.13",
52
52
  "chalk": "^5.6.2",
53
53
  "cli-table3": "^0.6.5",
54
54
  "commander": "^12.0.0",