Tugas Tabel

This commit is contained in:
Rinaldo
2026-10-01 11:21:32 +07:00
parent 380304e970
commit 4d40640938
6 changed files with 10 additions and 4 deletions
+5 -4
View File
@@ -7,6 +7,7 @@ import (
"time" "time"
"5803025024/w04/internal/auth" "5803025024/w04/internal/auth"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
) )
@@ -76,10 +77,10 @@ func SeedSampleData(conn *pgx.Conn) error {
username string username string
password string password string
}{ }{
{username: "Aldo", password: "123"}, {username: "A", password: "password123"},
{username: "Alex", password: "12345"}, {username: "L", password: "password12345"},
{username: "Cliff", password: "12345678"}, {username: "D", password: "password12345678"},
{username: "Farrel", password: "1234567890"}, {username: "O", password: "password12345678910"},
} }
fmt.Println("✅ INSERT DATA SAMPLE KE DATABASE (lebih dari 2 USERS):") fmt.Println("✅ INSERT DATA SAMPLE KE DATABASE (lebih dari 2 USERS):")
+1
View File
@@ -9,6 +9,7 @@ import (
"5803025024/w04/internal/auth" "5803025024/w04/internal/auth"
"5803025024/w04/internal/models" "5803025024/w04/internal/models"
"5803025024/w04/internal/store" "5803025024/w04/internal/store"
"github.com/google/uuid" "github.com/google/uuid"
) )
+1
View File
@@ -9,6 +9,7 @@ import (
"5803025024/w04/internal/middleware" "5803025024/w04/internal/middleware"
"5803025024/w04/internal/models" "5803025024/w04/internal/models"
"5803025024/w04/internal/store" "5803025024/w04/internal/store"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
) )
+1
View File
@@ -6,6 +6,7 @@ import (
"time" "time"
"5803025024/w04/internal/models" "5803025024/w04/internal/models"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
) )
+1
View File
@@ -5,6 +5,7 @@ import (
"sync" "sync"
"5803025024/w04/internal/models" "5803025024/w04/internal/models"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
) )
+1
View File
@@ -5,6 +5,7 @@ import (
"sync" "sync"
"5803025024/w04/internal/models" "5803025024/w04/internal/models"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/jackc/pgx/v5" "github.com/jackc/pgx/v5"
) )