work in progress database
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -1,13 +1,13 @@
|
||||
import 'base_entity.dart';
|
||||
|
||||
|
||||
const String noteTable = 'note';
|
||||
|
||||
class Note{
|
||||
String id;
|
||||
String id='';
|
||||
String title;
|
||||
String creationDate;
|
||||
String lastModificationDate;
|
||||
String arrayPromemoria;
|
||||
String? arrayPromemoria;
|
||||
String description;
|
||||
|
||||
Map<String, dynamic> toMap() {
|
||||
@@ -30,6 +30,14 @@ class Note{
|
||||
this.description,
|
||||
);
|
||||
|
||||
Note.newConstructor(
|
||||
this.title,
|
||||
this.creationDate,
|
||||
this.lastModificationDate,
|
||||
this.arrayPromemoria,
|
||||
this.description,
|
||||
);
|
||||
|
||||
String getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -62,7 +70,7 @@ class Note{
|
||||
lastModificationDate = lastModificationDate1;
|
||||
}
|
||||
|
||||
String getArrayPromemoria() {
|
||||
String? getArrayPromemoria() {
|
||||
return arrayPromemoria;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'base_entity.dart';
|
||||
import 'identifiers/enum/color.dart';
|
||||
import 'identifiers/enum/priority.dart';
|
||||
|
||||
@@ -10,7 +9,7 @@ class Promemoria {
|
||||
String creationDate;
|
||||
String lastModificationDate;
|
||||
String expirationDate;
|
||||
String arrayPromemoria;
|
||||
String? arrayPromemoria;
|
||||
String description;
|
||||
String priority;
|
||||
String color;
|
||||
@@ -90,7 +89,7 @@ class Promemoria {
|
||||
expirationDate = expirationDate1;
|
||||
}
|
||||
|
||||
String getArrayPromemoria() {
|
||||
String? getArrayPromemoria() {
|
||||
return arrayPromemoria;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user