Files
roi-theme/wp-content/plugins/wp-marketing-automations/includes/db/tables/class-bwfan-db-table-links.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

59 lines
1.4 KiB
PHP
Executable File

<?php
/**
* bwfan_links table class
*
*/
if ( ! class_exists( 'BWFAN_DB_Table_Links' ) ) {
class BWFAN_DB_Table_Links extends BWFAN_DB_Tables_Base {
public $table_name = 'bwfan_links';
/**
* Get table's columns
*
* @return string[]
*/
public function get_columns() {
return [
"ID",
"url",
"l_hash",
"created_at",
"clean_url",
"oid",
"sid",
"tid",
"type"
];
}
/**
* Get query for create table
*
* @return string
*/
public function get_create_table_query() {
global $wpdb;
$collate = $this->get_collation();
return "CREATE TABLE {$wpdb->prefix}$this->table_name (
`ID` int(12) unsigned NOT NULL auto_increment,
`url` text NOT NULL,
`l_hash` varchar(40) NOT NULL,
`clean_url` varchar(190) NOT NULL,
`created_at` datetime NOT NULL,
`oid` bigint(20) UNSIGNED NOT NULL default 0 COMMENT 'Object ID',
`sid` int(12) UNSIGNED NOT NULL default 0 COMMENT 'Step ID',
`tid` int(12) UNSIGNED NOT NULL default 0 COMMENT 'Template ID',
`type` tinyint(1) UNSIGNED NOT NULL default 1 COMMENT '1 - Automation | 2 - Broadcast | 3 - Note | 4 - Email | 5 - SMS | 6 - Form | 9 - Transactional',
PRIMARY KEY (`ID`),
UNIQUE KEY `l_hash` (`l_hash`),
KEY `clean_url` (`clean_url`),
KEY `oid` (`oid`),
KEY `sid` (`sid`),
KEY `tid` (`tid`),
KEY `type` (`type`)
) $collate;";
}
}
}