We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c131e7 + fb83116 commit 8eb9f4eCopy full SHA for 8eb9f4e
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
@@ -81,5 +81,9 @@
81
"StorageUpload": {
82
"dataSource": "StorageUpload",
83
"public": true
84
85
+ "blogPost": {
86
+ "dataSource": "db",
87
+ "public": true
88
}
89
0 commit comments