mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 02:06:29 -05:00
136d895d15
Signed-off-by: Philip Molares <philip.molares@udo.edu>
18 lines
337 B
JavaScript
18 lines
337 B
JavaScript
'use strict'
|
|
// external modules
|
|
const shortId = require('shortid')
|
|
|
|
module.exports = function (sequelize, DataTypes) {
|
|
const Temp = sequelize.define('Temp', {
|
|
id: {
|
|
type: DataTypes.STRING,
|
|
primaryKey: true,
|
|
defaultValue: shortId.generate
|
|
},
|
|
data: {
|
|
type: DataTypes.TEXT
|
|
}
|
|
})
|
|
|
|
return Temp
|
|
}
|