From 0b02dd747e44f34e288bf9a5664d95e85ef2362d Mon Sep 17 00:00:00 2001 From: Kelvin Oghenerhoro Omereshone Date: Fri, 15 Nov 2024 22:19:00 +0100 Subject: [PATCH] feat: add waitlist model --- templates/ascent-react/api/models/Waitlist.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 templates/ascent-react/api/models/Waitlist.js diff --git a/templates/ascent-react/api/models/Waitlist.js b/templates/ascent-react/api/models/Waitlist.js new file mode 100644 index 0000000..b8e4b44 --- /dev/null +++ b/templates/ascent-react/api/models/Waitlist.js @@ -0,0 +1,18 @@ +/** + * Waitlist.js + * + * @description :: A model definition represents a database table/collection. + * @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models + */ + +module.exports = { + attributes: { + email: { + type: 'string', + required: true, + unique: true, + isEmail: true, + maxLength: 200 + } + } +}