mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-11-10 19:53:09 +00:00
merge of features from hosted branch (#7)
major merge of features from the hosted branch that was created temporarily during the initial launch of jambonz.org
This commit is contained in:
1 parent
ab7c69c0e8
commit
ed51d8b13f
105 files changed
+10330
-1601
No files matched your search
@@ -0,0 +1,28 @@
|
||||
const Model = require('./model');
|
||||
|
||||
class Product extends Model {
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
Product.table = 'products';
|
||||
Product.fields = [
|
||||
{
|
||||
name: 'product_sid',
|
||||
type: 'string',
|
||||
primaryKey: true
|
||||
},
|
||||
{
|
||||
name: 'name',
|
||||
type: 'string',
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'category',
|
||||
type: 'string',
|
||||
required: true
|
||||
},
|
||||
];
|
||||
|
||||
module.exports = Product;
|
||||
Reference in new issue
Block a user