added database models and models for continous use. Also changed get all paths according to that. Nothing is testet yet!

This commit is contained in:
2025-11-01 20:47:04 +01:00
parent d02c1fa314
commit fdf335b346
13 changed files with 280 additions and 51 deletions

View File

@@ -1,2 +1,2 @@
DROP TABLE pathVersions;
DROP TABLE path;
DROP TABLE pathMetadata;
DROP TABLE path;

View File

@@ -1,12 +1,14 @@
CREATE TABLE path (
id integer primary key,
id text primary key,
title text,
description text,
versions text
);
CREATE TABLE pathVersions (
pathId integer references path(id),
versionNumber string,
CREATE TABLE pathMetadata (
pathId text references path(id),
versionNumber text,
createdAt text,
updatedAt text,
primary key (pathId, versionNumber)
);
);