Muhammad Iqbal Afandi 3 gadus atpakaļ
vecāks
revīzija
be8bdd0a93

+ 1
- 1
app/Models/Member.php Parādīt failu

14
     protected $fillable = [
14
     protected $fillable = [
15
         'name',
15
         'name',
16
         'phone',
16
         'phone',
17
-        'plat_number',
17
+        'exp_date',
18
         'type_member_id',
18
         'type_member_id',
19
     ];
19
     ];
20
 
20
 

+ 1
- 0
app/Models/Mutation.php Parādīt failu

14
         'amount',
14
         'amount',
15
         'transaction_id',
15
         'transaction_id',
16
         'expense_id',
16
         'expense_id',
17
+        'topup_id',
17
     ];
18
     ];
18
 }
19
 }

+ 16
- 0
app/Models/TransactionIn.php Parādīt failu

1
+<?php
2
+
3
+namespace App\Models;
4
+
5
+use Illuminate\Database\Eloquent\Factories\HasFactory;
6
+use Illuminate\Database\Eloquent\Model;
7
+
8
+class TransactionIn extends Model
9
+{
10
+    use HasFactory;
11
+
12
+    protected $fillable = [
13
+        'capture_vehicle',
14
+        'transaction_number',
15
+    ];
16
+}

app/Models/Transaction.php → app/Models/TransactionOut.php Parādīt failu

5
 use Illuminate\Database\Eloquent\Factories\HasFactory;
5
 use Illuminate\Database\Eloquent\Factories\HasFactory;
6
 use Illuminate\Database\Eloquent\Model;
6
 use Illuminate\Database\Eloquent\Model;
7
 
7
 
8
-class Transaction extends Model
8
+class TransactionOut extends Model
9
 {
9
 {
10
     use HasFactory;
10
     use HasFactory;
11
 
11
 
12
     protected $fillable = [
12
     protected $fillable = [
13
-        'login_time',
14
-        'time_out',
15
-        'price',
16
         'plat_number',
13
         'plat_number',
17
-        'input_by',
18
-        'capture_vehicle',
14
+        'price',
15
+        'transaction_in_id',
19
         'type_vehicle_id',
16
         'type_vehicle_id',
20
         'user_id',
17
         'user_id',
21
-        'member_id',
22
     ];
18
     ];
23
 }
19
 }

+ 1
- 6
app/Models/TypeVehicle.php Parādīt failu

10
     use HasFactory;
10
     use HasFactory;
11
 
11
 
12
     protected $fillable = [
12
     protected $fillable = [
13
-        'name',
14
-        'phone',
15
-        'email',
16
-        'password',
17
-        'status',
18
-        'role_id',
13
+        'type',
19
     ];
14
     ];
20
 }
15
 }

+ 17
- 0
app/Models/Vehicle.php Parādīt failu

1
+<?php
2
+
3
+namespace App\Models;
4
+
5
+use Illuminate\Database\Eloquent\Factories\HasFactory;
6
+use Illuminate\Database\Eloquent\Model;
7
+
8
+class Vehicle extends Model
9
+{
10
+    use HasFactory;
11
+
12
+    protected $fillable = [
13
+        'plat_number',
14
+        'member_id',
15
+        'type_vehicle_id',
16
+    ];
17
+}

+ 3
- 3
designs/diagrams/database.puml Parādīt failu

102
 
102
 
103
 TransactionIn ||--|| TransactionOut
103
 TransactionIn ||--|| TransactionOut
104
 TransactionOut ||--|| Mutation
104
 TransactionOut ||--|| Mutation
105
-TransactionOut ||--|| Vehicle
105
+TransactionOut ||--|{ Vehicle
106
 TransactionOut ||--|{ TypeVehicle
106
 TransactionOut ||--|{ TypeVehicle
107
 TransactionOut ||--|{ User
107
 TransactionOut ||--|{ User
108
-TypeVehicle }|--|| ParkingFee
108
+TypeVehicle ||--|| ParkingFee
109
 Expense ||--|| Mutation
109
 Expense ||--|| Mutation
110
 TopUp ||--|| Mutation
110
 TopUp ||--|| Mutation
111
 User ||--|{ Role
111
 User ||--|{ Role
112
 User }|--|| TopUp
112
 User }|--|| TopUp
113
 User }|--|| Expense
113
 User }|--|| Expense
114
 Member }|--|| TopUp
114
 Member }|--|| TopUp
115
-Member }|--|| TypeMember
115
+Member ||--|| TypeMember
116
 Member }|--|| Vehicle
116
 Member }|--|| Vehicle

Binārs
designs/diagrams/database/Database.png Parādīt failu