Skip to content

Commit

Permalink
chore(CE): data app model migration (#350)
Browse files Browse the repository at this point in the history
Co-authored-by: afthab vp <[email protected]>
  • Loading branch information
github-actions[bot] and afthabvp authored Sep 2, 2024
1 parent 274c199 commit 9e40465
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
13 changes: 13 additions & 0 deletions server/db/migrate/20240829110045_create_data_apps.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class CreateDataApps < ActiveRecord::Migration[7.1]
def change
create_table :data_apps do |t|
t.string :name, null: false
t.integer :status, null: false
t.integer :workspace_id, null: false
t.text :description
t.json :meta_data

t.timestamps
end
end
end
15 changes: 15 additions & 0 deletions server/db/migrate/20240829131951_create_visual_component.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class CreateVisualComponent < ActiveRecord::Migration[7.1]
def change
create_table :visual_components do |t|
t.integer :component_type, null: false
t.string :name, null: false
t.integer :workspace_id, null: false
t.integer :data_app_id, null: false
t.integer :model_id, null: false
t.jsonb :properties
t.jsonb :feedback_config

t.timestamps
end
end
end
24 changes: 23 additions & 1 deletion server/db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9e40465

Please sign in to comment.