diff --git a/lib/Migration/Version001Date20240515221000.php b/lib/Migration/Version001Date20240515221000.php new file mode 100644 index 0000000..5225593 --- /dev/null +++ b/lib/Migration/Version001Date20240515221000.php @@ -0,0 +1,56 @@ +hasTable(self::SUBSCRIPTIONS_TABLE)) { + $table = $schema->createTable(self::SUBSCRIPTIONS_TABLE); + + $table->addColumn('id', Types::INTEGER, [ + 'autoincrement' => true, + 'notnull' => true, + ]); + $table->addColumn('user_id', Types::STRING, [ + 'notnull' => true, + 'length' => 200, + ]); + $table->addColumn('collection_name', Types::STRING, [ + 'notnull' => true, + 'length' => 100, + ]); + $table->addColumn('data', Types::TEXT, [ + 'notnull' => true, + ]); + $table->addColumn('creation_timestamp', Types::BIGINT, [ + 'notnull' => true, + ]); + $table->addColumn('expiration_timestamp', Types::BIGINT, [ + 'notnull' => true, + ]); + + $table->setPrimaryKey(['id']); + } + + return $schema; + } +} \ No newline at end of file