[JITERA] Create/Update models and migrations
Created by: akuita
This pull request is created by JITERA
Description
[ERD] Changes
| table | guideline | type | columns |
|---|---|---|---|
| users | This file already exists. Update the User model to include new attributes and their corresponding data types. Ensure that the model reflects all the columns listed in the "# TABLE" section. For example, add sign_in_count: integer, default: 0, null: false to the model. |
UPDATED | id: integer, sign_in_count: integer, remember_created_at: date, current_sign_in_ip: varchar, locked_at: date, encrypted_password: varchar, confirmed_at: date, failed_attempts: integer, last_sign_in_ip: varchar, confirmation_token: varchar, unconfirmed_email: varchar, email: varchar, reset_password_token: varchar, password_confirmation: varchar, last_sign_in_at: date, reset_password_sent_at: date, password: varchar, unlock_token: varchar, current_sign_in_at: date, confirmation_sent_at: date, created_at: date, updated_at: date |
| audit_logs | This file already exists. Update the User model to include new attributes and their corresponding data types. Ensure that the model reflects all the columns listed in the "# TABLE" section. For example, add sign_in_count: integer, default: 0, null: false to the model. |
ADDED | id: integer, created_at: date, updated_at: date, action: varchar, affected_resource: varchar, timestamp: date, user_ip: varchar, user_id: integer |