From f23c5dbb3b725dc481cc79d5d4096232963250dd Mon Sep 17 00:00:00 2001
From: Daniel Hader <dhader96@gmail.com>
Date: Tue, 12 May 2026 20:18:58 -0500
Subject: submission model

---
 src/database/sql/initialize.sql | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/database/sql/initialize.sql')

diff --git a/src/database/sql/initialize.sql b/src/database/sql/initialize.sql
index 065bac9..510c427 100644
--- a/src/database/sql/initialize.sql
+++ b/src/database/sql/initialize.sql
@@ -13,9 +13,9 @@ CREATE TABLE IF NOT EXISTS user (
 
 CREATE TABLE IF NOT EXISTS submission (
     id         INTEGER PRIMARY KEY,
-    problem_id INTEGER NOT NULL,
     user_id    INTEGER NOT NULL,
-    language   TEXT NOT NULL,
+    problem_id INTEGER NOT NULL,
     code       TEXT NOT NULL,
+    language   TEXT NOT NULL,
     validated  INTEGER NOT NULL
 );
-- 
cgit v1.2.3

