Tugas Tabel
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"time"
|
||||
|
||||
"5803025024/w04/internal/auth"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
)
|
||||
@@ -76,10 +77,10 @@ func SeedSampleData(conn *pgx.Conn) error {
|
||||
username string
|
||||
password string
|
||||
}{
|
||||
{username: "Aldo", password: "123"},
|
||||
{username: "Alex", password: "12345"},
|
||||
{username: "Cliff", password: "12345678"},
|
||||
{username: "Farrel", password: "1234567890"},
|
||||
{username: "A", password: "password123"},
|
||||
{username: "L", password: "password12345"},
|
||||
{username: "D", password: "password12345678"},
|
||||
{username: "O", password: "password12345678910"},
|
||||
}
|
||||
|
||||
fmt.Println("✅ INSERT DATA SAMPLE KE DATABASE (lebih dari 2 USERS):")
|
||||
|
||||
@@ -9,6 +9,7 @@ import (
|
||||
"5803025024/w04/internal/auth"
|
||||
"5803025024/w04/internal/models"
|
||||
"5803025024/w04/internal/store"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ import (
|
||||
"5803025024/w04/internal/middleware"
|
||||
"5803025024/w04/internal/models"
|
||||
"5803025024/w04/internal/store"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
)
|
||||
|
||||
@@ -6,6 +6,7 @@ import (
|
||||
"time"
|
||||
|
||||
"5803025024/w04/internal/models"
|
||||
|
||||
"github.com/jackc/pgx/v5"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import (
|
||||
"sync"
|
||||
|
||||
"5803025024/w04/internal/models"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
)
|
||||
|
||||
@@ -5,6 +5,7 @@ import (
|
||||
"sync"
|
||||
|
||||
"5803025024/w04/internal/models"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user