简体   繁体   中英

django - is the default auth.user enough?

I am working in django, I am planning a database for rides for users.

  • each User can be on multiple Rides (over time) and each Ride can have multiple Users (passengers) in it.

  • The front-end will be an android application.

a User will have to log-in to the app (via phone number authentication for example) and then - will be able either to tag along to a existing ride or add a new ride (meaning the user is the driver) and have other users tag along to it.

My question is - Does the default auth.user enough for this stuff? how can I extend and add members to the class? do I even need to?

Yes, auth.user is more than enough for your needs.

The Django documentation has good information on storing additional information about users: https://docs.djangoproject.com/en/1.4/topics/auth/#storing-additional-information-about-users

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM