[增添]添加了MetricResource的数据库以及页面元素

This commit is contained in:
makotocc0107
2024-08-27 11:01:22 +08:00
parent b1d638a2ed
commit 84e0393ebc
7 changed files with 269 additions and 4 deletions

View 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;
}