Skip to content

Instantly share code, notes, and snippets.

@MtShadow
Created June 9, 2016 12:22
Show Gist options
  • Save MtShadow/db2b900728a6c59c7267662940ae5ba1 to your computer and use it in GitHub Desktop.
Save MtShadow/db2b900728a6c59c7267662940ae5ba1 to your computer and use it in GitHub Desktop.
db.sql
CREATE TABLE Items (Name text, Price integer, Stock integer, JAN text);
CREATE TABLE Users (Name text, StudentId text, Balance integer);
CREATE TABLE Transactions (ItemId integer, UserId integer, Price integer, MadeAt integer, foreign key(ItemId) references Items(ROWID), foreign key(UserId) references Users(ROWID));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment