Initial checkin of stuff that exists so far.
This commit is contained in:
commit
33850c0ebd
15 changed files with 984 additions and 0 deletions
21
examples/minitwit/schema.sql
Normal file
21
examples/minitwit/schema.sql
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
drop table if exists user;
|
||||
create table user (
|
||||
user_id integer primary key autoincrement,
|
||||
username string not null,
|
||||
email string not null,
|
||||
pw_hash string not null
|
||||
);
|
||||
|
||||
drop table if exists follower;
|
||||
create table follower (
|
||||
who_id integer,
|
||||
whom_id integer
|
||||
);
|
||||
|
||||
drop table if exists message;
|
||||
create table message (
|
||||
message_id integer primary key autoincrement,
|
||||
author_id integer not null,
|
||||
text string not null,
|
||||
pub_date integer
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue