entc/gen: initial work for multi-schema migration using atlasgo.io (#3821)

This commit is contained in:
Ariel Mashraki
2023-11-13 12:35:31 +02:00
committed by GitHub
parent 50938a51c6
commit 9aba4ae091
116 changed files with 15265 additions and 203 deletions

View File

@@ -54,6 +54,12 @@ func (t *Table) SetComment(c string) *Table {
return t
}
// SetSchema sets the table schema.
func (t *Table) SetSchema(s string) *Table {
t.Schema = s
return t
}
// AddPrimary adds a new primary key to the table.
func (t *Table) AddPrimary(c *Column) *Table {
c.Key = PrimaryKey