BootstrapSQLiteBlog/db/sqlite/create_posts_table.sql

10 lines
374 B
SQL

CREATE table if not exists posts (
id integer primary key autoincrement,
username text not null,
content text not null,
location text not null,
visibility text null,
created timestamp not null default current_timestamp,
updated timestamp not null default current_timestamp,
sort integer not null default 0)