Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
disable table syncing for shadow entities
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskalmar committed Oct 7, 2020
1 parent f9300a5 commit 9085b2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/generator.js
Expand Up @@ -231,6 +231,8 @@ export const loadModels = configuration => {

if (isEntity(entity)) {
Entity({ name: storageTableName })(Skeleton);
} else if (isShadowEntity(entity)) {
Entity({ name: storageTableName, synchronize: false })(Skeleton);
} else if (isViewEntity(entity)) {
ViewEntity({
name: storageTableName,
Expand Down

0 comments on commit 9085b2b

Please sign in to comment.