Skip to content

Commit 686d449

Browse files
committed
Refresh PHPFUI models
1 parent c5bbd44 commit 686d449

31 files changed

+189
-148
lines changed

SOB/Cake/scaffolding/generateModels.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
include __DIR__ . '/../../../vendor/autoload.php';
44

5-
$schema = new \SOB\Schema();
5+
$schema = new \SOB\SchemaLoader();
66

77
echo "Generate Record Models\n\n";
88

SOB/CakeCached/scaffolding/generateModels.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
include __DIR__ . '/../../../vendor/autoload.php';
44

5-
$schema = new \SOB\Schema();
5+
$schema = new \SOB\SchemaLoader();
66

77
echo "Generate Record Models\n\n";
88

SOB/Doctrine/scaffolding/generateModels.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
include __DIR__ . '/../../../vendor/autoload.php';
44

5-
$schema = new \SOB\Schema();
5+
$schema = new \SOB\SchemaLoader();
66

77
echo "Generate Record Models\n\n";
88

SOB/Eloquent/scaffolding/generateModels.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
include __DIR__ . '/../../../vendor/autoload.php';
44

5-
$schema = new \SOB\Schema();
5+
$schema = new \SOB\SchemaLoader();
66

77
echo "Generate Record Models\n\n";
88

SOB/PHPFUI/Record/Definition/Customer.php

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @property ?string $company MySQL type varchar(50)
1313
* @property ?string $country_region MySQL type varchar(50)
1414
* @property int $customer_id MySQL type integer
15+
* @property \SOB\PHPFUI\Record\Customer $customer related record
1516
* @property ?string $email_address MySQL type varchar(50)
1617
* @property ?string $fax_number MySQL type varchar(25)
1718
* @property ?string $first_name MySQL type varchar(50)
@@ -31,24 +32,24 @@ abstract class Customer extends \PHPFUI\ORM\Record
3132
/** @var array<string, array<mixed>> */
3233
protected static array $fields = [
3334
// MYSQL_TYPE, PHP_TYPE, LENGTH, ALLOWS_NULL, DEFAULT
34-
'address' => ['longtext', 'string', 4294967295, true, null, ],
35-
'attachments' => ['longblob', 'string', 0, true, null, ],
36-
'business_phone' => ['varchar(25)', 'string', 25, true, null, ],
37-
'city' => ['varchar(50)', 'string', 50, true, null, ],
38-
'company' => ['varchar(50)', 'string', 50, true, null, ],
39-
'country_region' => ['varchar(50)', 'string', 50, true, null, ],
35+
'address' => ['longtext', 'string', 4294967295, true, NULL, ],
36+
'attachments' => ['longblob', 'string', 0, true, NULL, ],
37+
'business_phone' => ['varchar(25)', 'string', 25, true, NULL, ],
38+
'city' => ['varchar(50)', 'string', 50, true, NULL, ],
39+
'company' => ['varchar(50)', 'string', 50, true, NULL, ],
40+
'country_region' => ['varchar(50)', 'string', 50, true, NULL, ],
4041
'customer_id' => ['integer', 'int', 0, false, ],
41-
'email_address' => ['varchar(50)', 'string', 50, true, null, ],
42-
'fax_number' => ['varchar(25)', 'string', 25, true, null, ],
43-
'first_name' => ['varchar(50)', 'string', 50, true, null, ],
44-
'home_phone' => ['varchar(25)', 'string', 25, true, null, ],
45-
'job_title' => ['varchar(50)', 'string', 50, true, null, ],
46-
'last_name' => ['varchar(50)', 'string', 50, true, null, ],
47-
'mobile_phone' => ['varchar(25)', 'string', 25, true, null, ],
48-
'notes' => ['longtext', 'string', 4294967295, true, null, ],
49-
'state_province' => ['varchar(50)', 'string', 50, true, null, ],
50-
'web_page' => ['longtext', 'string', 4294967295, true, null, ],
51-
'zip_postal_code' => ['varchar(15)', 'string', 15, true, null, ],
42+
'email_address' => ['varchar(50)', 'string', 50, true, NULL, ],
43+
'fax_number' => ['varchar(25)', 'string', 25, true, NULL, ],
44+
'first_name' => ['varchar(50)', 'string', 50, true, NULL, ],
45+
'home_phone' => ['varchar(25)', 'string', 25, true, NULL, ],
46+
'job_title' => ['varchar(50)', 'string', 50, true, NULL, ],
47+
'last_name' => ['varchar(50)', 'string', 50, true, NULL, ],
48+
'mobile_phone' => ['varchar(25)', 'string', 25, true, NULL, ],
49+
'notes' => ['longtext', 'string', 4294967295, true, NULL, ],
50+
'state_province' => ['varchar(50)', 'string', 50, true, NULL, ],
51+
'web_page' => ['longtext', 'string', 4294967295, true, NULL, ],
52+
'zip_postal_code' => ['varchar(15)', 'string', 15, true, NULL, ],
5253
];
5354

5455
/** @var array<string> */

SOB/PHPFUI/Record/Definition/DateRecord.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ abstract class DateRecord extends \PHPFUI\ORM\Record
2121
protected static array $fields = [
2222
// MYSQL_TYPE, PHP_TYPE, LENGTH, ALLOWS_NULL, DEFAULT
2323
'dateDefaultNotNull' => ['date', 'string', 10, false, '2000-01-02', ],
24-
'dateDefaultNull' => ['date', 'string', 10, true, null, ],
24+
'dateDefaultNull' => ['date', 'string', 10, true, NULL, ],
2525
'dateDefaultNullable' => ['date', 'string', 10, true, '2000-01-02', ],
2626
'dateRecordId' => ['integer', 'int', 0, false, ],
2727
'dateRequired' => ['date', 'string', 10, false, ],
28-
'timestampDefaultCurrentNotNull' => ['timestamp', 'string', 20, false, null, ],
29-
'timestampDefaultCurrentNullable' => ['timestamp', 'string', 20, true, null, ],
28+
'timestampDefaultCurrentNotNull' => ['timestamp', 'string', 20, false, NULL, ],
29+
'timestampDefaultCurrentNullable' => ['timestamp', 'string', 20, true, NULL, ],
3030
];
3131

3232
/** @var array<string> */

SOB/PHPFUI/Record/Definition/Employee.php

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* @property ?string $country_region MySQL type varchar(50)
1414
* @property ?string $email_address MySQL type varchar(50)
1515
* @property int $employee_id MySQL type integer
16+
* @property \SOB\PHPFUI\Record\Employee $employee related record
1617
* @property ?string $fax_number MySQL type varchar(25)
1718
* @property ?string $first_name MySQL type varchar(50)
1819
* @property ?string $home_phone MySQL type varchar(25)
@@ -31,24 +32,24 @@ abstract class Employee extends \PHPFUI\ORM\Record
3132
/** @var array<string, array<mixed>> */
3233
protected static array $fields = [
3334
// MYSQL_TYPE, PHP_TYPE, LENGTH, ALLOWS_NULL, DEFAULT
34-
'address' => ['longtext', 'string', 4294967295, true, null, ],
35-
'attachments' => ['longblob', 'string', 0, true, null, ],
36-
'business_phone' => ['varchar(25)', 'string', 25, true, null, ],
37-
'city' => ['varchar(50)', 'string', 50, true, null, ],
38-
'company' => ['varchar(50)', 'string', 50, true, null, ],
39-
'country_region' => ['varchar(50)', 'string', 50, true, null, ],
40-
'email_address' => ['varchar(50)', 'string', 50, true, null, ],
35+
'address' => ['longtext', 'string', 4294967295, true, NULL, ],
36+
'attachments' => ['longblob', 'string', 0, true, NULL, ],
37+
'business_phone' => ['varchar(25)', 'string', 25, true, NULL, ],
38+
'city' => ['varchar(50)', 'string', 50, true, NULL, ],
39+
'company' => ['varchar(50)', 'string', 50, true, NULL, ],
40+
'country_region' => ['varchar(50)', 'string', 50, true, NULL, ],
41+
'email_address' => ['varchar(50)', 'string', 50, true, NULL, ],
4142
'employee_id' => ['integer', 'int', 0, false, ],
42-
'fax_number' => ['varchar(25)', 'string', 25, true, null, ],
43-
'first_name' => ['varchar(50)', 'string', 50, true, null, ],
44-
'home_phone' => ['varchar(25)', 'string', 25, true, null, ],
45-
'job_title' => ['varchar(50)', 'string', 50, true, null, ],
46-
'last_name' => ['varchar(50)', 'string', 50, true, null, ],
47-
'mobile_phone' => ['varchar(25)', 'string', 25, true, null, ],
48-
'notes' => ['longtext', 'string', 4294967295, true, null, ],
49-
'state_province' => ['varchar(50)', 'string', 50, true, null, ],
50-
'web_page' => ['longtext', 'string', 4294967295, true, null, ],
51-
'zip_postal_code' => ['varchar(15)', 'string', 15, true, null, ],
43+
'fax_number' => ['varchar(25)', 'string', 25, true, NULL, ],
44+
'first_name' => ['varchar(50)', 'string', 50, true, NULL, ],
45+
'home_phone' => ['varchar(25)', 'string', 25, true, NULL, ],
46+
'job_title' => ['varchar(50)', 'string', 50, true, NULL, ],
47+
'last_name' => ['varchar(50)', 'string', 50, true, NULL, ],
48+
'mobile_phone' => ['varchar(25)', 'string', 25, true, NULL, ],
49+
'notes' => ['longtext', 'string', 4294967295, true, NULL, ],
50+
'state_province' => ['varchar(50)', 'string', 50, true, NULL, ],
51+
'web_page' => ['longtext', 'string', 4294967295, true, NULL, ],
52+
'zip_postal_code' => ['varchar(15)', 'string', 15, true, NULL, ],
5253
];
5354

5455
/** @var array<string> */

SOB/PHPFUI/Record/Definition/EmployeePrivilege.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Autogenerated. Do not modify. Modify SQL table, then generate with \PHPFUI\ORM\Tool\Generate\CRUD class.
77
*
88
* @property int $employee_id MySQL type integer
9+
* @property \SOB\PHPFUI\Record\Employee $employee related record
910
* @property int $privilege_id MySQL type integer
1011
* @property \SOB\PHPFUI\Record\Privilege $privilege related record
1112
*/

SOB/PHPFUI/Record/Definition/Image.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Autogenerated. Do not modify. Modify SQL table, then generate with \PHPFUI\ORM\Tool\Generate\CRUD class.
77
*
88
* @property int $image_id MySQL type integer
9+
* @property \SOB\PHPFUI\Record\Image $image related record
910
* @property ?int $imageable_id MySQL type integer
1011
* @property ?string $imageable_type MySQL type varchar(128)
1112
* @property string $path MySQL type varchar(128)

SOB/PHPFUI/Record/Definition/InventoryTransaction.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@
77
*
88
* @property ?string $comments MySQL type varchar(255)
99
* @property int $inventory_transaction_id MySQL type integer
10+
* @property \SOB\PHPFUI\Record\InventoryTransaction $inventory_transaction related record
1011
* @property int $inventory_transaction_type_id MySQL type integer
12+
* @property \SOB\PHPFUI\Record\InventoryTransactionType $inventory_transaction_type related record
1113
* @property ?int $order_id MySQL type integer
14+
* @property \SOB\PHPFUI\Record\Order $order related record
1215
* @property int $product_id MySQL type integer
16+
* @property \SOB\PHPFUI\Record\Product $product related record
1317
* @property ?int $purchase_order_id MySQL type integer
18+
* @property \SOB\PHPFUI\Record\PurchaseOrder $purchase_order related record
1419
* @property int $quantity MySQL type integer
1520
* @property string $transaction_created_date MySQL type datetime
1621
* @property string $transaction_modified_date MySQL type datetime
@@ -22,15 +27,15 @@ abstract class InventoryTransaction extends \PHPFUI\ORM\Record
2227
/** @var array<string, array<mixed>> */
2328
protected static array $fields = [
2429
// MYSQL_TYPE, PHP_TYPE, LENGTH, ALLOWS_NULL, DEFAULT
25-
'comments' => ['varchar(255)', 'string', 255, true, null, ],
30+
'comments' => ['varchar(255)', 'string', 255, true, NULL, ],
2631
'inventory_transaction_id' => ['integer', 'int', 0, false, ],
2732
'inventory_transaction_type_id' => ['integer', 'int', 0, false, ],
28-
'order_id' => ['integer', 'int', 0, true, null, ],
33+
'order_id' => ['integer', 'int', 0, true, NULL, ],
2934
'product_id' => ['integer', 'int', 0, false, ],
30-
'purchase_order_id' => ['integer', 'int', 0, true, null, ],
35+
'purchase_order_id' => ['integer', 'int', 0, true, NULL, ],
3136
'quantity' => ['integer', 'int', 0, false, ],
32-
'transaction_created_date' => ['datetime', 'string', 20, false, null, ],
33-
'transaction_modified_date' => ['datetime', 'string', 20, false, null, ],
37+
'transaction_created_date' => ['datetime', 'string', 20, false, NULL, ],
38+
'transaction_modified_date' => ['datetime', 'string', 20, false, NULL, ],
3439
];
3540

3641
/** @var array<string> */

SOB/PHPFUI/Record/Definition/InventoryTransactionType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Autogenerated. Do not modify. Modify SQL table, then generate with \PHPFUI\ORM\Tool\Generate\CRUD class.
77
*
88
* @property int $inventory_transaction_type_id MySQL type integer
9+
* @property \SOB\PHPFUI\Record\InventoryTransactionType $inventory_transaction_type related record
910
* @property string $inventory_transaction_type_name MySQL type varchar(50)
1011
*/
1112
abstract class InventoryTransactionType extends \PHPFUI\ORM\Record

SOB/PHPFUI/Record/Definition/Invoice.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
* @property ?string $due_date MySQL type datetime
1010
* @property string $invoice_date MySQL type datetime
1111
* @property int $invoice_id MySQL type integer
12+
* @property \SOB\PHPFUI\Record\Invoice $invoice related record
1213
* @property ?int $order_id MySQL type integer
14+
* @property \SOB\PHPFUI\Record\Order $order related record
1315
* @property ?float $shipping MySQL type decimal(19,4)
1416
* @property ?float $tax MySQL type decimal(19,4)
1517
*/
@@ -20,13 +22,13 @@ abstract class Invoice extends \PHPFUI\ORM\Record
2022
/** @var array<string, array<mixed>> */
2123
protected static array $fields = [
2224
// MYSQL_TYPE, PHP_TYPE, LENGTH, ALLOWS_NULL, DEFAULT
23-
'amount_due' => ['decimal(19,4)', 'float', 19, true, 0, ],
24-
'due_date' => ['datetime', 'string', 20, true, null, ],
25-
'invoice_date' => ['datetime', 'string', 20, false, null, ],
25+
'amount_due' => ['decimal(19,4)', 'float', 19, true, 0.0000, ],
26+
'due_date' => ['datetime', 'string', 20, true, NULL, ],
27+
'invoice_date' => ['datetime', 'string', 20, false, NULL, ],
2628
'invoice_id' => ['integer', 'int', 0, false, ],
27-
'order_id' => ['integer', 'int', 0, true, null, ],
28-
'shipping' => ['decimal(19,4)', 'float', 19, true, 0, ],
29-
'tax' => ['decimal(19,4)', 'float', 19, true, 0, ],
29+
'order_id' => ['integer', 'int', 0, true, NULL, ],
30+
'shipping' => ['decimal(19,4)', 'float', 19, true, 0.0000, ],
31+
'tax' => ['decimal(19,4)', 'float', 19, true, 0.0000, ],
3032
];
3133

3234
/** @var array<string> */

SOB/PHPFUI/Record/Definition/Migration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ abstract class Migration extends \PHPFUI\ORM\Record
1616
protected static array $fields = [
1717
// MYSQL_TYPE, PHP_TYPE, LENGTH, ALLOWS_NULL, DEFAULT
1818
'migrationId' => ['int', 'int', 0, false, ],
19-
'ran' => ['timestamp', 'string', 20, true, null, ],
19+
'ran' => ['timestamp', 'string', 20, true, NULL, ],
2020
];
2121

2222
/** @var array<string> */

SOB/PHPFUI/Record/Definition/Order.php

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@
66
* Autogenerated. Do not modify. Modify SQL table, then generate with \PHPFUI\ORM\Tool\Generate\CRUD class.
77
*
88
* @property ?int $customer_id MySQL type integer
9+
* @property \SOB\PHPFUI\Record\Customer $customer related record
910
* @property ?int $employee_id MySQL type integer
11+
* @property \SOB\PHPFUI\Record\Employee $employee related record
1012
* @property ?string $notes MySQL type longtext
1113
* @property string $order_date MySQL type datetime
1214
* @property int $order_id MySQL type integer
15+
* @property \SOB\PHPFUI\Record\Order $order related record
1316
* @property ?int $order_status_id MySQL type integer
17+
* @property \SOB\PHPFUI\Record\OrderStatus $order_status related record
1418
* @property ?int $order_tax_status_id MySQL type integer
19+
* @property \SOB\PHPFUI\Record\OrderTaxStatus $order_tax_status related record
1520
* @property ?string $paid_date MySQL type datetime
1621
* @property ?string $payment_type MySQL type varchar(50)
1722
* @property ?string $ship_address MySQL type longtext
@@ -22,6 +27,7 @@
2227
* @property ?string $ship_zip_postal_code MySQL type varchar(50)
2328
* @property ?string $shipped_date MySQL type datetime
2429
* @property ?int $shipper_id MySQL type integer
30+
* @property \SOB\PHPFUI\Record\Shipper $shipper related record
2531
* @property ?float $shipping_fee MySQL type decimal(19,4)
2632
* @property ?float $tax_rate MySQL type double
2733
* @property ?float $taxes MySQL type decimal(19,4)
@@ -33,26 +39,26 @@ abstract class Order extends \PHPFUI\ORM\Record
3339
/** @var array<string, array<mixed>> */
3440
protected static array $fields = [
3541
// MYSQL_TYPE, PHP_TYPE, LENGTH, ALLOWS_NULL, DEFAULT
36-
'customer_id' => ['integer', 'int', 0, true, null, ],
37-
'employee_id' => ['integer', 'int', 0, true, null, ],
38-
'notes' => ['longtext', 'string', 4294967295, true, null, ],
39-
'order_date' => ['datetime', 'string', 20, false, null, ],
42+
'customer_id' => ['integer', 'int', 0, true, NULL, ],
43+
'employee_id' => ['integer', 'int', 0, true, NULL, ],
44+
'notes' => ['longtext', 'string', 4294967295, true, NULL, ],
45+
'order_date' => ['datetime', 'string', 20, false, NULL, ],
4046
'order_id' => ['integer', 'int', 0, false, ],
4147
'order_status_id' => ['integer', 'int', 0, true, 0, ],
42-
'order_tax_status_id' => ['integer', 'int', 0, true, null, ],
43-
'paid_date' => ['datetime', 'string', 20, true, null, ],
44-
'payment_type' => ['varchar(50)', 'string', 50, true, null, ],
45-
'ship_address' => ['longtext', 'string', 4294967295, true, null, ],
46-
'ship_city' => ['varchar(50)', 'string', 50, true, null, ],
47-
'ship_country_region' => ['varchar(50)', 'string', 50, true, null, ],
48-
'ship_name' => ['varchar(50)', 'string', 50, true, null, ],
49-
'ship_state_province' => ['varchar(50)', 'string', 50, true, null, ],
50-
'ship_zip_postal_code' => ['varchar(50)', 'string', 50, true, null, ],
51-
'shipped_date' => ['datetime', 'string', 20, true, null, ],
52-
'shipper_id' => ['integer', 'int', 0, true, null, ],
53-
'shipping_fee' => ['decimal(19,4)', 'float', 19, true, 0, ],
48+
'order_tax_status_id' => ['integer', 'int', 0, true, NULL, ],
49+
'paid_date' => ['datetime', 'string', 20, true, NULL, ],
50+
'payment_type' => ['varchar(50)', 'string', 50, true, NULL, ],
51+
'ship_address' => ['longtext', 'string', 4294967295, true, NULL, ],
52+
'ship_city' => ['varchar(50)', 'string', 50, true, NULL, ],
53+
'ship_country_region' => ['varchar(50)', 'string', 50, true, NULL, ],
54+
'ship_name' => ['varchar(50)', 'string', 50, true, NULL, ],
55+
'ship_state_province' => ['varchar(50)', 'string', 50, true, NULL, ],
56+
'ship_zip_postal_code' => ['varchar(50)', 'string', 50, true, NULL, ],
57+
'shipped_date' => ['datetime', 'string', 20, true, NULL, ],
58+
'shipper_id' => ['integer', 'int', 0, true, NULL, ],
59+
'shipping_fee' => ['decimal(19,4)', 'float', 19, true, 0.0000, ],
5460
'tax_rate' => ['double', 'float', 0, true, 0, ],
55-
'taxes' => ['decimal(19,4)', 'float', 19, true, 0, ],
61+
'taxes' => ['decimal(19,4)', 'float', 19, true, 0.0000, ],
5662
];
5763

5864
/** @var array<string> */

SOB/PHPFUI/Record/Definition/OrderDetail.php

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,17 @@
88
* @property ?string $date_allocated MySQL type datetime
99
* @property float $discount MySQL type double
1010
* @property ?int $inventory_transaction_id MySQL type integer
11+
* @property \SOB\PHPFUI\Record\InventoryTransaction $inventory_transaction related record
1112
* @property int $order_detail_id MySQL type integer
13+
* @property \SOB\PHPFUI\Record\OrderDetail $order_detail related record
1214
* @property ?int $order_detail_status_id MySQL type integer
15+
* @property \SOB\PHPFUI\Record\OrderDetailStatus $order_detail_status related record
1316
* @property int $order_id MySQL type integer
17+
* @property \SOB\PHPFUI\Record\Order $order related record
1418
* @property ?int $product_id MySQL type integer
19+
* @property \SOB\PHPFUI\Record\Product $product related record
1520
* @property ?int $purchase_order_id MySQL type integer
21+
* @property \SOB\PHPFUI\Record\PurchaseOrder $purchase_order related record
1622
* @property float $quantity MySQL type decimal(18,4)
1723
* @property ?float $unit_price MySQL type decimal(19,4)
1824
*/
@@ -23,16 +29,16 @@ abstract class OrderDetail extends \PHPFUI\ORM\Record
2329
/** @var array<string, array<mixed>> */
2430
protected static array $fields = [
2531
// MYSQL_TYPE, PHP_TYPE, LENGTH, ALLOWS_NULL, DEFAULT
26-
'date_allocated' => ['datetime', 'string', 20, true, null, ],
32+
'date_allocated' => ['datetime', 'string', 20, true, NULL, ],
2733
'discount' => ['double', 'float', 0, false, 0, ],
28-
'inventory_transaction_id' => ['integer', 'int', 0, true, null, ],
34+
'inventory_transaction_id' => ['integer', 'int', 0, true, NULL, ],
2935
'order_detail_id' => ['integer', 'int', 0, false, ],
30-
'order_detail_status_id' => ['integer', 'int', 0, true, null, ],
36+
'order_detail_status_id' => ['integer', 'int', 0, true, NULL, ],
3137
'order_id' => ['integer', 'int', 0, false, ],
32-
'product_id' => ['integer', 'int', 0, true, null, ],
33-
'purchase_order_id' => ['integer', 'int', 0, true, null, ],
34-
'quantity' => ['decimal(18,4)', 'float', 18, false, 0, ],
35-
'unit_price' => ['decimal(19,4)', 'float', 19, true, 0, ],
38+
'product_id' => ['integer', 'int', 0, true, NULL, ],
39+
'purchase_order_id' => ['integer', 'int', 0, true, NULL, ],
40+
'quantity' => ['decimal(18,4)', 'float', 18, false, 0.0000, ],
41+
'unit_price' => ['decimal(19,4)', 'float', 19, true, 0.0000, ],
3642
];
3743

3844
/** @var array<string> */

SOB/PHPFUI/Record/Definition/OrderDetailStatus.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Autogenerated. Do not modify. Modify SQL table, then generate with \PHPFUI\ORM\Tool\Generate\CRUD class.
77
*
88
* @property int $order_detail_status_id MySQL type integer
9+
* @property \SOB\PHPFUI\Record\OrderDetailStatus $order_detail_status related record
910
* @property string $order_detail_status_name MySQL type varchar(50)
1011
*/
1112
abstract class OrderDetailStatus extends \PHPFUI\ORM\Record

SOB/PHPFUI/Record/Definition/OrderStatus.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Autogenerated. Do not modify. Modify SQL table, then generate with \PHPFUI\ORM\Tool\Generate\CRUD class.
77
*
88
* @property int $order_status_id MySQL type integer
9+
* @property \SOB\PHPFUI\Record\OrderStatus $order_status related record
910
* @property string $order_status_name MySQL type varchar(50)
1011
*/
1112
abstract class OrderStatus extends \PHPFUI\ORM\Record

SOB/PHPFUI/Record/Definition/OrderTaxStatus.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Autogenerated. Do not modify. Modify SQL table, then generate with \PHPFUI\ORM\Tool\Generate\CRUD class.
77
*
88
* @property int $order_tax_status_id MySQL type integer
9+
* @property \SOB\PHPFUI\Record\OrderTaxStatus $order_tax_status related record
910
* @property string $order_tax_status_name MySQL type varchar(50)
1011
*/
1112
abstract class OrderTaxStatus extends \PHPFUI\ORM\Record

0 commit comments

Comments
 (0)