import 'package:drift/drift.dart';

@DataClassName('DriftApiRetry')
class ApiRetries extends Table {
  IntColumn get id => integer().autoIncrement()();

  IntColumn get uid => integer().nullable()();

  TextColumn get apiType => text().withDefault(const Constant(''))();

  TextColumn get endPoint => text().withDefault(const Constant(''))();

  TextColumn get requestData => text().withDefault(const Constant(''))();

  IntColumn get synced => integer().nullable()();

  TextColumn get callbackFun => text().withDefault(const Constant(''))();

  IntColumn get expired => integer().nullable()();

  IntColumn get replace => integer().nullable()();

  IntColumn get expireTime => integer().nullable()();

  IntColumn get createTime => integer().nullable()();

  IntColumn get addIndex => integer().nullable()();

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