Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
zango-strapi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit e4e832c8
authored
2024-05-04 12:06:08 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
data modelling fixes
1 parent
882d2236
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
35 additions
and
217 deletions
src/api/categorie/content-types/categorie/schema.json
src/api/experience/content-types/experience/schema.json
src/api/master-country/content-types/master-country/schema.json
src/api/master-country/controllers/master-country.js
src/api/master-country/routes/master-country.js
src/api/master-country/services/master-country.js
src/api/master-day/content-types/master-day/schema.json
src/api/master-day/controllers/master-day.js
src/api/master-day/routes/master-day.js
src/api/master-day/services/master-day.js
src/api/master-month/content-types/master-month/schema.json
src/api/master-month/controllers/master-month.js
src/api/master-month/routes/master-month.js
src/api/master-month/services/master-month.js
src/api/master-state/content-types/master-state/schema.json
src/api/time-slot/content-types/time-slot/schema.json
src/api/time-slot/controllers/time-slot.js
src/api/time-slot/routes/time-slot.js
src/api/time-slot/services/time-slot.js
src/api/categorie/content-types/categorie/schema.json
View file @
e4e832c
...
...
@@ -30,6 +30,12 @@
],
"type"
:
"media"
,
"multiple"
:
false
},
"experience"
:
{
"type"
:
"relation"
,
"relation"
:
"oneToOne"
,
"target"
:
"api::experience.experience"
,
"mappedBy"
:
"category"
}
}
}
src/api/experience/content-types/experience/schema.json
View file @
e4e832c
...
...
@@ -18,24 +18,9 @@
"description"
:
{
"type"
:
"text"
},
"pricePerPerson"
:
{
"type"
:
"string"
},
"address"
:
{
"type"
:
"text"
},
"duration"
:
{
"type"
:
"string"
},
"minimumDuration"
:
{
"type"
:
"string"
},
"maximumDuration"
:
{
"type"
:
"string"
},
"ageLowerLimit"
:
{
"type"
:
"string"
},
"ageNotes"
:
{
"type"
:
"string"
},
...
...
@@ -72,11 +57,6 @@
"target"
:
"api::course-detail.course-detail"
,
"inversedBy"
:
"experience"
},
"masterMonths"
:
{
"type"
:
"relation"
,
"relation"
:
"oneToMany"
,
"target"
:
"api::master-month.master-month"
},
"masterPincode"
:
{
"type"
:
"relation"
,
"relation"
:
"oneToOne"
,
...
...
@@ -145,6 +125,35 @@
},
"contactPersonForBooking"
:
{
"type"
:
"string"
},
"pricePerPerson"
:
{
"type"
:
"float"
},
"duration"
:
{
"type"
:
"integer"
},
"minimumDuration"
:
{
"type"
:
"integer"
},
"maximumDuration"
:
{
"type"
:
"integer"
},
"ageLowerLimit"
:
{
"type"
:
"integer"
},
"category"
:
{
"type"
:
"relation"
,
"relation"
:
"oneToOne"
,
"target"
:
"api::categorie.categorie"
,
"inversedBy"
:
"experience"
},
"approved"
:
{
"type"
:
"boolean"
,
"default"
:
false
},
"rejectionReason"
:
{
"type"
:
"string"
,
"default"
:
"Yet to approve"
}
}
}
src/api/master-country/content-types/master-country/schema.json
deleted
100644 → 0
View file @
882d223
{
"kind"
:
"collectionType"
,
"collectionName"
:
"master_countries"
,
"info"
:
{
"singularName"
:
"master-country"
,
"pluralName"
:
"master-countries"
,
"displayName"
:
"Master-country"
,
"description"
:
""
},
"options"
:
{
"draftAndPublish"
:
false
},
"pluginOptions"
:
{},
"attributes"
:
{
"name"
:
{
"type"
:
"string"
}
}
}
src/api/master-country/controllers/master-country.js
deleted
100644 → 0
View file @
882d223
'use strict'
;
/**
* master-country controller
*/
const
{
createCoreController
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreController
(
'api::master-country.master-country'
);
src/api/master-country/routes/master-country.js
deleted
100644 → 0
View file @
882d223
'use strict'
;
/**
* master-country router
*/
const
{
createCoreRouter
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreRouter
(
'api::master-country.master-country'
);
src/api/master-country/services/master-country.js
deleted
100644 → 0
View file @
882d223
'use strict'
;
/**
* master-country service
*/
const
{
createCoreService
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreService
(
'api::master-country.master-country'
);
src/api/master-day/content-types/master-day/schema.json
deleted
100644 → 0
View file @
882d223
{
"kind"
:
"collectionType"
,
"collectionName"
:
"master_days"
,
"info"
:
{
"singularName"
:
"master-day"
,
"pluralName"
:
"master-days"
,
"displayName"
:
"Master-days"
,
"description"
:
""
},
"options"
:
{
"draftAndPublish"
:
false
},
"pluginOptions"
:
{},
"attributes"
:
{
"name"
:
{
"type"
:
"string"
}
}
}
src/api/master-day/controllers/master-day.js
deleted
100644 → 0
View file @
882d223
'use strict'
;
/**
* master-day controller
*/
const
{
createCoreController
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreController
(
'api::master-day.master-day'
);
src/api/master-day/routes/master-day.js
deleted
100644 → 0
View file @
882d223
'use strict'
;
/**
* master-day router
*/
const
{
createCoreRouter
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreRouter
(
'api::master-day.master-day'
);
src/api/master-day/services/master-day.js
deleted
100644 → 0
View file @
882d223
'use strict'
;
/**
* master-day service
*/
const
{
createCoreService
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreService
(
'api::master-day.master-day'
);
src/api/master-month/content-types/master-month/schema.json
deleted
100644 → 0
View file @
882d223
{
"kind"
:
"collectionType"
,
"collectionName"
:
"master_months"
,
"info"
:
{
"singularName"
:
"master-month"
,
"pluralName"
:
"master-months"
,
"displayName"
:
"Master-months"
,
"description"
:
""
},
"options"
:
{
"draftAndPublish"
:
false
},
"pluginOptions"
:
{},
"attributes"
:
{
"name"
:
{
"type"
:
"string"
}
}
}
src/api/master-month/controllers/master-month.js
deleted
100644 → 0
View file @
882d223
'use strict'
;
/**
* master-month controller
*/
const
{
createCoreController
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreController
(
'api::master-month.master-month'
);
src/api/master-month/routes/master-month.js
deleted
100644 → 0
View file @
882d223
'use strict'
;
/**
* master-month router
*/
const
{
createCoreRouter
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreRouter
(
'api::master-month.master-month'
);
src/api/master-month/services/master-month.js
deleted
100644 → 0
View file @
882d223
'use strict'
;
/**
* master-month service
*/
const
{
createCoreService
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreService
(
'api::master-month.master-month'
);
src/api/master-state/content-types/master-state/schema.json
View file @
e4e832c
...
...
@@ -14,11 +14,6 @@
"attributes"
:
{
"name"
:
{
"type"
:
"string"
},
"masterCountry"
:
{
"type"
:
"relation"
,
"relation"
:
"oneToOne"
,
"target"
:
"api::master-country.master-country"
}
}
}
src/api/time-slot/content-types/time-slot/schema.json
deleted
100644 → 0
View file @
882d223
{
"kind"
:
"collectionType"
,
"collectionName"
:
"time_slots"
,
"info"
:
{
"singularName"
:
"time-slot"
,
"pluralName"
:
"time-slots"
,
"displayName"
:
"Time-slots"
,
"description"
:
""
},
"options"
:
{
"draftAndPublish"
:
false
},
"pluginOptions"
:
{},
"attributes"
:
{
"start"
:
{
"type"
:
"time"
},
"end"
:
{
"type"
:
"time"
},
"masterDay"
:
{
"type"
:
"relation"
,
"relation"
:
"oneToOne"
,
"target"
:
"api::master-day.master-day"
}
}
}
src/api/time-slot/controllers/time-slot.js
deleted
100644 → 0
View file @
882d223
'use strict'
;
/**
* time-slot controller
*/
const
{
createCoreController
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreController
(
'api::time-slot.time-slot'
);
src/api/time-slot/routes/time-slot.js
deleted
100644 → 0
View file @
882d223
'use strict'
;
/**
* time-slot router
*/
const
{
createCoreRouter
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreRouter
(
'api::time-slot.time-slot'
);
src/api/time-slot/services/time-slot.js
deleted
100644 → 0
View file @
882d223
'use strict'
;
/**
* time-slot service
*/
const
{
createCoreService
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreService
(
'api::time-slot.time-slot'
);
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment