Move handlers into Lua Server Pages

This commit is contained in:
2024-08-05 22:46:43 -06:00
parent 3296db9f80
commit 9f2eeb0a50
13 changed files with 49 additions and 54 deletions

View File

@ -0,0 +1,6 @@
create table node (
id INT PRIMARY KEY,
title TEXT NOT NULL,
body TEXT NOT NULL
);
insert into node(title, body) values ("First post", "This is the beginning of a beautiful relationship.");

View File

@ -0,0 +1,9 @@
create table node_type (
id INT PRIMARY KEY,
name TEXT NOT NULL
);
insert into node_type(id, name) values (0, "Basic post");
alter table node
add column node_type_id INT NOT NULL references node_type(id) default 0;