initial project

This commit is contained in:
2025-11-06 13:41:06 +08:00
commit 1b08727cb2
209 changed files with 31602 additions and 0 deletions
@@ -0,0 +1,27 @@
<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class CreatePaymentMethod extends Migration
{
public function up()
{
$this->forge->addField([
'payment_method_id' => ['type' => 'INT', 'unsigned' => true, 'auto_increment' => true],
'payment' => ['type' => 'VARCHAR', 'constraint' => 255],
'created_at' => ['type' => 'DATETIME', 'null' => true],
'updated_at' => ['type' => 'DATETIME', 'null' => true],
'deleted_at' => ['type' => 'DATETIME', 'null' => true],
]);
$this->forge->addKey('payment_method_id', true);
$this->forge->createTable('payment_method');
}
public function down()
{
$this->forge->dropTable('payment_method');
}
}