Initial commit

This commit is contained in:
Joey Kimsey
2024-08-04 21:15:59 -04:00
parent c9d1fb983f
commit 0d469501ee
695 changed files with 70184 additions and 71 deletions

View File

@ -0,0 +1,36 @@
<?php
/**
* app/plugins/blog/models/blog.php
*
* This class is used for the manipulation of the blog database table.
*
* @package TP Blog
* @version 3.0
* @author Joey Kimsey <Joey@thetempusproject.com>
* @link https://TheTempusProject.com
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
*/
namespace TheTempusProject\Models;
use TheTempusProject\Canary\Canary as Debug;
use TheTempusProject\Bedrock\Functions\Check;
use TheTempusProject\Bedrock\Functions\Sanitize;
use TheTempusProject\Classes\DatabaseModel;
use TheTempusProject\TheTempusProject as App;
class Members extends DatabaseModel {
public $tableName = 'memberships';
public $databaseMatrix = [
[ 'name', 'string', '155' ],
// renews?
// does this renew periodically?
// renewal period?
// if periodic, how frequent?
// renewal type?
// automatic, manual review, paid
];
public function __construct() {
parent::__construct();
}
}

View File

@ -0,0 +1,33 @@
<?php
/**
* app/plugins/members/models/membershipAssociations.php
*
* This class is used for the manipulation of the membership associations database table.
*
* @package TP Members
* @version 3.0
* @author Joey Kimsey <Joey@thetempusproject.com>
* @link https://TheTempusProject.com
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
*/
namespace TheTempusProject\Models;
use TheTempusProject\Canary\Canary as Debug;
use TheTempusProject\Bedrock\Functions\Check;
use TheTempusProject\Bedrock\Functions\Sanitize;
use TheTempusProject\Classes\DatabaseModel;
use TheTempusProject\TheTempusProject as App;
class MembershipAssociations extends DatabaseModel {
public $tableName = 'membership_associations';
public $databaseMatrix = [
[ 'model_type', 'string', '' ],
[ 'model_id', 'int', '10' ],
[ 'membership_id', 'int', '10' ],
];
public function __construct() {
parent::__construct();
}
}

View File

@ -0,0 +1,32 @@
<?php
/**
* app/plugins/members/models/members.php
*
* This class is used for the manipulation of the members database table.
*
* @package TP Members
* @version 3.0
* @author Joey Kimsey <Joey@thetempusproject.com>
* @link https://TheTempusProject.com
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
*/
namespace TheTempusProject\Models;
use TheTempusProject\Canary\Canary as Debug;
use TheTempusProject\Bedrock\Functions\Check;
use TheTempusProject\Bedrock\Functions\Sanitize;
use TheTempusProject\Classes\DatabaseModel;
use TheTempusProject\TheTempusProject as App;
class MembershipRecords extends DatabaseModel {
public $tableName = 'membership_records';
public $databaseMatrix = [
[ 'membership_id', 'int', '10' ],
[ 'recorded_at', 'int', '10' ],
[ 'record_type', 'string', '' ],
];
public function __construct() {
parent::__construct();
}
}