merge
This commit is contained in:
19
lib/model/base_entity.dart
Normal file
19
lib/model/base_entity.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
abstract class BaseEntity{
|
||||
static String id = 'id';
|
||||
static String title = 'Title';
|
||||
static String creationDate = 'CreationDate';
|
||||
static String lastEditDate = 'LastEditDate';
|
||||
|
||||
static String get getId{
|
||||
return id;
|
||||
}
|
||||
static String get getTitle{
|
||||
return title;
|
||||
}
|
||||
static String get getCreationDate{
|
||||
return creationDate;
|
||||
}
|
||||
static String get getLastEditDate{
|
||||
return lastEditDate;
|
||||
}
|
||||
}
|
||||
14
lib/model/identifiers/enum/color.dart
Normal file
14
lib/model/identifiers/enum/color.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
enum Color {
|
||||
none,
|
||||
red,
|
||||
orange,
|
||||
yellow,
|
||||
green,
|
||||
blue,
|
||||
purple,
|
||||
pink,
|
||||
brown,
|
||||
grey,
|
||||
black,
|
||||
white,
|
||||
}
|
||||
7
lib/model/identifiers/enum/priority.dart
Normal file
7
lib/model/identifiers/enum/priority.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
enum Priority{
|
||||
none,
|
||||
low,
|
||||
medium,
|
||||
moderate,
|
||||
high
|
||||
}
|
||||
6
lib/model/identifiers/tag.dart
Normal file
6
lib/model/identifiers/tag.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
import 'enum/color.dart';
|
||||
|
||||
class Tag {
|
||||
static String title = "";
|
||||
Color color = Color.none;
|
||||
}
|
||||
12
lib/model/note.dart
Normal file
12
lib/model/note.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
import 'base_entity.dart';
|
||||
|
||||
const String noteTable = 'note';
|
||||
|
||||
class Note extends BaseEntity {
|
||||
static String id = BaseEntity.getId;
|
||||
static String title = BaseEntity.getTitle;
|
||||
static String creationDate = BaseEntity.getCreationDate;
|
||||
static String lastModificationDate = BaseEntity.getLastEditDate;
|
||||
static String arrayPromemoria = '';
|
||||
static String description = '';
|
||||
}
|
||||
18
lib/model/promemoria.dart
Normal file
18
lib/model/promemoria.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'base_entity.dart';
|
||||
import 'identifiers/enum/color.dart';
|
||||
import 'identifiers/enum/priority.dart';
|
||||
|
||||
const String promemoriaTable = 'promemoria';
|
||||
|
||||
class Promemoria extends BaseEntity {
|
||||
static String id = BaseEntity.getId;
|
||||
static String title = BaseEntity.getTitle;
|
||||
static String creationDate = BaseEntity.getCreationDate;
|
||||
static String lastModificationDate = BaseEntity.getLastEditDate;
|
||||
static String expirationDate = '';
|
||||
static String arrayPromemoria = '';
|
||||
static String description = '';
|
||||
static Priority priority = Priority.none;
|
||||
|
||||
static Color color = Color.none;
|
||||
}
|
||||
Reference in New Issue
Block a user