aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/author.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/author.js')
-rw-r--r--server/models/author.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/models/author.js b/server/models/author.js
index 7d15fb6ec..f036193c8 100644
--- a/server/models/author.js
+++ b/server/models/author.js
@@ -25,7 +25,12 @@ module.exports = function (sequelize, DataTypes) {
25 fields: [ 'podId' ] 25 fields: [ 'podId' ]
26 }, 26 },
27 { 27 {
28 fields: [ 'userId' ] 28 fields: [ 'userId' ],
29 unique: true
30 },
31 {
32 fields: [ 'name', 'podId' ],
33 unique: true
29 } 34 }
30 ], 35 ],
31 classMethods: { 36 classMethods: {