fix: working copy, caching ASP, notworking orders though

This commit is contained in:
Didier Slof 2023-02-03 09:05:29 +01:00
parent dc5d204cfc
commit 390ad23e03
Signed by: didier
GPG key ID: 01E71F18AA4398E5
32 changed files with 246 additions and 194 deletions

View file

@ -15,12 +15,12 @@ return new class extends Migration {
Schema::create('addresses', function (Blueprint $table) {
$table->id('address_id');
$table->timestamps();
$table->addColumn('string', 'address_street', ['length' => 255]);
$table->addColumn('string', 'address_city', ['length' => 255]);
$table->addColumn('string', 'address_state', ['length' => 255]);
$table->addColumn('string', 'address_zip', ['length' => 255]);
$table->addColumn('string', 'address_country', ['length' => 255])->default('Netherlands');
$table->addColumn('string', 'address_phone', ['length' => 255])->nullable();
$table->string('address_street', 255);
$table->string('address_city', 255);
$table->string('address_state', 255);
$table->string('address_zip', 255);
$table->string('address_country', 255)->default('Netherlands');
$table->string('address_phone', 255)->nullable();
});
}

View file

@ -20,6 +20,7 @@ return new class extends Migration
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->enum('role', ['default', 'employee', 'manage', 'admin'])->default('default');
$table->foreignId('address_id')->nullable()->constrained('addresses', 'address_id')->onDelete('cascade');
$table->rememberToken();
$table->timestamps();
});

View file

@ -14,7 +14,7 @@ return new class extends Migration
public function up()
{
Schema::create('personal_access_tokens', function (Blueprint $table) {
$table->id('personal_access_token_id');
$table->id();
$table->morphs('tokenable');
$table->string('name');
$table->string('token', 64)->unique();