diff --git a/app_api/models/predmet.js b/app_api/models/predmet.js
index ddb2b83..1267855 100644
--- a/app_api/models/predmet.js
+++ b/app_api/models/predmet.js
@@ -192,7 +192,7 @@ const gradivoShema = new mongoose.Schema({
*/
const predmetShema = new mongoose.Schema({
- ime: {type: String},
+ ime: {type: String, unique: true},
opis: {type: String},
// 0 -> ni v letniku a, 1 -> 1. letnik...
letnik: {type: Number},
@@ -215,7 +215,8 @@ const predmetShema = new mongoose.Schema({
gradiva: [{
type: mongoose.Schema.Types.ObjectId,
ref: 'Gradivo'
- }]
+ }],
+ kraticaPredmeta:{type: String, unique:true}
});
/**
diff --git a/app_public/build/index.html b/app_public/build/index.html
index c364193..27440d0 100644
--- a/app_public/build/index.html
+++ b/app_public/build/index.html
@@ -22,5 +22,5 @@
-