git://repos.xcallymotion.com
/
motion.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a8a9bf8b55008a30df68542258d5bfc177dc07be
[motion.git]
/
server
/
models
/
square_odbc.js
1
'use strict';
2
3
module.exports = function(sequelize, DataTypes) {
4
5
var SquareOdbc = sequelize.define('SquareOdbc', {
6
name: {
7
type: DataTypes.STRING,
8
unique: true,
9
allowNull: false,
10
validate: {
11
notEmpty: true
12
},
13
},
14
dsn: {
15
type: DataTypes.STRING,
16
},
17
description: DataTypes.STRING
18
}, {
19
tableName: 'square_odbc'
20
});
21
22
return SquareOdbc;
23
24
};