Coder Social home page Coder Social logo

Comments (1)

ErikPlachta avatar ErikPlachta commented on August 17, 2024

@NicaVulcan - As I was building the seeder on #17 I noticed a few things with the model that I'd like you to review regarding the Schema.

See below


Schema

  • Overall, should all Type relationships be plural?
    • Seems like they should be but idk?
    • Business has Appointment_Type, Appointments, and Users
  • Appointment
    • Add Appointment_Type as Type reference
    • Rename appointment_status to status
    • Rename appointment_details to details
  • Appointment_Type
    • Re-Rename Schema
      • from AppointmentType back to Appointment_Type
    • Add Details OBJ
      • This is used to feed the Appointment in the Client for input
        • The UI needs it to know what questions to ask

      • Short term, this is the minimum requirements all appointments should have.
      • The future goal is having more complex appointments and customization.

      • Template
        •     const Details = {
                      "subject"       : "",
                      "duration"      : "",
                      "date_time"    : "",
                      "timezone"      : "",
                      "client"        : {
                                          "name": "",
                                          "email": "",
                                          "phone": ""
                      }```
  • Business
    • brand_name to be unique
      • unique: true
      • it's meant to be what appears in the URL via the API like -> scheduler.io/s/:brand_name
    • Add date_created to mirror user
      • Nice to know when accounts are created
  • User
    • Add date_login
      • Can mirror the date_created for now
      • Can do some really cool UI and customer experience things with that

from calendari.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.