# fluent-cart/1.6.4/database/Migrations/LabelRelationshipsMigrator.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.4. 28 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/database/Migrations/LabelRelationshipsMigrator.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/database/Migrations/LabelRelationshipsMigrator.php
- Modified: 2025-11-20T13:11:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/database/Migrations/LabelRelationshipsMigrator.php#L10-L20`.

```php
<?php

namespace FluentCart\Database\Migrations;


use FluentCart\Framework\Database\Schema;

class LabelRelationshipsMigrator extends Migrator
{

    public static string $tableName = 'fct_label_relationships';


    public static function getSqlSchema(): string
    {
        $indexPrefix = static::getDbPrefix() . 'fct_labr_';
        return "`id` BIGINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
                `label_id` BIGINT(20) NOT NULL,
                `labelable_id` BIGINT(20) NOT NULL,
                `labelable_type` VARCHAR(192) NOT NULL,
                `created_at` DATETIME NULL,
                `updated_at` DATETIME NULL,

                INDEX `{$indexPrefix}_label_id_idx` (`label_id` ASC),
                INDEX `{$indexPrefix}_labelable_id_idx` (`labelable_id` ASC)";
    }
}

```
