feat: place Order
This commit is contained in:
45
app/Model/OrderGood.php
Normal file
45
app/Model/OrderGood.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
use Hyperf\DbConnection\Model\Model;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property int $order_id
|
||||
* @property int $cycle_id
|
||||
* @property int $sku_id
|
||||
* @property int $spu_id
|
||||
* @property int $user_id
|
||||
* @property int $quantity
|
||||
* @property string $unit_price
|
||||
* @property int $is_comment
|
||||
* @property int $copies
|
||||
* @property int $type
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
*/
|
||||
class OrderGood extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'order_goods';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
protected array $guarded = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['id' => 'integer', 'order_id' => 'integer', 'cycle_id' => 'integer', 'sku_id' => 'integer', 'spu_id' => 'integer', 'user_id' => 'integer', 'quantity' => 'integer', 'is_comment' => 'integer', 'copies' => 'integer', 'type' => 'integer'];
|
||||
|
||||
const string CREATED_AT = 'create_time';
|
||||
|
||||
const string UPDATED_AT = 'update_time';
|
||||
}
|
||||
Reference in New Issue
Block a user