Skip to content

Commit

Permalink
feat: init hello-world-with-a-plugin project
Browse files Browse the repository at this point in the history
  • Loading branch information
fahchen committed Sep 3, 2023
1 parent c178e43 commit 1273da8
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
## Some demo projects utilizing Jet 2.0

### hello-world-with-a-plugin

A simple project that calls a plugin's API.
Empty file.
1 change: 1 addition & 0 deletions projects/hello-world-with-a-plugin/.jet/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- migrate:up
CREATE TABLE posts (
id SERIAL PRIMARY KEY,
title VARCHAR(64) NOT NULL,
body TEXT NOT NULL
);

-- migrate:down
DROP TABLE posts;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- migrate:up
CREATE TABLE subscriptions (
phone VARCHAR(11) NOT NULL
);

-- migrate:down
DROP TABLE subscriptions;

0 comments on commit 1273da8

Please sign in to comment.