diff --git a/packages/core/src/schema/schema.ts b/packages/core/src/schema/schema.ts index b6b2cb698..4bfbe3272 100644 --- a/packages/core/src/schema/schema.ts +++ b/packages/core/src/schema/schema.ts @@ -439,10 +439,6 @@ export const createSchema = < if (Object.entries(schema).every(([_name]) => _name !== column.type)) throw Error("Column doesn't reference a valid enum"); } else if (isReferenceColumn(column)) { - if (!columnName.endsWith("Id")) { - throw Error('Reference column name must end with "Id"'); - } - if ( Object.keys(schema).every( (_name) => `${_name}.id` !== column.references,