时间:2021-07-01 10:21:17 帮助过:20人阅读
CREATE TABLE `sitea_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL, `phoneNumber` bigint(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `sitea_blog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `blogName` varchar(16) NOT NULL, `content` longtext NOT NULL, `user_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `sitea_blog_user_id_2c1e69b4_fk_sitea_user_id` (`user_id`), CONSTRAINT `sitea_blog_user_id_2c1e69b4_fk_sitea_user_id` FOREIGN KEY (`user_id`) REFERENCES `sitea_user` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
---
dango models and database ---- relation ship
标签:imp -- ima port prim rom text hone nbsp