From 542409f8c9fd56fafa750dd09289266abfaffb2f Mon Sep 17 00:00:00 2001 From: Tim Smart Date: Fri, 16 Aug 2024 08:25:44 +1200 Subject: [PATCH] rename FieldNoJson to Sensitive --- packages/sql/src/Model.ts | 36 ++++++------------------------------ 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/packages/sql/src/Model.ts b/packages/sql/src/Model.ts index 1fb34f30dd4..be07eaeaf45 100644 --- a/packages/sql/src/Model.ts +++ b/packages/sql/src/Model.ts @@ -134,34 +134,7 @@ export const GeneratedByApp = extends - VariantSchema.Field<{ - readonly select: S - readonly update: S - readonly json: S - readonly jsonUpdate: S - }> -{} - -/** - * @since 1.0.0 - * @category schemas - */ -export const FieldNoInsert = ( - schema: S -): FieldNoInsert => - Field({ - select: schema, - update: schema, - json: schema, - jsonUpdate: schema - }) - -/** - * @since 1.0.0 - * @category models - */ -export interface FieldNoJson extends +export interface Sensitive extends VariantSchema.Field<{ readonly select: S readonly insert: S @@ -170,12 +143,15 @@ export interface FieldNoJson( +export const Sensitive = ( schema: S -): FieldNoJson => +): Sensitive => Field({ select: schema, insert: schema,