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.
28 lines
427 B
28 lines
427 B
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
|
|
|
|
@Column
|
|
createdAt: Date
|
|
|
|
@Column
|
|
updatedAt: Date
|
|
|
|
}
|