You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
500 B
35 lines
500 B
import { Table, Column, Model, DataType } from 'sequelize-typescript';
|
|
|
|
/*
|
|
BOT CREATOR - this handles the webhook and external API
|
|
*/
|
|
|
|
@Table({tableName: 'sphinx_bots', underscored: true})
|
|
export default class Bot extends Model<Bot> {
|
|
|
|
@Column({
|
|
type: DataType.TEXT,
|
|
primaryKey: true,
|
|
unique: true,
|
|
})
|
|
id: string
|
|
|
|
@Column
|
|
uuid: string
|
|
|
|
@Column
|
|
name: string
|
|
|
|
@Column
|
|
secret: string
|
|
|
|
@Column
|
|
webhook: string
|
|
|
|
@Column
|
|
createdAt: Date
|
|
|
|
@Column
|
|
updatedAt: Date
|
|
|
|
}
|