File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " Map" ,
3- "plural" : " Maps" ,
43 "base" : " PersistedModel" ,
5- "idInjection" : true ,
4+ "idInjection" : false ,
65 "options" : {
76 "validateUpsert" : true
87 },
9- "mixins" : {
10- "FireLoop" : true
8+ "mysql" : {
9+ "schema" : " loopbackDb" ,
10+ "table" : " Map"
1111 },
1212 "properties" : {
13- "userID" : {
14- "type" : " string"
13+ "userid" : {
14+ "type" : " String" ,
15+ "required" : false ,
16+ "length" : 512 ,
17+ "precision" : null ,
18+ "scale" : null ,
19+ "mysql" : {
20+ "columnName" : " userID" ,
21+ "dataType" : " varchar" ,
22+ "dataLength" : 512 ,
23+ "dataPrecision" : null ,
24+ "dataScale" : null ,
25+ "nullable" : " Y"
26+ },
27+ "_selectable" : true
1528 },
16- "locationName" : {
17- "type" : " string"
29+ "locationname" : {
30+ "type" : " String" ,
31+ "required" : false ,
32+ "length" : 255 ,
33+ "precision" : null ,
34+ "scale" : null ,
35+ "mysql" : {
36+ "columnName" : " locationName" ,
37+ "dataType" : " varchar" ,
38+ "dataLength" : 255 ,
39+ "dataPrecision" : null ,
40+ "dataScale" : null ,
41+ "nullable" : " Y"
42+ },
43+ "_selectable" : true
1844 },
1945 "longitude" : {
20- "type" : " string"
46+ "type" : " String" ,
47+ "required" : false ,
48+ "length" : 512 ,
49+ "precision" : null ,
50+ "scale" : null ,
51+ "mysql" : {
52+ "columnName" : " longitude" ,
53+ "dataType" : " varchar" ,
54+ "dataLength" : 512 ,
55+ "dataPrecision" : null ,
56+ "dataScale" : null ,
57+ "nullable" : " Y"
58+ },
59+ "_selectable" : true
2160 },
2261 "latitude" : {
23- "type" : " string"
62+ "type" : " String" ,
63+ "required" : false ,
64+ "length" : 512 ,
65+ "precision" : null ,
66+ "scale" : null ,
67+ "mysql" : {
68+ "columnName" : " latitude" ,
69+ "dataType" : " varchar" ,
70+ "dataLength" : 512 ,
71+ "dataPrecision" : null ,
72+ "dataScale" : null ,
73+ "nullable" : " Y"
74+ },
75+ "_selectable" : true
76+ },
77+ "id" : {
78+ "type" : " Number" ,
79+ "id" : true ,
80+ "required" : false ,
81+ "length" : null ,
82+ "precision" : 10 ,
83+ "scale" : 0 ,
84+ "mysql" : {
85+ "columnName" : " id" ,
86+ "dataType" : " int" ,
87+ "dataLength" : null ,
88+ "dataPrecision" : 10 ,
89+ "dataScale" : 0 ,
90+ "nullable" : " N"
91+ },
92+ "_selectable" : false
2493 }
2594 },
2695 "validations" : [],
Original file line number Diff line number Diff line change 1+ import { Model } from '@mean-expert/model' ;
2+ /**
3+ * @module Map
4+ * @description
5+ * Write a useful Map Model description.
6+ * Register hooks and remote methods within the
7+ * Model Decorator
8+ **/
9+ @Model ( {
10+ hooks : { } ,
11+ remotes : { }
12+ } )
13+
14+ class Map {
15+ // LoopBack model instance is injected in constructor
16+ constructor ( public model : any ) { }
17+ }
18+
19+ module . exports = Map ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " Profiledata" ,
3+ "base" : " PersistedModel" ,
4+ "idInjection" : false ,
5+ "options" : {
6+ "validateUpsert" : true
7+ },
8+ "mysql" : {
9+ "schema" : " loopbackDb" ,
10+ "table" : " profileData"
11+ },
12+ "properties" : {
13+ "id" : {
14+ "type" : " Number" ,
15+ "id" : true ,
16+ "required" : false ,
17+ "length" : null ,
18+ "precision" : 10 ,
19+ "scale" : 0 ,
20+ "mysql" : {
21+ "columnName" : " id" ,
22+ "dataType" : " int" ,
23+ "dataLength" : null ,
24+ "dataPrecision" : 10 ,
25+ "dataScale" : 0 ,
26+ "nullable" : " N"
27+ },
28+ "_selectable" : false
29+ },
30+ "photoprofile" : {
31+ "type" : " String" ,
32+ "required" : false ,
33+ "length" : 512 ,
34+ "precision" : null ,
35+ "scale" : null ,
36+ "mysql" : {
37+ "columnName" : " photoProfile" ,
38+ "dataType" : " varchar" ,
39+ "dataLength" : 512 ,
40+ "dataPrecision" : null ,
41+ "dataScale" : null ,
42+ "nullable" : " N"
43+ },
44+ "_selectable" : false
45+ },
46+ "folder" : {
47+ "type" : " String" ,
48+ "required" : false ,
49+ "length" : 45 ,
50+ "precision" : null ,
51+ "scale" : null ,
52+ "mysql" : {
53+ "columnName" : " folder" ,
54+ "dataType" : " varchar" ,
55+ "dataLength" : 45 ,
56+ "dataPrecision" : null ,
57+ "dataScale" : null ,
58+ "nullable" : " N"
59+ },
60+ "_selectable" : false
61+ },
62+ "placeofbirth" : {
63+ "type" : " String" ,
64+ "required" : false ,
65+ "length" : 512 ,
66+ "precision" : null ,
67+ "scale" : null ,
68+ "mysql" : {
69+ "columnName" : " placeOfBirth" ,
70+ "dataType" : " varchar" ,
71+ "dataLength" : 512 ,
72+ "dataPrecision" : null ,
73+ "dataScale" : null ,
74+ "nullable" : " N"
75+ },
76+ "_selectable" : false
77+ },
78+ "nophone" : {
79+ "type" : " String" ,
80+ "required" : false ,
81+ "length" : 512 ,
82+ "precision" : null ,
83+ "scale" : null ,
84+ "mysql" : {
85+ "columnName" : " noPhone" ,
86+ "dataType" : " varchar" ,
87+ "dataLength" : 512 ,
88+ "dataPrecision" : null ,
89+ "dataScale" : null ,
90+ "nullable" : " N"
91+ },
92+ "_selectable" : false
93+ },
94+ "fullname" : {
95+ "type" : " String" ,
96+ "required" : false ,
97+ "length" : 512 ,
98+ "precision" : null ,
99+ "scale" : null ,
100+ "mysql" : {
101+ "columnName" : " fullName" ,
102+ "dataType" : " varchar" ,
103+ "dataLength" : 512 ,
104+ "dataPrecision" : null ,
105+ "dataScale" : null ,
106+ "nullable" : " N"
107+ },
108+ "_selectable" : false
109+ },
110+ "email" : {
111+ "type" : " String" ,
112+ "required" : false ,
113+ "length" : 512 ,
114+ "precision" : null ,
115+ "scale" : null ,
116+ "mysql" : {
117+ "columnName" : " email" ,
118+ "dataType" : " varchar" ,
119+ "dataLength" : 512 ,
120+ "dataPrecision" : null ,
121+ "dataScale" : null ,
122+ "nullable" : " N"
123+ },
124+ "_selectable" : false
125+ },
126+ "birthdate" : {
127+ "type" : " Date" ,
128+ "required" : false ,
129+ "length" : null ,
130+ "precision" : null ,
131+ "scale" : null ,
132+ "mysql" : {
133+ "columnName" : " birthDate" ,
134+ "dataType" : " date" ,
135+ "dataLength" : null ,
136+ "dataPrecision" : null ,
137+ "dataScale" : null ,
138+ "nullable" : " N"
139+ },
140+ "_selectable" : false
141+ },
142+ "address" : {
143+ "type" : " String" ,
144+ "required" : false ,
145+ "length" : 512 ,
146+ "precision" : null ,
147+ "scale" : null ,
148+ "mysql" : {
149+ "columnName" : " address" ,
150+ "dataType" : " varchar" ,
151+ "dataLength" : 512 ,
152+ "dataPrecision" : null ,
153+ "dataScale" : null ,
154+ "nullable" : " N"
155+ },
156+ "_selectable" : false
157+ }
158+ },
159+ "validations" : [],
160+ "relations" : {},
161+ "acls" : [],
162+ "methods" : {}
163+ }
File renamed without changes.
Original file line number Diff line number Diff line change 5050 "dataSource" : " storageSimpleUpload" ,
5151 "public" : true
5252 },
53- "profileData" : {
54- "dataSource" : " db" ,
55- "public" : true
56- },
5753 "Todo" : {
5854 "dataSource" : " db" ,
5955 "public" : true ,
8076 "dataSource" : " db" ,
8177 "public" : true
8278 },
79+ "Profiledata" : {
80+ "dataSource" : " db" ,
81+ "public" : true
82+ },
8383 "blogPost" : {
8484 "dataSource" : " db" ,
8585 "public" : true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments