Skip to content
Myr

schema.sql

This file

Path

examples/minitwit/schema.sql

21 lines · 447 bytes · SQL

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than a3f78af point at it.

Improved the templated decorator in the documentation as recommended by Thadeus Burgess on the mailinglistArmin Ronacherbefore adoptiona3f78af

lines 1–21why, one step back
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);