flask-site/schema.sql

7 lines
260 B
MySQL
Raw Normal View History

CREATE TABLE blog_posts (
id INT( 6 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
title VARCHAR( 500 ) DEFAULT NULL ,
text VARCHAR( 10000 ) DEFAULT NULL ,
created_on DATETIME NOT NULL ,
updated_on TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP
);