This commit is contained in:
antv
2026-07-02 17:02:02 +07:00
parent 89790539b7
commit f594a45e84
17 changed files with 200 additions and 122 deletions
@@ -12,14 +12,18 @@ return new class extends Migration
public function up(): void
{
Schema::create('user', function (Blueprint $table) {
$table->string('msnv')->primary();
$table->increments('id');
$table->integer('msnv')->unique();
$table->string('name');
$table->string('mail');
$table->string('pass');
$table->tinyInteger('role')->default(0)->comment('0: member / 1: admin');
$table->tinyInteger('status')->default(1)->comment('0: đã nghỉ / 1: đang làm');
$table->integer('card')->nullable();
$table->tinyInteger('flag_send')->default(0)->comment('0: không được gửi / 1: được gửi');
$table->tinyInteger('first_login')->default(1)->comment('0: không là lần đầu / 1: lần đầu');
$table->integer('departments')->default(1);
$table->string('avatar')->nullable();
$table->tinyInteger('role')->default(0)->comment('0: member, default / 1: admin');
$table->tinyInteger('status')->default(1)->comment('0: đã nghỉ / 1: đang làm, default');
$table->integer('card')->default(0);
$table->tinyInteger('flag_send')->default(0)->comment('0: không được gửi card / 1: được gửi card');
$table->tinyInteger('first_login')->default(1)->comment('0: không là lần đầu / 1: lần đầu, default');
});
// Only user table remains
@@ -12,10 +12,11 @@ return new class extends Migration
public function up(): void
{
Schema::create('add_card', function (Blueprint $table) {
$table->increments('id');
$table->integer('buyer');
$table->integer('num_card');
$table->integer('seller');
$table->date('date')->nullable();
$table->date('date');
});
}
@@ -12,12 +12,12 @@ return new class extends Migration
public function up(): void
{
Schema::create('administration', function (Blueprint $table) {
$table->id();
$table->string('msnv');
$table->increments('id');
$table->integer('msnv');
$table->integer('received')->nullable();
$table->string('sender')->nullable();
$table->integer('sender')->nullable();
$table->integer('sent')->nullable();
$table->string('receiver')->nullable();
$table->integer('receiver')->nullable();
$table->date('date')->nullable();
});
}