OH-SHOWN / ohshown-backend

OH!SHOWN 野生動物出沒痕跡通報系統
http://ohshown.site
MIT License
2 stars 8 forks source link

add bear model and migration #71

Closed EagleC0318 closed 2 years ago

EagleC0318 commented 2 years ago

why

EagleC0318 commented 2 years ago

Some difference/thought between the questionnaire and the table for bear.

  1. Based on the questionnaire, we don't know the age for the bear individually.
  2. The bear table record is a single bear, means the "其他說明" is by bear and the "個體數" would not be stored on the bear table.
tai271828 commented 2 years ago

Some difference/thought between the questionnaire and the table for bear.

  1. Based on the questionnaire, we don't know the age for the bear individually.

I think it should be fine if each entry of bear tabl maps one bear only. See below.

  1. The bear table record is a single bear, means the "其他說明" is by bear and the "個體數" would not be stored on the bear table.

Good point. Thanks for the heads-up. According to this design, we will have shown_form to resolve this issue.

Some difference/thought between the questionnaire and the table for bear.

  1. Based on the questionnaire, we don't know the age for the bear individually.
  2. The bear table record is a single bear, means the "其他說明" is by bear and the "個體數" would not be stored on the bear table.
tai271828 commented 2 years ago

Attached the questionnaire FWIW Final._20220304.pdf

tai271828 commented 2 years ago

Next step: after @EagleC0318 fixes the CI, we will land this PR.

EagleC0318 commented 2 years ago

CI Fixed. Somehow I forgot to commit the migration file lol.

tai271828 commented 2 years ago

Thank you man @EagleC0318 . You are awesome!

tai271828 commented 2 years ago

Deployed to ohshown.site:8080 and looks good.