Skip to content

Commit 281c3e0

Browse files
committed
add blogpost.json
1 parent 0b781c0 commit 281c3e0

1 file changed

Lines changed: 86 additions & 0 deletions

File tree

common/models/blogpost.json

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"name": "Blogpost",
3+
"base": "PersistedModel",
4+
"idInjection": false,
5+
"options": {
6+
"validateUpsert": true
7+
},
8+
"mixins": {
9+
"FireLoop": true
10+
},
11+
"mysql": {
12+
"schema": "loopbackDb",
13+
"table": "BlogPost"
14+
},
15+
"properties": {
16+
"postdate": {
17+
"type": "Date",
18+
"required": false,
19+
"length": null,
20+
"precision": null,
21+
"scale": null,
22+
"mysql": {
23+
"columnName": "postDate",
24+
"dataType": "datetime",
25+
"dataLength": null,
26+
"dataPrecision": null,
27+
"dataScale": null,
28+
"nullable": "Y"
29+
},
30+
"_selectable": true
31+
},
32+
"posttitle": {
33+
"type": "String",
34+
"required": false,
35+
"length": 255,
36+
"precision": null,
37+
"scale": null,
38+
"mysql": {
39+
"columnName": "postTitle",
40+
"dataType": "varchar",
41+
"dataLength": 255,
42+
"dataPrecision": null,
43+
"dataScale": null,
44+
"nullable": "Y"
45+
},
46+
"_selectable": true
47+
},
48+
"postcontent": {
49+
"type": "String",
50+
"required": false,
51+
"length": 65535,
52+
"precision": null,
53+
"scale": null,
54+
"mysql": {
55+
"columnName": "postContent",
56+
"dataType": "text",
57+
"dataLength": 65535,
58+
"dataPrecision": null,
59+
"dataScale": null,
60+
"nullable": "Y"
61+
},
62+
"_selectable": true
63+
},
64+
"id": {
65+
"type": "Number",
66+
"id": true,
67+
"required": false,
68+
"length": null,
69+
"precision": 10,
70+
"scale": 0,
71+
"mysql": {
72+
"columnName": "id",
73+
"dataType": "int",
74+
"dataLength": null,
75+
"dataPrecision": 10,
76+
"dataScale": 0,
77+
"nullable": "N"
78+
},
79+
"_selectable": false
80+
}
81+
},
82+
"validations": [],
83+
"relations": {},
84+
"acls": [],
85+
"methods": {}
86+
}

0 commit comments

Comments
 (0)