promotion wip
This commit is contained in:
1 parent
61594777d7
commit
3c5698a550
17 files changed
+176
-303
No files matched your search
@@ -22,10 +22,10 @@ return new class extends Migration
|
||||
$table->string('country')->nullable();
|
||||
$table->string('phone')->nullable();
|
||||
$table->string('uid_number')->nullable();
|
||||
$table->string('plan_id')->default(1);
|
||||
$table->string('guthaben')->default(0);
|
||||
$table->timestamp('gueltig_bis')->nullable();
|
||||
$table->string('abgeschlossen')->default(1);
|
||||
$table->integer('plan_id')->default(1);
|
||||
$table->timestamp('gueltig_bis')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -15,10 +15,13 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('payment')->nullable();
|
||||
$table->string('gutachten')->nullable();
|
||||
$table->string('description')->nullable();
|
||||
$table->string('file')->nullable();
|
||||
$table->integer('preis')->default(0);
|
||||
$table->integer('number_user')->default(1);
|
||||
$table->integer('number_gutachter')->default(1);
|
||||
$table->integer('limit_user')->default(1);
|
||||
$table->integer('limit_auftraggeber')->default(1);
|
||||
$table->integer('limit_gutachter')->default(1);
|
||||
$table->integer('limit_gutachten')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -15,6 +15,11 @@ class DatabaseSeeder extends Seeder
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$this->call([
|
||||
OrientierungenSeeder::class,
|
||||
PlansSeeder::class,
|
||||
]);
|
||||
|
||||
if (app()->isLocal()) {
|
||||
Konto::factory()->count(10)->create();
|
||||
Gutachter::factory()->count(30)->create();
|
||||
@@ -22,8 +27,6 @@ class DatabaseSeeder extends Seeder
|
||||
}
|
||||
|
||||
$this->call([
|
||||
OrientierungenSeeder::class,
|
||||
PlansSeeder::class,
|
||||
RolesAndPermissionsSeeder::class,
|
||||
]);
|
||||
|
||||
|
||||
@@ -12,11 +12,11 @@ class PlansSeeder extends Seeder
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$sql = "INSERT INTO `plans` (`id`, `name`, `payment`, `gutachten`, `preis`, `number_user`, `number_gutachter`, `created_at`, `updated_at`)
|
||||
$sql = "INSERT INTO `plans` (`id`, `name`, `payment`, `description`, `file`, `preis`, `limit_user`, `limit_auftraggeber`, `limit_gutachter`, `limit_gutachten`, `created_at`, `updated_at`)
|
||||
VALUES
|
||||
('1', 'Einfach', 'Per Gutachten', 'Per Stück', '75', '1', '1', NULL, NULL),
|
||||
('2', 'Erweitert', 'Monatlich', 'Unbegrenzt', '150', '3', '1', NULL, NULL),
|
||||
('3', 'Vollversion', 'Jährlich', 'Unbegrenzt', '1750', '5', '10', NULL, NULL);
|
||||
('1', 'Standard', 'Per Gutachten', 'Zahlungen werden für jedes Gutachten einzeln getätigt.', 'promotion/basic.jpg', '75', '1', '1', '1', '1', NULL, NULL),
|
||||
('2', 'Smart', 'Monatlich', 'Zahlung erfolgt monatlich, ohne Begrenzung der Gutachten.', 'promotion/smart.jpg', '150', '3', '1', '3', '-1', NULL, NULL),
|
||||
('3', 'Premium', 'Jährlich', 'Zahlung erfolgt jährlich, ohne Begrenzung für Gutachten, Gutachter oder Auftraggeber.', 'promotion/premium.jpg', '1750', '10', '5', '5', '-1', NULL, NULL);
|
||||
";
|
||||
DB::unprepared($sql);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user