We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 37046a6 + 8eb9f4e commit 62ed653Copy full SHA for 62ed653
3 files changed
common/models/blog-post.js
@@ -0,0 +1,5 @@
1
+'use strict';
2
+
3
+module.exports = function(Blogpost) {
4
5
+};
common/models/blog-post.json
@@ -0,0 +1,28 @@
+{
+ "name": "blogPost",
+ "base": "PersistedModel",
+ "strict": false,
+ "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
+}
server/model-config.json
@@ -79,5 +79,9 @@
79
"Map": {
80
"dataSource": "db",
81
"public": true
82
83
+ "blogPost": {
84
+ "dataSource": "db",
85
+ "public": true
86
}
87
0 commit comments