Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions common/models/blogpost.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = function(Blogpost) {

};
5 changes: 5 additions & 0 deletions common/models/map.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = function(Map) {

};
99 changes: 99 additions & 0 deletions common/models/map.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"name": "Map",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "loopbackDb",
"table": "Map"
},
"properties": {
"userid": {
"type": "String",
"required": false,
"length": 512,
"precision": null,
"scale": null,
"mysql": {
"columnName": "userID",
"dataType": "varchar",
"dataLength": 512,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
},
"_selectable": true
},
"locationname": {
"type": "String",
"required": false,
"length": 255,
"precision": null,
"scale": null,
"mysql": {
"columnName": "locationName",
"dataType": "varchar",
"dataLength": 255,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
},
"_selectable": true
},
"longitude": {
"type": "String",
"required": false,
"length": 512,
"precision": null,
"scale": null,
"mysql": {
"columnName": "longitude",
"dataType": "varchar",
"dataLength": 512,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
},
"_selectable": true
},
"latitude": {
"type": "String",
"required": false,
"length": 512,
"precision": null,
"scale": null,
"mysql": {
"columnName": "latitude",
"dataType": "varchar",
"dataLength": 512,
"dataPrecision": null,
"dataScale": null,
"nullable": "Y"
},
"_selectable": true
},
"id": {
"type": "Number",
"id": true,
"required": false,
"length": null,
"precision": 10,
"scale": 0,
"mysql": {
"columnName": "id",
"dataType": "int",
"dataLength": null,
"dataPrecision": 10,
"dataScale": 0,
"nullable": "N"
},
"_selectable": false
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
8 changes: 4 additions & 4 deletions common/models/maps.ts → common/models/map.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Model } from '@mean-expert/model';
/**
* @module Maps
* @module Map
* @description
* Write a useful Maps Model description.
* Write a useful Map Model description.
* Register hooks and remote methods within the
* Model Decorator
**/
Expand All @@ -11,9 +11,9 @@ import { Model } from '@mean-expert/model';
remotes: {}
})

class Maps {
class Map {
// LoopBack model instance is injected in constructor
constructor(public model: any) { }
}

module.exports = Maps;
module.exports = Map;
32 changes: 0 additions & 32 deletions common/models/maps.json

This file was deleted.

42 changes: 0 additions & 42 deletions common/models/profile-data.json

This file was deleted.

163 changes: 163 additions & 0 deletions common/models/profiledata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
{
"name": "Profiledata",
"base": "PersistedModel",
"idInjection": false,
"options": {
"validateUpsert": true
},
"mysql": {
"schema": "loopbackDb",
"table": "profileData"
},
"properties": {
"id": {
"type": "Number",
"id": true,
"required": false,
"length": null,
"precision": 10,
"scale": 0,
"mysql": {
"columnName": "id",
"dataType": "int",
"dataLength": null,
"dataPrecision": 10,
"dataScale": 0,
"nullable": "N"
},
"_selectable": false
},
"photoprofile": {
"type": "String",
"required": false,
"length": 512,
"precision": null,
"scale": null,
"mysql": {
"columnName": "photoProfile",
"dataType": "varchar",
"dataLength": 512,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
},
"_selectable": false
},
"folder": {
"type": "String",
"required": false,
"length": 45,
"precision": null,
"scale": null,
"mysql": {
"columnName": "folder",
"dataType": "varchar",
"dataLength": 45,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
},
"_selectable": false
},
"placeofbirth": {
"type": "String",
"required": false,
"length": 512,
"precision": null,
"scale": null,
"mysql": {
"columnName": "placeOfBirth",
"dataType": "varchar",
"dataLength": 512,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
},
"_selectable": false
},
"nophone": {
"type": "String",
"required": false,
"length": 512,
"precision": null,
"scale": null,
"mysql": {
"columnName": "noPhone",
"dataType": "varchar",
"dataLength": 512,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
},
"_selectable": false
},
"fullname": {
"type": "String",
"required": false,
"length": 512,
"precision": null,
"scale": null,
"mysql": {
"columnName": "fullName",
"dataType": "varchar",
"dataLength": 512,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
},
"_selectable": false
},
"email": {
"type": "String",
"required": false,
"length": 512,
"precision": null,
"scale": null,
"mysql": {
"columnName": "email",
"dataType": "varchar",
"dataLength": 512,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
},
"_selectable": false
},
"birthdate": {
"type": "Date",
"required": false,
"length": null,
"precision": null,
"scale": null,
"mysql": {
"columnName": "birthDate",
"dataType": "date",
"dataLength": null,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
},
"_selectable": false
},
"address": {
"type": "String",
"required": false,
"length": 512,
"precision": null,
"scale": null,
"mysql": {
"columnName": "address",
"dataType": "varchar",
"dataLength": 512,
"dataPrecision": null,
"dataScale": null,
"nullable": "N"
},
"_selectable": false
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
File renamed without changes.
Loading