mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
流水线节点管理和模板管理
This commit is contained in:
10
db/migrate/20240408010101_create_action_node_types.rb
Normal file
10
db/migrate/20240408010101_create_action_node_types.rb
Normal 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
|
||||
18
db/migrate/20240408010102_create_action_nodes.rb
Normal file
18
db/migrate/20240408010102_create_action_nodes.rb
Normal 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
|
||||
17
db/migrate/20240408010213_create_action_node_selects.rb
Normal file
17
db/migrate/20240408010213_create_action_node_selects.rb
Normal 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
|
||||
14
db/migrate/20240408010227_create_action_node_inputs.rb
Normal file
14
db/migrate/20240408010227_create_action_node_inputs.rb
Normal 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
|
||||
13
db/migrate/20240408010233_create_action_templates.rb
Normal file
13
db/migrate/20240408010233_create_action_templates.rb
Normal 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
|
||||
Reference in New Issue
Block a user