Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
927 changes: 312 additions & 615 deletions compute/hono/bun.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions compute/hono/migrations/app/20260826T1031_init/migration.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"from": null,
"to": "a8c2b44a66375905c448d355506c489aba8f8920c398bd3c95adb4fed318e32b",
"to": "42fbbe796b6d0793f2d98649ebfee94a6e769fe7bb5a5b11fa616eb75fd08a3c",
"providedInvariants": [],
"createdAt": "2026-08-26T10:31:29.461Z",
"migrationHash": "25a1fb362fdbd59f5dfe06f1893a42e989bdf6ad277018acc7df79ff0b8b03ee"
"migrationHash": "b992ed8c814bb34f699e1b4306ddcf434183a51a1e06959595fbae26768f9f79"
}
4 changes: 2 additions & 2 deletions compute/hono/migrations/app/20260826T1031_init/migration.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env -S node
import type { Contract as End } from '../../snapshots/a8c2b44a66375905c448d355506c489aba8f8920c398bd3c95adb4fed318e32b/contract';
import endContract from '../../snapshots/a8c2b44a66375905c448d355506c489aba8f8920c398bd3c95adb4fed318e32b/contract.json' with { type: 'json' };
import type { Contract as End } from '../../snapshots/42fbbe796b6d0793f2d98649ebfee94a6e769fe7bb5a5b11fa616eb75fd08a3c/contract';
import endContract from '../../snapshots/42fbbe796b6d0793f2d98649ebfee94a6e769fe7bb5a5b11fa616eb75fd08a3c/contract.json' with { type: 'json' };
import { Migration, MigrationCLI, col, fn, lit, primaryKey } from '@prisma/orm-postgres/migration';

export default class M extends Migration<never, End> {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"from": "42fbbe796b6d0793f2d98649ebfee94a6e769fe7bb5a5b11fa616eb75fd08a3c",
"to": "7eb72e5dca77a2eb6054b989b2b7b5356eebb195089f208b095cc5f6e5cef10a",
"providedInvariants": [],
"createdAt": "2026-10-12T09:01:02.773Z",
"migrationHash": "0a7c7879ff07dc77f321fb2fb055ee5f2f0c5ed1d67f41012e59efc32053dbec"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env -S node
import type { Contract as Start } from '../../snapshots/42fbbe796b6d0793f2d98649ebfee94a6e769fe7bb5a5b11fa616eb75fd08a3c/contract';
import startContract from '../../snapshots/42fbbe796b6d0793f2d98649ebfee94a6e769fe7bb5a5b11fa616eb75fd08a3c/contract.json' with { type: 'json' };
import type { Contract as End } from '../../snapshots/7eb72e5dca77a2eb6054b989b2b7b5356eebb195089f208b095cc5f6e5cef10a/contract';
import endContract from '../../snapshots/7eb72e5dca77a2eb6054b989b2b7b5356eebb195089f208b095cc5f6e5cef10a/contract.json' with { type: 'json' };
import { Migration, MigrationCLI } from '@prisma/orm-postgres/migration';

export default class M extends Migration<Start, End> {
override readonly startContractJson = startContract;
override readonly endContractJson = endContract;

override get operations() {
return [];
}
}

MigrationCLI.run(import.meta.url, M);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import type {
} from '@prisma/orm-postgres/contract/types';

export type StorageHash =
StorageHashBase<'a8c2b44a66375905c448d355506c489aba8f8920c398bd3c95adb4fed318e32b'>;
StorageHashBase<'42fbbe796b6d0793f2d98649ebfee94a6e769fe7bb5a5b11fa616eb75fd08a3c'>;
export type ExecutionHash =
ExecutionHashBase<'922703ae7404f83e6dbe461f0e1e4ae45f0f0941cd22165189457647c1a6866c'>;
export type ProfileHash =
Expand Down Expand Up @@ -344,48 +344,55 @@ type ContractBase = Omit<
readonly post: {
columns: {
readonly id: {
readonly nativeType: 'int4';
readonly dataType: 'pg/int4';
readonly codecId: 'pg/int4@1';
readonly nullable: false;
readonly default: {
readonly kind: 'function';
readonly expression: 'autoincrement()';
};
readonly many: false;
};
readonly title: {
readonly nativeType: 'text';
readonly dataType: 'pg/text';
readonly codecId: 'pg/text@1';
readonly nullable: false;
readonly many: false;
};
readonly content: {
readonly nativeType: 'text';
readonly dataType: 'pg/text';
readonly codecId: 'pg/text@1';
readonly nullable: true;
readonly many: false;
};
readonly published: {
readonly nativeType: 'bool';
readonly dataType: 'pg/bool';
readonly codecId: 'pg/bool@1';
readonly nullable: false;
readonly default: {
readonly kind: 'literal';
readonly value: DefaultLiteralValue<'pg/bool@1', false>;
};
readonly many: false;
};
readonly authorId: {
readonly nativeType: 'int4';
readonly dataType: 'pg/int4';
readonly codecId: 'pg/int4@1';
readonly nullable: false;
readonly many: false;
};
readonly createdAt: {
readonly nativeType: 'timestamptz';
readonly dataType: 'pg/timestamptz';
readonly codecId: 'pg/timestamptz-temporal@1';
readonly nullable: false;
readonly default: { readonly kind: 'function'; readonly expression: 'now()' };
readonly many: false;
};
readonly updatedAt: {
readonly nativeType: 'timestamptz';
readonly dataType: 'pg/timestamptz';
readonly codecId: 'pg/timestamptz-temporal@1';
readonly nullable: false;
readonly many: false;
};
};
primaryKey: { readonly columns: readonly ['id'] };
Expand Down Expand Up @@ -416,39 +423,45 @@ type ContractBase = Omit<
readonly user: {
columns: {
readonly id: {
readonly nativeType: 'int4';
readonly dataType: 'pg/int4';
readonly codecId: 'pg/int4@1';
readonly nullable: false;
readonly default: {
readonly kind: 'function';
readonly expression: 'autoincrement()';
};
readonly many: false;
};
readonly email: {
readonly nativeType: 'text';
readonly dataType: 'pg/text';
readonly codecId: 'pg/text@1';
readonly nullable: false;
readonly many: false;
};
readonly username: {
readonly nativeType: 'text';
readonly dataType: 'pg/text';
readonly codecId: 'pg/text@1';
readonly nullable: true;
readonly many: false;
};
readonly name: {
readonly nativeType: 'text';
readonly dataType: 'pg/text';
readonly codecId: 'pg/text@1';
readonly nullable: true;
readonly many: false;
};
readonly createdAt: {
readonly nativeType: 'timestamptz';
readonly dataType: 'pg/timestamptz';
readonly codecId: 'pg/timestamptz-temporal@1';
readonly nullable: false;
readonly default: { readonly kind: 'function'; readonly expression: 'now()' };
readonly many: false;
};
readonly updatedAt: {
readonly nativeType: 'timestamptz';
readonly dataType: 'pg/timestamptz';
readonly codecId: 'pg/timestamptz-temporal@1';
readonly nullable: false;
readonly many: false;
};
};
primaryKey: { readonly columns: readonly ['id'] };
Expand Down Expand Up @@ -623,18 +636,18 @@ type ContractBase = Omit<
readonly defaults: readonly [
{
readonly ref: {
readonly entry: 'post';
readonly field: 'updatedAt';
readonly namespace: 'public';
readonly table: 'post';
readonly column: 'updatedAt';
};
readonly onCreate: { readonly kind: 'generator'; readonly id: 'instantNow' };
readonly onUpdate: { readonly kind: 'generator'; readonly id: 'instantNow' };
},
{
readonly ref: {
readonly entry: 'user';
readonly field: 'updatedAt';
readonly namespace: 'public';
readonly table: 'user';
readonly column: 'updatedAt';
};
readonly onCreate: { readonly kind: 'generator'; readonly id: 'instantNow' };
readonly onUpdate: { readonly kind: 'generator'; readonly id: 'instantNow' };
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"_generated":{"message":"This file is automatically generated by \"prisma contract emit\".","regenerate":"To regenerate, run: prisma contract emit","warning":"⚠️ GENERATED FILE - DO NOT EDIT"},"capabilities":{"postgres":{"distinctOn":true,"jsonAgg":true,"lateral":true,"limit":true,"orderBy":true,"returning":true},"sql":{"checkConstraint":true,"defaultInInsert":true,"enums":true,"lateral":true,"returning":true,"scalarList":true}},"domain":{"namespaces":{"public":{"models":{"Post":{"fields":{"authorId":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}},"content":{"nullable":true,"type":{"codecId":"pg/text@1","kind":"scalar"}},"createdAt":{"nullable":false,"type":{"codecId":"pg/timestamptz-temporal@1","kind":"scalar"}},"id":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}},"published":{"nullable":false,"type":{"codecId":"pg/bool@1","kind":"scalar"}},"title":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"updatedAt":{"nullable":false,"type":{"codecId":"pg/timestamptz-temporal@1","kind":"scalar"}}},"relations":{"author":{"cardinality":"N:1","on":{"localFields":["authorId"],"targetFields":["id"]},"to":{"model":"User","namespace":"public"}}},"storage":{"fields":{"authorId":{"column":"authorId"},"content":{"column":"content"},"createdAt":{"column":"createdAt"},"id":{"column":"id"},"published":{"column":"published"},"title":{"column":"title"},"updatedAt":{"column":"updatedAt"}},"namespaceId":"public","table":"post"}},"User":{"fields":{"createdAt":{"nullable":false,"type":{"codecId":"pg/timestamptz-temporal@1","kind":"scalar"}},"email":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"id":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}},"name":{"nullable":true,"type":{"codecId":"pg/text@1","kind":"scalar"}},"updatedAt":{"nullable":false,"type":{"codecId":"pg/timestamptz-temporal@1","kind":"scalar"}},"username":{"nullable":true,"type":{"codecId":"pg/text@1","kind":"scalar"}}},"relations":{"posts":{"cardinality":"1:N","on":{"localFields":["id"],"targetFields":["authorId"]},"to":{"model":"Post","namespace":"public"}}},"storage":{"fields":{"createdAt":{"column":"createdAt"},"email":{"column":"email"},"id":{"column":"id"},"name":{"column":"name"},"updatedAt":{"column":"updatedAt"},"username":{"column":"username"}},"namespaceId":"public","table":"user"}}}}}},"execution":{"executionHash":"922703ae7404f83e6dbe461f0e1e4ae45f0f0941cd22165189457647c1a6866c","mutations":{"defaults":[{"onCreate":{"id":"instantNow","kind":"generator"},"onUpdate":{"id":"instantNow","kind":"generator"},"ref":{"column":"updatedAt","namespace":"public","table":"post"}},{"onCreate":{"id":"instantNow","kind":"generator"},"onUpdate":{"id":"instantNow","kind":"generator"},"ref":{"column":"updatedAt","namespace":"public","table":"user"}}]}},"extensions":{},"meta":{},"profileHash":"3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2","roots":{"post":{"model":"Post","namespace":"public"},"user":{"model":"User","namespace":"public"}},"schemaVersion":"1","storage":{"namespaces":{"public":{"entries":{"table":{"post":{"columns":{"authorId":{"codecId":"pg/int4@1","nativeType":"int4","nullable":false},"content":{"codecId":"pg/text@1","nativeType":"text","nullable":true},"createdAt":{"codecId":"pg/timestamptz-temporal@1","default":{"expression":"now()","kind":"function"},"nativeType":"timestamptz","nullable":false},"id":{"codecId":"pg/int4@1","default":{"expression":"autoincrement()","kind":"function"},"nativeType":"int4","nullable":false},"published":{"codecId":"pg/bool@1","default":{"kind":"literal","value":false},"nativeType":"bool","nullable":false},"title":{"codecId":"pg/text@1","nativeType":"text","nullable":false},"updatedAt":{"codecId":"pg/timestamptz-temporal@1","nativeType":"timestamptz","nullable":false}},"foreignKeys":[{"source":{"columns":["authorId"],"namespaceId":"public","tableName":"post"},"target":{"columns":["id"],"namespaceId":"public","tableName":"user"}}],"indexes":[{"columns":["authorId"],"name":"post_authorId_idx_e47547ed","prefix":"post_authorId_idx","unique":false}],"primaryKey":{"columns":["id"]},"uniques":[]},"user":{"columns":{"createdAt":{"codecId":"pg/timestamptz-temporal@1","default":{"expression":"now()","kind":"function"},"nativeType":"timestamptz","nullable":false},"email":{"codecId":"pg/text@1","nativeType":"text","nullable":false},"id":{"codecId":"pg/int4@1","default":{"expression":"autoincrement()","kind":"function"},"nativeType":"int4","nullable":false},"name":{"codecId":"pg/text@1","nativeType":"text","nullable":true},"updatedAt":{"codecId":"pg/timestamptz-temporal@1","nativeType":"timestamptz","nullable":false},"username":{"codecId":"pg/text@1","nativeType":"text","nullable":true}},"foreignKeys":[],"indexes":[],"primaryKey":{"columns":["id"]},"uniques":[{"columns":["email"]},{"columns":["username"]}]}}},"id":"public","kind":"postgres-schema"}},"storageHash":"a8c2b44a66375905c448d355506c489aba8f8920c398bd3c95adb4fed318e32b"},"target":"postgres","targetFamily":"sql"}
{"_generated":{"message":"This file is automatically generated by \"prisma contract emit\".","regenerate":"To regenerate, run: prisma contract emit","warning":"⚠️ GENERATED FILE - DO NOT EDIT"},"capabilities":{"postgres":{"distinctOn":true,"jsonAgg":true,"lateral":true,"limit":true,"orderBy":true,"returning":true},"sql":{"checkConstraint":true,"defaultInInsert":true,"enums":true,"lateral":true,"returning":true,"scalarList":true}},"domain":{"namespaces":{"public":{"models":{"Post":{"fields":{"authorId":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}},"content":{"nullable":true,"type":{"codecId":"pg/text@1","kind":"scalar"}},"createdAt":{"nullable":false,"type":{"codecId":"pg/timestamptz-temporal@1","kind":"scalar"}},"id":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}},"published":{"nullable":false,"type":{"codecId":"pg/bool@1","kind":"scalar"}},"title":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"updatedAt":{"nullable":false,"type":{"codecId":"pg/timestamptz-temporal@1","kind":"scalar"}}},"relations":{"author":{"cardinality":"N:1","on":{"localFields":["authorId"],"targetFields":["id"]},"to":{"model":"User","namespace":"public"}}},"storage":{"fields":{"authorId":{"column":"authorId"},"content":{"column":"content"},"createdAt":{"column":"createdAt"},"id":{"column":"id"},"published":{"column":"published"},"title":{"column":"title"},"updatedAt":{"column":"updatedAt"}},"namespaceId":"public","table":"post"}},"User":{"fields":{"createdAt":{"nullable":false,"type":{"codecId":"pg/timestamptz-temporal@1","kind":"scalar"}},"email":{"nullable":false,"type":{"codecId":"pg/text@1","kind":"scalar"}},"id":{"nullable":false,"type":{"codecId":"pg/int4@1","kind":"scalar"}},"name":{"nullable":true,"type":{"codecId":"pg/text@1","kind":"scalar"}},"updatedAt":{"nullable":false,"type":{"codecId":"pg/timestamptz-temporal@1","kind":"scalar"}},"username":{"nullable":true,"type":{"codecId":"pg/text@1","kind":"scalar"}}},"relations":{"posts":{"cardinality":"1:N","on":{"localFields":["id"],"targetFields":["authorId"]},"to":{"model":"Post","namespace":"public"}}},"storage":{"fields":{"createdAt":{"column":"createdAt"},"email":{"column":"email"},"id":{"column":"id"},"name":{"column":"name"},"updatedAt":{"column":"updatedAt"},"username":{"column":"username"}},"namespaceId":"public","table":"user"}}}}}},"execution":{"executionHash":"922703ae7404f83e6dbe461f0e1e4ae45f0f0941cd22165189457647c1a6866c","mutations":{"defaults":[{"onCreate":{"id":"instantNow","kind":"generator"},"onUpdate":{"id":"instantNow","kind":"generator"},"ref":{"entry":"post","field":"updatedAt","namespace":"public"}},{"onCreate":{"id":"instantNow","kind":"generator"},"onUpdate":{"id":"instantNow","kind":"generator"},"ref":{"entry":"user","field":"updatedAt","namespace":"public"}}]}},"extensions":{},"meta":{},"profileHash":"3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2","roots":{"post":{"model":"Post","namespace":"public"},"user":{"model":"User","namespace":"public"}},"schemaVersion":"1","storage":{"namespaces":{"public":{"entries":{"table":{"post":{"columns":{"authorId":{"codecId":"pg/int4@1","dataType":"pg/int4","nullable":false},"content":{"codecId":"pg/text@1","dataType":"pg/text","nullable":true},"createdAt":{"codecId":"pg/timestamptz-temporal@1","dataType":"pg/timestamptz","default":{"expression":"now()","kind":"function"},"nullable":false},"id":{"codecId":"pg/int4@1","dataType":"pg/int4","default":{"expression":"autoincrement()","kind":"function"},"nullable":false},"published":{"codecId":"pg/bool@1","dataType":"pg/bool","default":{"kind":"literal","value":false},"nullable":false},"title":{"codecId":"pg/text@1","dataType":"pg/text","nullable":false},"updatedAt":{"codecId":"pg/timestamptz-temporal@1","dataType":"pg/timestamptz","nullable":false}},"foreignKeys":[{"source":{"columns":["authorId"],"namespaceId":"public","tableName":"post"},"target":{"columns":["id"],"namespaceId":"public","tableName":"user"}}],"indexes":[{"columns":["authorId"],"name":"post_authorId_idx_e47547ed","prefix":"post_authorId_idx","unique":false}],"primaryKey":{"columns":["id"]},"uniques":[]},"user":{"columns":{"createdAt":{"codecId":"pg/timestamptz-temporal@1","dataType":"pg/timestamptz","default":{"expression":"now()","kind":"function"},"nullable":false},"email":{"codecId":"pg/text@1","dataType":"pg/text","nullable":false},"id":{"codecId":"pg/int4@1","dataType":"pg/int4","default":{"expression":"autoincrement()","kind":"function"},"nullable":false},"name":{"codecId":"pg/text@1","dataType":"pg/text","nullable":true},"updatedAt":{"codecId":"pg/timestamptz-temporal@1","dataType":"pg/timestamptz","nullable":false},"username":{"codecId":"pg/text@1","dataType":"pg/text","nullable":true}},"foreignKeys":[],"indexes":[],"primaryKey":{"columns":["id"]},"uniques":[{"columns":["email"]},{"columns":["username"]}]}}},"id":"public","kind":"postgres-schema"}},"storageHash":"42fbbe796b6d0793f2d98649ebfee94a6e769fe7bb5a5b11fa616eb75fd08a3c"},"target":"postgres","targetFamily":"sql"}
Loading
Loading