feat : auto coupon
This commit is contained in:
42
app/Model/UserCoupon.php
Normal file
42
app/Model/UserCoupon.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
use Hyperf\DbConnection\Model\Model;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property int $coupon_template_id
|
||||
* @property int $coupon_dispense_id
|
||||
* @property int $user_id
|
||||
* @property int $status
|
||||
* @property string $coupon_name
|
||||
* @property string $use_time
|
||||
* @property string $validity_start_time
|
||||
* @property string $validity_end_time
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
*/
|
||||
class UserCoupon extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'user_coupon';
|
||||
|
||||
/**
|
||||
* 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', 'coupon_template_id' => 'integer', 'coupon_dispense_id' => 'integer', 'user_id' => 'integer', 'status' => 'integer'];
|
||||
|
||||
const string CREATED_AT = 'created_time';
|
||||
const string UPDATED_AT = 'updated_time';
|
||||
}
|
||||
Reference in New Issue
Block a user