Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Business Logic component 와 entity 정의 #2

Closed
wangmir opened this issue May 3, 2022 · 3 comments
Closed

Business Logic component 와 entity 정의 #2

wangmir opened this issue May 3, 2022 · 3 comments
Assignees

Comments

@wangmir
Copy link
Contributor

wangmir commented May 3, 2022

Sign in

Entity

class User {
  String id;
  String key;
  String pwd;
  List<String> shelterId;
}

Feed (Read)

  • infinite scrolling을 고려해야 한다

Entity

class Post {
  String id;
  String userKey;
  String animalId;
  String imageUrl;
  String desc;
  String createdAt;
}

Admin (보호소 프로필 CRUD, 동물 CRUD, post CRUD)

Entity

class Shelter {
  String id;
  String name;
  String imageUrl;
  String instagramUrl;
  String email;
  String phoneNumber;
  String desc;
  String createdAt;
}

class Animal {
  String id;
  String shelterId;
  String name;
  String imageUrl;
  String desc;
  String createdAt;
}

Terms

class Terms {
  String terms;
  bool isConsented;
}

External App Interaction (instagram, 통화, e-mail)

entity 필요없음

@KimHyoJin
Copy link
Contributor

firestore는 document형 db.
id를 document id로 대체한다.

@KimHyoJin
Copy link
Contributor

class User {
  String id; // pk
  String loginId; // 로그인시 사용하는 id
  String pwd;
  List<String> shelterId;
}

@KimHyoJin
Copy link
Contributor

KimHyoJin commented May 6, 2022

terms : 동의문자체에 대한 관리
ex) 마케팅 수신 동의 (어쩌구 저쩌구)~~

user별 동의 내역은 user안에 넣는다
image

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

No branches or pull requests

2 participants