步骤1:数据库模式

In this step, you will create the database schema. Only a single table is needed for this application and it will only support SQLite. 只需要把下面的内容放进一个名为schema.sql的文件,放在刚才创建的 flaskr/flaskr文件夹中:

drop table if exists entries;
create table entries (
  id integer primary key autoincrement,
  title text not null,
  'text' text not null
);

这个模式包含唯一的一个名为entries的表。该表中的每行都包含一个id 、一个title和一个textid是一个自增的整数,也是主键,其余的两个是字符串,且不允许为空。

Continue with Step 2: Application Setup Code.