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
577 B
35 lines
577 B
import { Table, Column, Model } from 'sequelize-typescript';
|
|
|
|
/*
|
|
TRIBE OWNER - bots installed as "contacts" in a tribe
|
|
*/
|
|
|
|
@Table({tableName: 'sphinx_chat_members', underscored: true, indexes:[
|
|
{unique:true, fields:['chat_id','bot_uuid']}
|
|
]})
|
|
export default class ChatBot extends Model<ChatBot> {
|
|
|
|
@Column
|
|
chatId: number
|
|
|
|
@Column
|
|
botUuid: string
|
|
|
|
@Column
|
|
botType: number
|
|
|
|
@Column
|
|
botPrefix: string
|
|
|
|
@Column
|
|
botMakerPubkey: string
|
|
|
|
@Column
|
|
meta: string // for saved preferences for local bots
|
|
|
|
@Column
|
|
createdAt: Date
|
|
|
|
@Column
|
|
updatedAt: Date
|
|
}
|