Browse Source

#3 unsigned を最後に置いてみた

main
みてるぞ 1 month ago
parent
commit
dda67c43b9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      migration.py

+ 2
- 2
migration.py View File

@@ -28,7 +28,7 @@ def create_queries (
) -> None:
with SCHEMA.create ('queries') as table:
table.big_increments ('id')
table.big_integer ('user_id').unsigned ().nullable ().comment ('クエリ主')
table.big_integer ('user_id').nullable ().comment ('クエリ主').unsigned ()
table.integer ('target_character').comment ('クエリ先キャラクタ')
table.text ('content').comment ('クエリ内容')
table.string ('image_url').nullable ().default (None).comment ('添附画像 URL')
@@ -42,7 +42,7 @@ def create_answers (
) -> None:
with SCHEMA.create ('answers') as table:
table.big_increments ('id')
table.big_integer ('query_id').unsigned ().nullable ().comment ('クエリ')
table.big_integer ('query_id').nullable ().comment ('クエリ').unsigned ()
table.integer ('character').comment ('キャラクタ区分')
table.text ('content').comment ('回答内容')
table.integer ('answer_type').comment ('回答区分')


Loading…
Cancel
Save