schema.sql
This file
Path
examples/minitwit/schema.sql
21 lines · 447 bytes · SQL
Last changed by
Initial checkin of stuff that exists so far.Armin Ronacherbefore adoption33850c0
History of this fileTake it
1drop table if exists user;2create table user (3 user_id integer primary key autoincrement,4 username string not null,5 email string not null,6 pw_hash string not null7);89drop table if exists follower;10create table follower (11 who_id integer,12 whom_id integer13);1415drop table if exists message;16create table message (17 message_id integer primary key autoincrement,18 author_id integer not null,19 text string not null,20 pub_date integer21);