Skip to content

feat: usersテーブルのmigrationとUserモデルの追加 / Add users table migration and User model - #488

Merged
zigzagdev merged 1 commit into
feat/user_registerfrom
feat/user_migration
Jun 27, 2026
Merged

feat: usersテーブルのmigrationとUserモデルの追加 / Add users table migration and User model#488
zigzagdev merged 1 commit into
feat/user_registerfrom
feat/user_migration

Conversation

@zigzagdev

@zigzagdev zigzagdev commented Jun 27, 2026

Copy link
Copy Markdown
Owner

概要 / Summary

  • users テーブルを作成するmigrationを追加
  • User Eloquentモデルを追加

変更内容 / Changes

Migration

  • users テーブルを新規作成
  • カラム: id, first_name, last_name, email(unique), password, age_range(enum), subscription_tier(enum), subscription_expires_at, email_verified_at, timestamps
  • age_range はマーケティング用途のユーザー年齢層(teens / 20s / 30s / 40s / 50s / 60plus
  • subscription_tier は課金ステータス(free / premium)、デフォルト free

User Model

  • passwordhashed キャストにより自動ハッシュ化
  • password$hidden に設定しレスポンスから除外

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@zigzagdev zigzagdev self-assigned this Jun 27, 2026
@zigzagdev zigzagdev linked an issue Jun 27, 2026 that may be closed by this pull request
2 tasks

@zigzagdev zigzagdev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@zigzagdev
zigzagdev merged commit 92b5e06 into feat/user_register Jun 27, 2026
25 checks passed
@zigzagdev
zigzagdev deleted the feat/user_migration branch June 27, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Migration and Model

1 participant