mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-12 14:53:13 -05:00
7b9f9a487b
Signed-off-by: David Mehren <git@herrmehren.de>
13 lines
319 B
TypeScript
13 lines
319 B
TypeScript
import { DataType, Model, Table, PrimaryKey, Column, Default } from 'sequelize-typescript'
|
|
import { generate as shortIdGenerate } from 'shortid'
|
|
|
|
@Table
|
|
export class Temp extends Model<Temp> {
|
|
@Default(shortIdGenerate)
|
|
@PrimaryKey
|
|
@Column(DataType.STRING)
|
|
id: string;
|
|
|
|
@Column(DataType.TEXT)
|
|
data: string
|
|
}
|