diff --git a/migration.sql b/migration.sql index a9d2fc6..6f74a40 100644 --- a/migration.sql +++ b/migration.sql @@ -8,6 +8,14 @@ CREATE TABLE IF NOT EXISTS "user" ( "deleted" boolean NOT NULL DEFAULT FALSE ); +CREATE TABLE IF NOT EXISTS "trip_type" ( + "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, + "name" text NOT NULL UNIQUE, + "desc" text NOT NULL, + "question" text NOT NULL, + "icon" text NOT NULL +); + CREATE TABLE IF NOT EXISTS "trip_details" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "planned_starting_time" text NOT NULL, @@ -55,10 +63,3 @@ CREATE TABLE IF NOT EXISTS "log" ( "created_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP ); -CREATE TABLE IF NOT EXISTS "trip_type" ( - "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, - "name" text NOT NULL UNIQUE, - "desc" text NOT NULL, - "question" text NOT NULL, - "icon" text NOT NULL -);