更新
This commit is contained in:
parent
23208e3eac
commit
8361f6b9ae
@ -1,27 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace app\model;
|
|
||||||
|
|
||||||
use think\Model;
|
|
||||||
|
|
||||||
class MetaAd extends Model
|
|
||||||
{
|
|
||||||
// 数据表名称
|
|
||||||
protected $table = 'ad_meta_ads';
|
|
||||||
|
|
||||||
// 主键字段
|
|
||||||
protected $pk = 'id';
|
|
||||||
|
|
||||||
// 定义时间戳字段
|
|
||||||
protected $createTime = 'created_at';
|
|
||||||
protected $updateTime = 'updated_at';
|
|
||||||
|
|
||||||
// 不自动写入更新时间字段
|
|
||||||
protected $autoWriteTimestamp = true;
|
|
||||||
|
|
||||||
// 关联广告组
|
|
||||||
public function adGroup()
|
|
||||||
{
|
|
||||||
return $this->belongsTo('MetaAdGroup', 'ad_group_id');
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace app\model;
|
|
||||||
|
|
||||||
use think\Model;
|
|
||||||
|
|
||||||
class MetaAdGroup extends Model
|
|
||||||
{
|
|
||||||
// 数据表名称
|
|
||||||
protected $table = 'ad_meta_ad_groups';
|
|
||||||
|
|
||||||
// 主键字段
|
|
||||||
protected $pk = 'id';
|
|
||||||
|
|
||||||
// 定义时间戳字段
|
|
||||||
protected $createTime = 'created_at';
|
|
||||||
protected $updateTime = 'updated_at';
|
|
||||||
|
|
||||||
// 不自动写入更新时间字段
|
|
||||||
protected $autoWriteTimestamp = true;
|
|
||||||
|
|
||||||
// 关联广告系列
|
|
||||||
public function campaign()
|
|
||||||
{
|
|
||||||
return $this->belongsTo('MetaCampaign', 'campaign_id');
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,21 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace app\model;
|
|
||||||
|
|
||||||
use think\Model;
|
|
||||||
|
|
||||||
class MetaBusinessAccount extends Model
|
|
||||||
{
|
|
||||||
// 数据表名称
|
|
||||||
protected $table = 'ad_meta_business_accounts';
|
|
||||||
|
|
||||||
// 主键字段
|
|
||||||
protected $pk = 'id';
|
|
||||||
|
|
||||||
// 定义时间戳字段
|
|
||||||
protected $createTime = 'created_at';
|
|
||||||
protected $updateTime = 'updated_at';
|
|
||||||
|
|
||||||
// 不自动写入更新时间字段
|
|
||||||
protected $autoWriteTimestamp = true;
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace app\model;
|
|
||||||
|
|
||||||
use think\Model;
|
|
||||||
|
|
||||||
class MetaCampaign extends Model
|
|
||||||
{
|
|
||||||
// 数据表名称
|
|
||||||
protected $table = 'ad_meta_campaigns';
|
|
||||||
|
|
||||||
// 主键字段
|
|
||||||
protected $pk = 'id';
|
|
||||||
|
|
||||||
// 定义时间戳字段
|
|
||||||
protected $createTime = 'created_at';
|
|
||||||
protected $updateTime = 'updated_at';
|
|
||||||
|
|
||||||
// 不自动写入更新时间字段
|
|
||||||
protected $autoWriteTimestamp = true;
|
|
||||||
|
|
||||||
// 关联广告账户
|
|
||||||
public function businessAccount()
|
|
||||||
{
|
|
||||||
return $this->belongsTo('MetaBusinessAccount', 'business_account_id');
|
|
||||||
}
|
|
||||||
}
|
|
12
composer.lock
generated
12
composer.lock
generated
@ -3711,16 +3711,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "topthink/think-orm",
|
"name": "topthink/think-orm",
|
||||||
"version": "v3.0.32",
|
"version": "v3.0.33",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/top-think/think-orm.git",
|
"url": "https://github.com/top-think/think-orm.git",
|
||||||
"reference": "8d305da35664a64e4ab2a7faaaf6ed301c482651"
|
"reference": "6e0ea679f7448ff9c8906606462505597681e22e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/top-think/think-orm/zipball/8d305da35664a64e4ab2a7faaaf6ed301c482651",
|
"url": "https://api.github.com/repos/top-think/think-orm/zipball/6e0ea679f7448ff9c8906606462505597681e22e",
|
||||||
"reference": "8d305da35664a64e4ab2a7faaaf6ed301c482651",
|
"reference": "6e0ea679f7448ff9c8906606462505597681e22e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -3763,9 +3763,9 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/top-think/think-orm/issues",
|
"issues": "https://github.com/top-think/think-orm/issues",
|
||||||
"source": "https://github.com/top-think/think-orm/tree/v3.0.32"
|
"source": "https://github.com/top-think/think-orm/tree/v3.0.33"
|
||||||
},
|
},
|
||||||
"time": "2024-12-18T01:30:21+00:00"
|
"time": "2024-12-19T01:52:44+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "vlucas/phpdotenv",
|
"name": "vlucas/phpdotenv",
|
||||||
|
@ -9,13 +9,13 @@ return [
|
|||||||
// 服务器地址
|
// 服务器地址
|
||||||
'hostname' => '127.0.0.1',
|
'hostname' => '127.0.0.1',
|
||||||
// 数据库名
|
// 数据库名
|
||||||
'database' => 'test',
|
'database' => 'adlibs',
|
||||||
// 数据库用户名
|
// 数据库用户名
|
||||||
'username' => 'root',
|
'username' => 'root',
|
||||||
// 数据库密码
|
// 数据库密码
|
||||||
'password' => '123456',
|
'password' => 'hope8848',
|
||||||
// 数据库连接端口
|
// 数据库连接端口
|
||||||
'hostport' => '3306',
|
'hostport' => '3309',
|
||||||
// 数据库连接参数
|
// 数据库连接参数
|
||||||
'params' => [
|
'params' => [
|
||||||
// 连接超时3秒
|
// 连接超时3秒
|
||||||
@ -57,7 +57,8 @@ return [
|
|||||||
// 自定义分页类
|
// 自定义分页类
|
||||||
'bootstrap' => '',
|
'bootstrap' => '',
|
||||||
// 'schema' => 'public'// 设置默认 schema
|
// 'schema' => 'public'// 设置默认 schema
|
||||||
'debug' => true,
|
'debug' => false,
|
||||||
|
// 'fields_strict' => false,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user