| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- declare(strict_types=1);
- namespace SixShop\Eav\Model;
- use think\Model;
- use think\model\concern\SoftDelete;
- use think\model\relation\BelongsTo;
- /**
- * Class SixShop\Eav\Model\EavValueModel
- *
- * @property float $value_decimal 数值值
- * @property int $attribute_id 属性ID
- * @property int $entity_id 实体ID
- * @property int $id
- * @property int $value_int 整数值
- * @property string $create_time
- * @property string $delete_time
- * @property string $update_time
- * @property string $value_datetime 日期时间值
- * @property string $value_text 文本值
- * @property string $value_varchar 字符串值
- * @method static \think\db\Query onlyTrashed()
- * @method static \think\db\Query withTrashed()
- */
- class EavValueModel extends Model
- {
- use SoftDelete;
- protected function getOptions(): array
- {
- return [
- 'name' => 'extension_eav_value'
- ];
- }
- public function attribute(): BelongsTo
- {
- return $this->belongsTo(EavAttributeModel::class, 'attribute_id', 'id');
- }
- }
|