mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-25 14:29:22 +00:00
37 lines
1.1 KiB
Dart
37 lines
1.1 KiB
Dart
/// Database contract
|
|
///
|
|
/// @author Pierre HUBERT
|
|
|
|
/// Main information
|
|
class DatabaseContract {
|
|
static const DATABASE_VERSION = 1;
|
|
static const DATABASE_FILE_NAME = "database.sqlite";
|
|
}
|
|
|
|
/// Base table contract
|
|
abstract class BaseTableContract {
|
|
static const C_ID = "id";
|
|
}
|
|
|
|
/// User table contract
|
|
abstract class UserTableContract {
|
|
static const TABLE_NAME = "users";
|
|
static const C_ID = BaseTableContract.C_ID;
|
|
static const C_FIRST_NAME = "first_name";
|
|
static const C_LAST_NAME = "last_name";
|
|
static const C_VISIBILITY = "visibility";
|
|
static const C_VIRTUAL_DIRECTORY = "virtual_directory";
|
|
static const C_ACCOUNT_IMAGE_URL = "account_image_url";
|
|
}
|
|
|
|
/// Conversations table contract
|
|
abstract class ConversationTableContract {
|
|
static const TABLE_NAME = "conversations";
|
|
static const C_ID = BaseTableContract.C_ID;
|
|
static const C_OWNER_ID = "owner_id";
|
|
static const C_LAST_ACTIVE = "last_active";
|
|
static const C_NAME = "name";
|
|
static const C_FOLLOWING = "following";
|
|
static const C_SAW_LAST_MESSAGE = "saw_last_message";
|
|
static const C_MEMBERS = "members";
|
|
} |