-{"name":"cubist\/cms-back","description":"cms-back cubist composer package","type":"library","license":"proprietary","minimum-stability":"dev","autoload":{"psr-0":{"Cubist\\Cms-back":"src\/"}},"authors":[{"name":"Vincent Vanwaelscappel","email":"vincent@cubedesigners.com"}],"require":{"php":">=5.4.0"},"repositories":[{"type":"composer","url":"https:\/\/composer.cubedesigners.com\/"}]}
\ No newline at end of file
+{
+ "name": "cubist\/cms-back",
+ "description": "Cubist Backpack extension",
+ "type": "library",
+ "license": "proprietary",
+ "minimum-stability": "dev",
+ "autoload": {
+ "psr-0": {
+ "Cubist\\Backpack\\": "src"
+ }
+ },
+ "authors": [
+ {
+ "name": "Vincent Vanwaelscappel",
+ "email": "vincent@cubedesigners.com"
+ }
+ ],
+ "require": {
+ "php": "^7.1.3",
+ "backpack/backupmanager": "^1.4",
+ "backpack/crud": "^3.5",
+ "backpack/logmanager": "^2.3",
+ "backpack/menucrud": "^1.0",
+ "backpack/newscrud": "^2.1",
+ "backpack/pagemanager": "^1.1",
+ "backpack/permissionmanager": "^4.0",
+ "backpack/settings": "^2.1"
+ },
+ "require-dev": {
+ "backpack/generators": "^1.2"
+ },
+ "repositories": [
+ {
+ "type": "composer",
+ "url": "https:\/\/composer.cubedesigners.com\/"
+ }
+ ]
+}
\ No newline at end of file
--- /dev/null
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+
+class CreateTemplateTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('cubist_templates', function (Blueprint $table) {
+ $table->increments('id');
+ $table->string('key')->unique();
+ $table->string('name');
+ $table->string('description')->nullable();
+ $table->string('parent')->nullable();
+ $table->json('tabs')->default('[]');
+ $table->json('fields')->default('[]');
+ $table->tinyInteger('active');
+ $table->timestamps();
+ });
+
+ Schema::create('cubist_subforms', function (Blueprint $table) {
+ $table->increments('id');
+ $table->string('key')->unique();
+ $table->string('name');
+ $table->string('description')->nullable();
+ $table->string('parent')->nullable();
+ $table->json('fields')->default('[]');
+ $table->tinyInteger('active');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::drop('cubist_templates');
+ Schema::drop('cubist_subforms');
+ }
+}