greenlock-store-sequelize.js/db/chain.js

20 lines
334 B
JavaScript
Raw Normal View History

'use strict';
module.exports = function (sequelize, DataTypes) {
var Chain = sequelize.define('Chain',{
xid: {
type: DataTypes.STRING,
unique: true
},
content: {
type: DataTypes.TEXT
}
});
Chain.associate = function(models) {
Chain.belongsTo(models.Certificate);
};
return Chain;
};