febs-db
Version:
febs-db is a ORM
20 lines (14 loc) • 448 B
JavaScript
var co = require('co');
var tablebase = require('../lib').tablebase;
var dataType = require('../lib').dataType;
module.exports = class extends tablebase {
constructor() {
super('table2', 'id',
{
id: {type: dataType.BigInt(true), key: true}, // the auto-incrementing primary key
col2: {type: dataType.VarChar(20)},
col3: {type: dataType.Text()},
col4: {type: dataType.Char(20)},
});
}
};