[增添]添加了MetricResource的数据库以及页面元素
This commit is contained in:
24
management-panel/app/Models/Metric.php
Normal file
24
management-panel/app/Models/Metric.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Metric extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $fillable=[
|
||||
"name",
|
||||
"namespace_index",
|
||||
"identifier_type",
|
||||
"numeric_id",
|
||||
"string_id",
|
||||
"guid_id",
|
||||
"help"
|
||||
];
|
||||
|
||||
const TYPE_NUMERIC = 1;
|
||||
const TYPE_STRING = 2;
|
||||
const TYPE_GUID = 3;
|
||||
}
|
||||
Reference in New Issue
Block a user