import 'package:drift/drift.dart';

@DataClassName('DriftChatBot')
class ChatBots extends Table {
  IntColumn get id => integer()();
  TextColumn get name => text().nullable()();
  TextColumn get username => text().nullable()();
  IntColumn get botUserId => integer().nullable()();
  TextColumn get icon => text().nullable()();
  TextColumn get iconGaussian => text().nullable()();
  TextColumn get description => text().nullable()();
  TextColumn get token => text().nullable()();
  IntColumn get flag => integer().nullable()();
  IntColumn get status => integer().nullable()();
  TextColumn get webhook => text().withDefault(const Constant(''))();
  TextColumn get commands => text().withDefault(const Constant('[]'))();
  TextColumn get banner => text().nullable()();
  IntColumn get channelId => integer().nullable()();
  IntColumn get channelGroupId => integer().nullable()();
  IntColumn get deletedAt => integer().nullable()();
  TextColumn get internalWebhook => text().nullable()();
  IntColumn get mode => integer().nullable()();
  TextColumn get redirectUrl => text().nullable()();
  IntColumn get isInvitable => integer().nullable()();
  IntColumn get isAllowForward => integer().nullable()();
  TextColumn get tips => text().nullable()();

  @override
  Set<Column> get primaryKey => {id};

  @override
  String get tableName => 'chat_bot';
}