import 'package:drift/drift.dart';

@DataClassName('DriftChatCategory')
class ChatCategories extends Table {
  IntColumn get id => integer()();
  TextColumn get name => text().nullable()();
  TextColumn get includedChatIds => text().nullable()();
  TextColumn get excludedChatIds => text().nullable()();
  IntColumn get seq => integer().nullable()();
  IntColumn get isHide => integer().withDefault(const Constant(0))();
  IntColumn get createdAt => integer().withDefault(const Constant(0))();
  IntColumn get updatedAt => integer().withDefault(const Constant(0))();
  IntColumn get deletedAt => integer().withDefault(const Constant(0))();

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

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