package
0.0.0-20240222054359-313a2502ccb7
Repository: https://github.com/narongrit089/go-gorm-db.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
ฟังก์ชันสำหรับเข้ารหัสรหัสผ่าน.
ทำหน้าที่สร้าง Instance ของ ItemRepository และส่งคืนกลับไป ให้เรียกใช้งานได้.
NewStudentRepository creates a new instance of StudentRepository.
NewSubjectRepository creates a new instance of SubjectRepository.
NewTeacherRepository creates a new instance of TeacherRepository.
ทำหน้าที่สร้าง Instance ของ UserRepository และส่งคืนกลับไป ให้เรียกใช้งานได้.

# Structs

No description provided by the author
No description provided by the author
Student represents the structure of your "students" table in the database.
StudentRepository handles database operations related to the Student model.
Subject represents the structure of your "subjects" table in the database.
SubjectRepository handles database operations related to the Subject model.
Teacher represents the structure of your "Teachers" table in the database.
TeacherRepository handles database operations related to the Teacher model.
User คือโครงสร้างข้อมูลของผู้ใช้งาน สำหรับเก็บลงฐานข้อมูล และใช้สำหรับการ Authenticate ผู้ใช้งาน หรือ Login */.
สร้าง struct ชื่อ UserRepository ที่มีฟิลด์ชื่อ Db เป็น pointer ของ gorm.DB.