- passes https://git.coolaj86.com/coolaj86/greenlock-store-test.js - lacks working approveDomains example - not 100% sure wildcards are fully supported - not tested in production
20 lines
334 B
JavaScript
20 lines
334 B
JavaScript
'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;
|
|
};
|