plan options
This commit is contained in:
1 parent
8463f50f6b
commit
ecb66a76b5
14 files changed
+277
-303
No files matched your search
@@ -13,15 +13,13 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('plans', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('icon')->nullable();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('payment')->nullable();
|
||||
$table->string('description')->nullable();
|
||||
$table->string('promotion')->nullable();
|
||||
$table->integer('preis')->default(0);
|
||||
$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();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -12,11 +12,11 @@ class PlansSeeder extends Seeder
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$sql = "INSERT INTO `plans` (`id`, `name`, `payment`, `description`, `promotion`, `preis`, `limit_user`, `limit_auftraggeber`, `limit_gutachter`, `limit_gutachten`, `created_at`, `updated_at`)
|
||||
$sql = "INSERT INTO `plans` (`id`, `name`, `payment`, `description`, `icon`, `preis`, `limit_user`, `limit_gutachter`, `created_at`, `updated_at`)
|
||||
VALUES
|
||||
('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);
|
||||
('1', 'Basic', 'Per Gutachten', 'Zahlungen per Gutachten.', 'phosphor-airplane-thin', '75', '1', '1', NULL, '2025-09-30 15:53:33'),
|
||||
('2', 'Standard', 'Monatlich', 'Zahlung erfolgt monatlich, ohne Begrenzung der Gutachten.', 'phosphor-airplane-takeoff-thin', '150', '3', '3', NULL, '2025-09-30 15:53:42'),
|
||||
('3', 'Premium', 'Jährlich', 'Zahlung erfolgt jährlich, ohne Begrenzung für Gutachten, Gutachter oder Auftraggeber.', 'phosphor-airplane-in-flight-thin', '1750', '10', '5', NULL, '2025-09-30 15:53:47');
|
||||
";
|
||||
DB::unprepared($sql);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user