From a85d451abe67912cd08e7dacced104a884c472e5 Mon Sep 17 00:00:00 2001 From: Marhinus <54985646+Marhinus@users.noreply.github.com> Date: Fri, 1 Nov 2019 15:13:35 +0200 Subject: [PATCH 1/6] Update server.js --- server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.js b/server.js index b24fbad..3c0352a 100644 --- a/server.js +++ b/server.js @@ -3,6 +3,8 @@ var app = require('express')(); // Create an instance of an Express app var mobileApp = require('azure-mobile-apps')(); // Create an instance of a Mobile App with default settings mobileApp.tables.add('Book'); // Create a table for 'Book' with default settings +mobileApp.tables.add('Clients'); // Create a table for 'Book' with default settings + app.use(mobileApp); app.listen(process.env.PORT || 3000); From 854ca07dadff274d37f265c802f88b32055f2b93 Mon Sep 17 00:00:00 2001 From: Marhinus <54985646+Marhinus@users.noreply.github.com> Date: Fri, 1 Nov 2019 15:14:17 +0200 Subject: [PATCH 2/6] Create Clients.js --- tables/Clients.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tables/Clients.js diff --git a/tables/Clients.js b/tables/Clients.js new file mode 100644 index 0000000..91c20fd --- /dev/null +++ b/tables/Clients.js @@ -0,0 +1,17 @@ +var table = module.exports = require('azure-mobile-apps').table(); + +table.read(function (context) { + return context.execute(); +}); + +table.insert(function (context) { + return context.execute(); +}); + +table.update(function (context) { + return context.execute(); +}); + +table.delete(function (context) { + return context.execute(); +}); From 5796bd72c01c2db1d2f33f66b712d59d72b61456 Mon Sep 17 00:00:00 2001 From: Marhinus <54985646+Marhinus@users.noreply.github.com> Date: Fri, 1 Nov 2019 15:14:38 +0200 Subject: [PATCH 3/6] Create Clients.json --- tables/Clients.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tables/Clients.json diff --git a/tables/Clients.json b/tables/Clients.json new file mode 100644 index 0000000..0caec75 --- /dev/null +++ b/tables/Clients.json @@ -0,0 +1,18 @@ +{ + "autoIncrement": false, + "read": { + "access": "anonymous" + }, + "insert": { + "access": "anonymous" + }, + "update": { + "access": "anonymous" + }, + "delete": { + "access": "anonymous" + }, + "undelete": { + "access": "anonymous" + } + } From 631af99641367ab3ef25145c8771c60a4706d7bb Mon Sep 17 00:00:00 2001 From: Marhinus <54985646+Marhinus@users.noreply.github.com> Date: Fri, 1 Nov 2019 15:43:53 +0200 Subject: [PATCH 4/6] Update server.js --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 3c0352a..7e72dae 100644 --- a/server.js +++ b/server.js @@ -2,7 +2,7 @@ var app = require('express')(); // Create an instance of an Express app var mobileApp = require('azure-mobile-apps')(); // Create an instance of a Mobile App with default settings -mobileApp.tables.add('Book'); // Create a table for 'Book' with default settings + mobileApp.tables.add('Clients'); // Create a table for 'Book' with default settings From 51dd1256b8ecb40b57905cc3ca959d2f1338199b Mon Sep 17 00:00:00 2001 From: Marhinus <54985646+Marhinus@users.noreply.github.com> Date: Mon, 4 Nov 2019 13:49:45 +0200 Subject: [PATCH 5/6] Delete book.js --- tables/book.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 tables/book.js diff --git a/tables/book.js b/tables/book.js deleted file mode 100644 index 91c20fd..0000000 --- a/tables/book.js +++ /dev/null @@ -1,17 +0,0 @@ -var table = module.exports = require('azure-mobile-apps').table(); - -table.read(function (context) { - return context.execute(); -}); - -table.insert(function (context) { - return context.execute(); -}); - -table.update(function (context) { - return context.execute(); -}); - -table.delete(function (context) { - return context.execute(); -}); From f4b28bcfdb14643fc1d29a8513f47c6250ce249d Mon Sep 17 00:00:00 2001 From: Marhinus <54985646+Marhinus@users.noreply.github.com> Date: Mon, 4 Nov 2019 13:54:04 +0200 Subject: [PATCH 6/6] Delete book.json --- tables/book.json | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 tables/book.json diff --git a/tables/book.json b/tables/book.json deleted file mode 100644 index 8983439..0000000 --- a/tables/book.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "autoIncrement": false, - "read": { - "access": "anonymous" - }, - "insert": { - "access": "anonymous" - }, - "update": { - "access": "anonymous" - }, - "delete": { - "access": "anonymous" - }, - "undelete": { - "access": "anonymous" - } - } - \ No newline at end of file