feat: Add created_at, updated_at fields in the db proposal model

This commit is contained in:
Mahmoud-Emad
2025-05-21 09:53:10 +03:00
parent 5327d1f00c
commit 8997d92e41
3 changed files with 19 additions and 0 deletions

View File

@@ -38,6 +38,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
creator_name,
title,
description,
Utc::now(),
Utc::now(),
start_date,
end_date,
)
@@ -156,6 +158,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
"Retrieved Creator Name",
"Retrieved Proposal",
"Retrieved Description",
Utc::now(),
Utc::now(),
start_date,
end_date,
)
@@ -180,6 +184,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
"Creator Name 1",
"Proposal 1",
"Description 1",
Utc::now(),
Utc::now(),
start_date,
end_date,
),
@@ -189,6 +195,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
"Creator Name 2",
"Proposal 2",
"Description 2",
Utc::now(),
Utc::now(),
start_date,
end_date,
),