|
|
|
|
@ -73,10 +73,23 @@ namespace {
|
|
|
|
|
$table->text('spec_json'); $table->text('sealed_credential')->nullable();
|
|
|
|
|
$table->integer('created_at'); $table->integer('updated_at');
|
|
|
|
|
});
|
|
|
|
|
$schema->create('cloud_instance_network_policy_states',
|
|
|
|
|
static function (Blueprint $table): void {
|
|
|
|
|
$table->integer('instance_id')->primary();
|
|
|
|
|
$table->integer('user_id');
|
|
|
|
|
$table->boolean('desired_suspended')->default(false);
|
|
|
|
|
$table->boolean('applied_suspended')->default(false);
|
|
|
|
|
$table->integer('revision')->default(1);
|
|
|
|
|
$table->string('state')->default('applied');
|
|
|
|
|
$table->string('operation_id')->nullable()->unique();
|
|
|
|
|
$table->integer('created_at');
|
|
|
|
|
$table->integer('updated_at');
|
|
|
|
|
});
|
|
|
|
|
$schema->create('cloud_service_periods', static function (Blueprint $table): void {
|
|
|
|
|
$table->increments('id'); $table->integer('instance_id'); $table->integer('user_id');
|
|
|
|
|
$table->integer('plan_id')->nullable(); $table->integer('order_id')->nullable();
|
|
|
|
|
$table->integer('renewal_id')->nullable(); $table->integer('starts_at'); $table->integer('ends_at');
|
|
|
|
|
$table->integer('traffic_pool_group_id')->nullable(); $table->string('traffic_quota_mode')->default('finite');
|
|
|
|
|
$table->integer('traffic_quota_bytes'); $table->integer('download_base_bytes')->nullable();
|
|
|
|
|
$table->integer('upload_base_bytes')->nullable(); $table->integer('download_used_bytes')->default(0);
|
|
|
|
|
$table->integer('upload_used_bytes')->default(0); $table->string('status');
|
|
|
|
|
|