feat: weakup tweet
This commit is contained in:
@@ -30,6 +30,8 @@ class TerminalFactory extends Factory
|
||||
'ip_address' => fake()->localIpv4(),
|
||||
'station_id' => null, // 需要关联实际的线站ID
|
||||
'diagram_url' => fake()->imageUrl(1920, 1080, 'diagram', true),
|
||||
'voice_wakeup_enabled' => false,
|
||||
'voice_wakeup_word' => null,
|
||||
'is_online' => fake()->boolean(70), // 70%概率在线
|
||||
'last_online_at' => fake()->dateTimeBetween('-7 days', 'now'),
|
||||
];
|
||||
|
||||
@@ -21,6 +21,8 @@ return new class extends Migration
|
||||
$table->string('diagram_url', 500)->nullable()->comment('组态界面地址');
|
||||
$table->string('scada_data_url', 500)->nullable()->comment('网关数据查询地址');
|
||||
$table->string('scada_tags_url', 500)->nullable()->comment('网关点位定义查询地址');
|
||||
$table->boolean('voice_wakeup_enabled')->default(false)->comment('语音唤醒是否启用');
|
||||
$table->string('voice_wakeup_word', 100)->nullable()->comment('语音唤醒词');
|
||||
$table->boolean('is_online')->default(false)->comment('在线状态');
|
||||
$table->timestamp('last_online_at')->nullable()->comment('最后在线时间');
|
||||
$table->timestamps();
|
||||
|
||||
Reference in New Issue
Block a user