mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2025-12-19 05:47:46 +00:00
major merge of features from the hosted branch that was created temporarily during the initial launch of jambonz.org
29 lines
391 B
JavaScript
29 lines
391 B
JavaScript
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;
|