# fluent-cart/1.5.3/database/Migrations/AppliedCouponsMigrator.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.5.3. 26 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.5.3/code/database/Migrations/AppliedCouponsMigrator.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.5.3/raw/database/Migrations/AppliedCouponsMigrator.php
- Modified: 2026-03-04T14:04:34+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.5.3/code/database/Migrations/AppliedCouponsMigrator.php#L10-L20`.

```php
<?php

namespace FluentCart\Database\Migrations;


use FluentCart\Framework\Database\Schema;

class AppliedCouponsMigrator extends Migrator
{

	public static string $tableName = 'fct_applied_coupons';

	public static function getSqlSchema(): string
	{
        $indexPrefix = 'fct_acoup_';
		return "`id` BIGINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
            `order_id` BIGINT UNSIGNED NOT NULL,
            `coupon_id` BIGINT UNSIGNED NULL,
			`code` VARCHAR(100) NOT NULL ,
			`amount` double NOT NULL,
			`created_at` DATETIME NULL ,
			`updated_at` DATETIME NULL,
        	INDEX `{$indexPrefix}_code_idx` (`code`)";
	}
}

```
