【发布时间】:2021-10-13 16:38:41
【问题描述】:
将首先创建周末表,因此我认为周末蒸汽 ID 需要在周末并执行选择语句。但我真的很困惑。基本上用户将进入一个周末。然后以不同的观点,他们将进入那个周末的团队。我需要找到一种方法将这两个表绑定在一起,这样我就可以在前端查询它以获取周末视图。
周末餐桌
Schema::create('weekends', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->mediumText('verse');
$table->string('songtitle');
$table->string('songvideo');
$table->string('image')->default('default.png');
$table->string('videolink')->nullable();
$table->timestamps();
});
周末团队
Schema::create('weekendteam', function (Blueprint $table) {
$table->id();
$table->string('firstname');
$table->string('lastname');
$table->string('position');
$table->timestamps();
});
【问题讨论】: