@@ -507,7 +507,8 @@ table "app_release_record" {
507507 }
508508}
509509table "connector_workflow_version" {
510- schema = schema. opencoze
510+ schema = schema. opencoze
511+ comment = " connector workflow version"
511512 column "id" {
512513 null = false
513514 type = bigint
@@ -550,7 +551,7 @@ table "connector_workflow_version" {
550551 index "idx_connector_id_workflow_id_create_at" {
551552 columns = [column . connector_id , column . workflow_id , column . created_at ]
552553 }
553- index "idx_connector_id_workflow_id_version " {
554+ index "uniq_connector_id_workflow_id_version " {
554555 unique = true
555556 columns = [column . connector_id , column . workflow_id , column . version ]
556557 }
@@ -862,7 +863,7 @@ table "knowledge" {
862863 null = false
863864 type = varchar (150 )
864865 default = " "
865- comment = " knowledge's name"
866+ comment = " knowledge_s name"
866867 }
867868 column "app_id" {
868869 null = false
@@ -1647,7 +1648,7 @@ table "node_execution" {
16471648 null = true
16481649 type = bigint
16491650 unsigned = true
1650- comment = " loop or batch's execution index"
1651+ comment = " loop or batch_s execution index"
16511652 }
16521653 column "composite_node_items" {
16531654 null = true
@@ -1658,7 +1659,7 @@ table "node_execution" {
16581659 column "parent_node_id" {
16591660 null = true
16601661 type = varchar (128 )
1661- comment = " when as inner node for loop or batch, this is the parent node's key"
1662+ comment = " when as inner node for loop or batch, this is the parent node_s key"
16621663 collate = " utf8mb4_unicode_ci"
16631664 }
16641665 column "sub_execute_id" {
@@ -2005,12 +2006,12 @@ table "plugin_oauth_auth" {
20052006 comment = " Authorization Code OAuth Config"
20062007 }
20072008 column "access_token" {
2008- null = false
2009+ null = true
20092010 type = text
20102011 comment = " Access Token"
20112012 }
20122013 column "refresh_token" {
2013- null = false
2014+ null = true
20142015 type = text
20152016 comment = " Refresh Token"
20162017 }
@@ -2523,7 +2524,7 @@ table "single_agent_draft" {
25232524 comment = " Agent Name"
25242525 }
25252526 column "description" {
2526- null = false
2527+ null = true
25272528 type = text
25282529 comment = " Agent Description"
25292530 }
@@ -2751,7 +2752,7 @@ table "single_agent_version" {
27512752 comment = " Agent Name"
27522753 }
27532754 column "description" {
2754- null = false
2755+ null = true
27552756 type = text
27562757 comment = " Agent Description"
27572758 }
@@ -3526,7 +3527,7 @@ table "workflow_draft" {
35263527 comment = " workflow ID"
35273528 }
35283529 column "canvas" {
3529- null = false
3530+ null = true
35303531 type = mediumtext
35313532 comment = " Front end schema"
35323533 }
@@ -3948,7 +3949,7 @@ table "workflow_snapshot" {
39483949 comment = " the commit id of the workflow draft"
39493950 }
39503951 column "canvas" {
3951- null = false
3952+ null = true
39523953 type = mediumtext
39533954 comment = " frontend schema for this snapshot"
39543955 }
@@ -4010,7 +4011,7 @@ table "workflow_version" {
40104011 comment = " Version Description"
40114012 }
40124013 column "canvas" {
4013- null = false
4014+ null = true
40144015 type = mediumtext
40154016 comment = " Front end schema"
40164017 }
0 commit comments