schema.sql
This file
Path
examples/minitwit/schema.sql
21 lines · 447 bytes · SQL
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 26f86b1 point at it.
Restructured documentation a bit.Armin Ronacherbefore adoption26f86b1
lines 1–21why, one step back1drop 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);