summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2024-05-22 22:54:50 +0200
committerJulian T <julian@jtle.dk>2024-05-22 22:54:50 +0200
commitdd11cf4ab199e5d53d03dc95b24007a12727ad70 (patch)
tree710f94ac775ac8e3d279f40638034b847516f0e3 /src/model
parent829cbaf2d0fe95abc9c65b1e34e209fc32952805 (diff)
Start goprojekt istedet
Diffstat (limited to 'src/model')
-rw-r--r--src/model/mod.rs3
-rw-r--r--src/model/task.rs20
2 files changed, 0 insertions, 23 deletions
diff --git a/src/model/mod.rs b/src/model/mod.rs
deleted file mode 100644
index d869a4f..0000000
--- a/src/model/mod.rs
+++ /dev/null
@@ -1,3 +0,0 @@
-mod task;
-
-pub use task::Task;
diff --git a/src/model/task.rs b/src/model/task.rs
deleted file mode 100644
index e90dd8e..0000000
--- a/src/model/task.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-
-use sqlx::FromRow;
-
-#[derive(Debug, FromRow)]
-pub struct Task {
- pub id: i64,
- pub group_id: i64,
- pub name: String,
- pub description: String,
-}
-
-impl Task {
- pub fn new(id: i64, group_id: i64, name: &str, description: &str) -> Task {
- Task {
- id, group_id,
- name: String::from(name),
- description: String::from(description),
- }
- }
-}