mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Correct date handling for task due dates to prevent errors
Update the schema to use the `date` type for due dates instead of `timestamp` to resolve a TypeError when creating tasks. Replit-Commit-Author: Agent Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/GypDGUs
This commit is contained in:
1 parent
e7b9003e06
commit
da7d1463ba
2 files changed
+1
-1
No files matched your search
+1
-1
@@ -248,7 +248,7 @@ export const tasks = pgTable("tasks", {
|
||||
id: serial("id").primaryKey(),
|
||||
title: varchar("title").notNull(), // Titre de la tâche (requis)
|
||||
description: text("description"), // Description de la tâche (optionnel)
|
||||
dueDate: timestamp("due_date"), // Date d'échéance (optionnel)
|
||||
dueDate: date("due_date"), // Date d'échéance (optionnel)
|
||||
priority: varchar("priority").notNull().default("medium"), // low, medium, high
|
||||
status: varchar("status").notNull().default("pending"), // pending, completed
|
||||
assignedTo: text("assigned_to").notNull(), // Utilisateur responsable (champ libre)
|
||||
|
||||
Reference in new issue
Block a user