@prisma/orm-toolchain 8.0.0-rc.5-dev.2 → 8.0.0-rc.5-dev.3

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.
package/dist/cli.mjs CHANGED
@@ -33,7 +33,7 @@ import { applyEdits, modify, parse, printParseErrorCode } from "jsonc-parser";
33
33
  import stringWidth from "string-width";
34
34
  import { bold, createColors, cyan, cyanBright, dim, green, yellow } from "colorette";
35
35
  import { build } from "esbuild";
36
- //#region ../../../1-framework/3-tooling/cli/dist/load-config-Cx3hKchL.mjs
36
+ //#region ../../../1-framework/3-tooling/cli/dist/load-config-vdD3DnKJ.mjs
37
37
  const MISSING_CONFIG_ACTION = {
38
38
  kind: "run-command",
39
39
  label: "Create a config file",
@@ -3018,13 +3018,13 @@ function starterSchema(target, authoring, resolveImportSpecifier = keepInternalS
3018
3018
  return target === "mongo" ? starterSchemaPslMongo() : starterSchemaPslPostgres();
3019
3019
  }
3020
3020
  /**
3021
- * Renders a short authoring-appropriate schema sample (FR5.1) for embedding
3022
- * in `prisma-next.md`. Returns a complete fenced markdown code block.
3021
+ * Renders a short authoring-appropriate schema sample for embedding in
3022
+ * `prisma-next.md`. Returns a complete fenced markdown code block.
3023
3023
  *
3024
3024
  * The sample intentionally shows just one model: it's illustrative, not
3025
3025
  * a substitute for the full scaffolded contract file. The TS samples use
3026
- * the same outer shape as `starterSchemaTs*` (FR5.3) so a user reading
3027
- * the doc and the file side-by-side sees the same structure.
3026
+ * the same outer shape as `starterSchemaTs*` so a user reading the doc and
3027
+ * the file side-by-side sees the same structure.
3028
3028
  */
3029
3029
  function schemaSample(target, authoring, resolveImportSpecifier = keepInternalSpecifiers) {
3030
3030
  if (authoring === "typescript") {
@@ -3106,8 +3106,8 @@ model User {
3106
3106
  username String?
3107
3107
  name String?
3108
3108
  posts Post[]
3109
- createdAt DateTime @default(now())
3110
- updatedAt temporal.updatedAt()
3109
+ createdAt TimestamptzString @default(now())
3110
+ updatedAt temporal.updatedAtString()
3111
3111
  }
3112
3112
 
3113
3113
  model Post {
@@ -3116,8 +3116,8 @@ model Post {
3116
3116
  content String?
3117
3117
  author User @relation(fields: [authorId], references: [id])
3118
3118
  authorId Int
3119
- createdAt DateTime @default(now())
3120
- updatedAt temporal.updatedAt()
3119
+ createdAt TimestamptzString @default(now())
3120
+ updatedAt temporal.updatedAtString()
3121
3121
  }
3122
3122
  `;
3123
3123
  }
@@ -3153,8 +3153,8 @@ export const contract = defineContract({}, ({ field, model, rel }) => {
3153
3153
  email: field.text().unique(),
3154
3154
  username: field.text().optional(),
3155
3155
  name: field.text().optional(),
3156
- createdAt: field.temporal.createdAt(),
3157
- updatedAt: field.temporal.updatedAt(),
3156
+ createdAt: field.temporal.createdAtString(),
3157
+ updatedAt: field.temporal.updatedAtString(),
3158
3158
  },
3159
3159
  });
3160
3160
 
@@ -3164,8 +3164,8 @@ export const contract = defineContract({}, ({ field, model, rel }) => {
3164
3164
  title: field.text(),
3165
3165
  content: field.text().optional(),
3166
3166
  authorId: field.uuidString(),
3167
- createdAt: field.temporal.createdAt(),
3168
- updatedAt: field.temporal.updatedAt(),
3167
+ createdAt: field.temporal.createdAtString(),
3168
+ updatedAt: field.temporal.updatedAtString(),
3169
3169
  },
3170
3170
  });
3171
3171