nicot 1.2.0 → 1.2.2

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/index.mjs CHANGED
@@ -980,7 +980,12 @@ function IdBase(idOptions = {}) {
980
980
  }),
981
981
  Reflect.metadata("design:type", Number),
982
982
  Generated("increment"),
983
- QueryEqual()
983
+ QueryEqual(),
984
+ Metadata.set(
985
+ "notRequiredButHasDefault",
986
+ true,
987
+ "notRequiredButHasDefaultFields"
988
+ )
984
989
  ]);
985
990
  dec(cl.prototype, "id");
986
991
  return cl;
@@ -1002,6 +1007,11 @@ function StringIdBase(idOptions) {
1002
1007
  const decs = [
1003
1008
  Reflect.metadata("design:type", String),
1004
1009
  QueryEqual(),
1010
+ Metadata.set(
1011
+ "notRequiredButHasDefault",
1012
+ true,
1013
+ "notRequiredButHasDefaultFields"
1014
+ ),
1005
1015
  ...idOptions.uuid ? [UuidColumn({ ...columnOptions, generated: true }), NotWritable()] : [
1006
1016
  StringColumn(idOptions.length || 255, columnOptions),
1007
1017
  IsNotEmpty2(),