sqlll

Kolorwanie:
Status:
123456789101112
CREATE TABLE posts (
 id int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
 user_id int(11) DEFAULT NULL,
 title varchar(255) NOT NULL,
 slug varchar(255) NOT NULL UNIQUE,
 views int(11) NOT NULL DEFAULT '0',
 image varchar(255) NOT NULL,
 body text NOT NULL,
 created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
 updated_at timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE NO ACTION ON UPDATE NO ACTION
)

Copyrights 2014-2020 © Wklejaj.pl Wszelkie prawa zastrzeżone.