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.
22 lines
369 B
22 lines
369 B
4 years ago
|
import { Table, Column, Model, DataType } from 'sequelize-typescript';
|
||
|
|
||
|
@Table({tableName: 'sphinx_bots', underscored: true})
|
||
|
export default class Bot extends Model<Bot> {
|
||
|
|
||
|
@Column({
|
||
|
type: DataType.TEXT,
|
||
|
primaryKey: true,
|
||
|
unique: true,
|
||
|
})
|
||
|
id: string
|
||
|
|
||
|
@Column(DataType.BIGINT)
|
||
|
chatId: number
|
||
|
|
||
|
@Column
|
||
|
name: string
|
||
|
|
||
|
@Column
|
||
|
secret: string
|
||
|
|
||
|
}
|