diff --git a/psl/parser-database/src/names/reserved_model_names.rs b/psl/parser-database/src/names/reserved_model_names.rs index c0c3d88019e2..591dd09964b6 100644 --- a/psl/parser-database/src/names/reserved_model_names.rs +++ b/psl/parser-database/src/names/reserved_model_names.rs @@ -44,6 +44,8 @@ pub(crate) fn validate_enum_name(ast_enum: &ast::Enum, diagnostics: &mut Diagnos const RESERVED_NAMES: &[&str] = &[ "PrismaClient", // JavaScript keywords + "async", + "await", "break", "case", "catch", @@ -83,6 +85,7 @@ const RESERVED_NAMES: &[&str] = &[ "true", "try", "typeof", + "using", "var", "void", "while",