fmt: fix and simplify align of struct fields (#21995)

This commit is contained in:
yuyi 2024-08-06 01:23:39 +08:00 committed by GitHub
parent 576a0abcc7
commit ddb6685d8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
139 changed files with 553 additions and 519 deletions

View file

@ -33,9 +33,9 @@ const pg_db = os.getenv_opt('PGDATABASE') or { 'test' }
@[table: 'modules']
struct Module {
id int @[primary; sql: serial]
id int @[primary; sql: serial]
name string
nr_downloads int @[sql: u64]
nr_downloads int @[sql: u64]
creator User
}
@ -48,13 +48,13 @@ struct User {
}
struct Parent {
id int @[primary; sql: serial]
id int @[primary; sql: serial]
name string
children []Child @[fkey: 'parent_id']
}
struct Child {
id int @[primary; sql: serial]
id int @[primary; sql: serial]
parent_id int
name string
}