mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-18 19:27:36 -05:00
14 lines
347 B
TypeScript
14 lines
347 B
TypeScript
|
import { DataType, Model, Table, PrimaryKey, Column, Default } from 'sequelize-typescript'
|
||
|
import { generate as shortIdGenerate, isValid as shortIdIsValid } from "shortid";
|
||
|
|
||
|
@Table
|
||
|
export class Temp extends Model<Temp> {
|
||
|
@Default(shortIdGenerate)
|
||
|
@PrimaryKey
|
||
|
@Column(DataType.STRING)
|
||
|
id: string;
|
||
|
|
||
|
@Column(DataType.TEXT)
|
||
|
data: string
|
||
|
}
|