Skip to content

Commit 747cf4c

Browse files
authored
Merge branch 'develop' into feature/MasterCrud-Revisi-1
2 parents af1a947 + 5719a5b commit 747cf4c

4 files changed

Lines changed: 44 additions & 2 deletions

File tree

common/models/blog-post.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = function(Blogpost) {
4+
5+
};

common/models/blog-post.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "blogPost",
3+
"base": "PersistedModel",
4+
"strict": false,
5+
"idInjection": false,
6+
"options": {
7+
"validateUpsert": true
8+
},
9+
"properties": {
10+
"postContent": {
11+
"type": "any"
12+
},
13+
"postDate": {
14+
"type": "date"
15+
},
16+
"postId": {
17+
"type": "string",
18+
"id": true
19+
},
20+
"postTitle": {
21+
"type": "string"
22+
}
23+
},
24+
"validations": [],
25+
"relations": {},
26+
"acls": [],
27+
"methods": {}
28+
}

common/models/map.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = function(Map) {
4+
5+
};

server/model-config.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
},
3131
"RoleMapping": {
3232
"dataSource": "db",
33-
"public": true
33+
"public": false
3434
},
3535
"Role": {
3636
"dataSource": "db",
37-
"public": true
37+
"public": false
3838
},
3939
"userPhoto": {
4040
"dataSource": "db",
@@ -79,5 +79,9 @@
7979
"Profiledata": {
8080
"dataSource": "db",
8181
"public": true
82+
},
83+
"blogPost": {
84+
"dataSource": "db",
85+
"public": true
8286
}
8387
}

0 commit comments

Comments
 (0)