diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2017-03-16 16:10:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-16 16:10:34 +0000 |
commit | adb5c7cc1c285f57350c3859e93ce18a56fdbd71 (patch) | |
tree | 09ed6887bc9a17dbd2894af9d2d90bce64cfe555 /utils/test/vnfcatalogue/helpers/schema.js | |
parent | f69288cbd365dca89ee74b2f8279c35875b28e18 (diff) | |
parent | f11fa5054945804aaf589dfa2dced21fd0625676 (diff) |
Merge "Add support for enum & expand vnf_catalogue schema"
Diffstat (limited to 'utils/test/vnfcatalogue/helpers/schema.js')
-rw-r--r-- | utils/test/vnfcatalogue/helpers/schema.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/test/vnfcatalogue/helpers/schema.js b/utils/test/vnfcatalogue/helpers/schema.js index 2aaf99ae2..4a7559ad0 100644 --- a/utils/test/vnfcatalogue/helpers/schema.js +++ b/utils/test/vnfcatalogue/helpers/schema.js @@ -31,10 +31,16 @@ var Schema = { lines_of_code: {type: 'integer', nullable: true, unsigned: true}, versions: {type: 'integer', nullable: true, unsigned: true}, no_of_developers: {type: 'integer', nullable: true, unsigned: true}, + no_of_stars: {type: 'integer', nullable: true, unsigned: true}, + license: {type: 'enum', nullable: false, values: ['MIT', 'GPL', 'GPL_V2', 'BSD', 'APACHE']}, + opnfv_indicator: {type: 'enum', nullable: false, values: ['gold', 'silver', 'platinum']}, + complexity: {type: 'enum', nullable: true, values: ['low', 'medium', 'high']}, + activity: {type: 'enum', nullable: true, values: ['low', 'medium', 'high']}, + last_updated: {type: 'dateTime', nullable: true}, }, tag: { tag_id: {type: 'increments', nullable: false, primary: true}, - name: {type: 'string', maxlength: 150, nullable: false} + tag_name: {type: 'string', maxlength: 150, nullable: false} }, vnf_tags: { vnf_tag_id: {type: 'increments', nullable: false, primary: true}, |