Skip to content

Data Model: Auth0Log #48

@echelonnought

Description

@echelonnought

In this issue, create the User data model. Refer to the #46 for the table data types and columns.

Guide to creating migrations and models in this app

Auth0Log:

Column DataType
id primary key, int
user_id fkey, users
event_type varchar(100)
ip_address varchar(100)
user_agent varchar(100)
created_at timestamp

Completing this issue will involve:

  • A database migration that creates each schema.

  • Defining the models and their relations appropriately.

  • Writing basic unit testing for the functionality of the model. Models will be pretty bare bones, testing that it will be created and have the correct data attributes should be sufficient for this issue.

Dependency:

#47

Acceptance Criteria:

When I query an existing entry of this model
Then the database should return that row
And there should be a well-defined model instance with the data

When I want to save an instance of this model
Then the model instance should validate required fields
And the database should successfully save the model

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions