流水线节点管理和模板管理

This commit is contained in:
2024-05-07 14:08:46 +08:00
parent 5a61933857
commit 8ae91ff558
48 changed files with 1348 additions and 9 deletions

View File

@@ -0,0 +1,10 @@
class CreateActionNodeTypes < ActiveRecord::Migration[5.2]
def change
create_table :action_node_types do |t|
t.string :name
t.string :description
t.integer :sort_no, default: 0
t.timestamps
end
end
end

View File

@@ -0,0 +1,18 @@
class CreateActionNodes < ActiveRecord::Migration[5.2]
def change
create_table :action_nodes do |t|
t.string :name
t.string :full_name
t.string :description
t.string :icon
t.references :action_node_types
t.boolean :is_local, default: false
t.string :local_url
t.text :yaml
t.integer :sort_no, default: 0
t.integer :use_count, default: 0
t.references :user
t.timestamps
end
end
end

View File

@@ -0,0 +1,17 @@
class CreateActionNodeSelects < ActiveRecord::Migration[5.2]
def change
create_table :action_node_selects do |t|
t.references :action_nodes
t.string :name
t.string :val
t.string :val_ext
t.string :description
t.string :download_url
t.integer :sort_no, default: 0
t.integer :use_count, default: 0
t.references :user
t.timestamps
t.index :name
end
end
end

View File

@@ -0,0 +1,14 @@
class CreateActionNodeInputs < ActiveRecord::Migration[5.2]
def change
create_table :action_node_inputs do |t|
t.references :action_nodes
t.string :name
t.string :input_type
t.string :description
t.boolean :is_required, default: false
t.string :sort_no, default: 0
t.references :user
t.timestamps
end
end
end

View File

@@ -0,0 +1,13 @@
class CreateActionTemplates < ActiveRecord::Migration[5.2]
def change
create_table :action_templates do |t|
t.string :name
t.string :description
t.string :img
t.string :sort_no, default: 0
t.text :json
t.text :yaml
t.timestamps
end
end
end