Skip to content

Instantly share code, notes, and snippets.

@vdeturckheim
Created February 4, 2018 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vdeturckheim/75051e8de4b5de47d207e530e03ce61c to your computer and use it in GitHub Desktop.
Save vdeturckheim/75051e8de4b5de47d207e530e03ce61c to your computer and use it in GitHub Desktop.
CREATE TABLE POSTS(
ID INTEGER PRIMARY KEY AUTOINCREMENT,
TITLE TEXT NOT NULL,
CONTENT TEXT
);
INSERT INTO POSTS (TITLE, CONTENT)
VALUES ('hello world', 'hello');
INSERT INTO POSTS (TITLE, CONTENT)
VALUES ('my travel in the land of unicorns', 'unicorns are cool');
CREATE TABLE USERS(
ID INTEGER PRIMARY KEY AUTOINCREMENT,
USERNAME TEXT NOT NULL,
PASSWORD TEXT NOT NULL
);
INSERT INTO USERS (USERNAME, PASSWORD)
VALUES ('admin', 'admin123');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment