Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Speaker Resource구현 #13

Open
kujyp opened this issue Apr 8, 2018 · 2 comments
Open

Speaker Resource구현 #13

kujyp opened this issue Apr 8, 2018 · 2 comments

Comments

@kujyp
Copy link
Contributor

kujyp commented Apr 8, 2018

  1. DB Model Class 정의
    User와 Relation, Library와 Relation 정의

  2. CRUD 구현
    GET api/v1/speaker
    POST api/v1/speaker
    GET api/v1/speaker/int:pk
    PUT api/v1/speaker/int:pk
    DELETE api/v1/speaker/int:pk

  3. DB Migration

    Fields 정의

    Speaker
    name
    email
    phone
    password
    is_email_verified
    email_sended_at
    session_time(2개중 택1)
    library_id

    FutherInfo
    title
    content
    attachments

@kujyp
Copy link
Contributor Author

kujyp commented Apr 11, 2018

아 맞다 password encode해서 저장해야하려나?

kujyp added a commit that referenced this issue Apr 12, 2018
kujyp added a commit that referenced this issue Apr 12, 2018
@kujyp
Copy link
Contributor Author

kujyp commented Apr 12, 2018

session_time 저장시 Enum('09:00', '10:00')의 형태로 저장하는데, 이는 시간이 바뀌었을때(지금도 실제 시간을 모르고작업하여 변경될것임)
db column을 바꿔야함

비용이 너무많이들기때문에 String으로 올리고, Field validation으로 09:00, 10:00으로 제한하는것도 하나의 방법으로 보임.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant