This commit is contained in:
Tito Arrigo
2023-09-28 13:04:42 +02:00
parent e061871c4f
commit c2824c99a4
13 changed files with 262 additions and 20 deletions

View 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;
}
}

View File

@@ -0,0 +1,14 @@
enum Color {
none,
red,
orange,
yellow,
green,
blue,
purple,
pink,
brown,
grey,
black,
white,
}

View File

@@ -0,0 +1,7 @@
enum Priority{
none,
low,
medium,
moderate,
high
}

View 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
View 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
View 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;
}