import 'package:drift/drift.dart';

@DataClassName('DriftCallLog')
class CallLogs extends Table {
  TextColumn get id => text()();
  IntColumn get callerId => integer().nullable()();
  IntColumn get receiverId => integer().nullable()();
  IntColumn get chatId => integer().nullable()();
  IntColumn get duration => integer().nullable()();
  IntColumn get videoCall => integer().nullable()();
  IntColumn get createdAt => integer().nullable()();
  IntColumn get updatedAt => integer().nullable()();
  IntColumn get endedAt => integer().nullable()();
  IntColumn get status => integer().nullable()();
  IntColumn get isDeleted => integer().nullable()();
  IntColumn get deletedAt => integer().nullable()();
  IntColumn get isRead => integer().nullable()();

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

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