mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 12:54:20 -05:00
19 lines
387 B
JavaScript
19 lines
387 B
JavaScript
|
"use strict";
|
||
|
|
||
|
//external modules
|
||
|
var shortId = require('shortid');
|
||
|
|
||
|
module.exports = function (sequelize, DataTypes) {
|
||
|
var Temp = sequelize.define("Temp", {
|
||
|
id: {
|
||
|
type: DataTypes.STRING,
|
||
|
primaryKey: true,
|
||
|
defaultValue: shortId.generate
|
||
|
},
|
||
|
data: {
|
||
|
type: DataTypes.TEXT
|
||
|
}
|
||
|
});
|
||
|
|
||
|
return Temp;
|
||
|
};
|