1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-28 13:58:51 +00:00
comunicmobile/lib/helpers/database/database_contract.dart

25 lines
620 B
Dart
Raw Normal View History

2019-04-24 09:24:05 +00:00
/// Database contract
///
/// @author Pierre HUBERT
/// Main information
class DatabaseContract {
2020-04-26 12:02:57 +00:00
static const DATABASE_VERSION = 2;
2019-04-24 09:24:05 +00:00
static const DATABASE_FILE_NAME = "database.sqlite";
}
2019-04-24 11:56:56 +00:00
/// Base table contract
abstract class BaseTableContract {
static const C_ID = "id";
}
2019-05-04 17:35:03 +00:00
/// Friends table contract
abstract class FriendsListTableContract {
static const TABLE_NAME = "friends";
static const C_ID = BaseTableContract.C_ID;
static const C_ACCEPTED = "accepted";
static const C_LAST_ACTIVE = "last_active";
static const C_FOLLOWING = "following";
static const C_CAN_POST_TEXTS = "can_post_texts";
2020-04-26 12:02:57 +00:00
}