Compare commits

...

1 Commits
master ... dev

Author SHA1 Message Date
3bd611a8a2 dev 2024-05-22 11:26:15 +07:00
108 changed files with 6 additions and 0 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
.vscode/settings.json vendored Normal file → Executable file
View File

0
Makefile Normal file → Executable file
View File

0
TODO Normal file → Executable file
View File

0
api/BaseResponse.go Normal file → Executable file
View File

0
api/api.go Normal file → Executable file
View File

0
api/image.go Normal file → Executable file
View File

0
api/location.go Normal file → Executable file
View File

0
api/middleware.go Normal file → Executable file
View File

0
api/news_event.go Normal file → Executable file
View File

0
api/region.go Normal file → Executable file
View File

0
api/reviews.go Normal file → Executable file
View File

0
api/server.go Normal file → Executable file
View File

0
api/tags.go Normal file → Executable file
View File

0
api/test/location_test.go Normal file → Executable file
View File

0
api/test/main_test.go Normal file → Executable file
View File

0
api/test/user_test.go Normal file → Executable file
View File

0
api/token.go Normal file → Executable file
View File

0
api/user.go Normal file → Executable file
View File

0
data.ms/VERSION Normal file → Executable file
View File

0
data.ms/auth/data.mdb Normal file → Executable file
View File

BIN
data.ms/auth/lock.mdb Normal file → Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

0
data.ms/instance-uid Normal file → Executable file
View File

BIN
data.ms/tasks/data.mdb Normal file → Executable file

Binary file not shown.

BIN
data.ms/tasks/lock.mdb Normal file → Executable file

Binary file not shown.

0
db/csv_seeder/images.csv Normal file → Executable file
View File

0
db/csv_seeder/kabupaten.csv Normal file → Executable file
View File

0
db/csv_seeder/locations.csv Normal file → Executable file
View File

0
db/csv_seeder/provinsi.csv Normal file → Executable file
View File

0
db/csv_seeder/regions.csv Normal file → Executable file
View File

0
db/csv_seeder/reviews.csv Normal file → Executable file
View File

0
db/csv_seeder/tags.csv Normal file → Executable file
View File

0
db/csv_seeder/user.csv Normal file → Executable file
View File

0
db/migrations/000001_init_schema.down.sql Normal file → Executable file
View File

0
db/migrations/000001_init_schema.up.sql Normal file → Executable file
View File

View File

View File

0
db/migrations/000003_create_user_activities.down.sql Normal file → Executable file
View File

0
db/migrations/000003_create_user_activities.up.sql Normal file → Executable file
View File

0
db/migrations/000004_create_images_table.down.sql Normal file → Executable file
View File

0
db/migrations/000004_create_images_table.up.sql Normal file → Executable file
View File

View File

View File

View File

0
db/migrations/000006_create_user_sessions_table.up.sql Normal file → Executable file
View File

0
db/migrations/000007_create_user_follow_table.down.sql Normal file → Executable file
View File

0
db/migrations/000007_create_user_follow_table.up.sql Normal file → Executable file
View File

View File

View File

View File

View File

0
db/migrations/000010_create_news_event_table.down.sql Normal file → Executable file
View File

0
db/migrations/000010_create_news_event_table.up.sql Normal file → Executable file
View File

0
db/mock/store.go Normal file → Executable file
View File

0
db/queries/follow.sql Normal file → Executable file
View File

0
db/queries/images.sql Normal file → Executable file
View File

0
db/queries/locations.sql Normal file → Executable file
View File

0
db/queries/news_events.sql Normal file → Executable file
View File

0
db/queries/provinces.sql Normal file → Executable file
View File

0
db/queries/regencies.sql Normal file → Executable file
View File

0
db/queries/regions.sql Normal file → Executable file
View File

0
db/queries/reviews.sql Normal file → Executable file
View File

0
db/queries/sessions.sql Normal file → Executable file
View File

0
db/queries/users.sql Normal file → Executable file
View File

0
db/sqlc/db.go Normal file → Executable file
View File

0
db/sqlc/error.go Normal file → Executable file
View File

0
db/sqlc/follow.sql.go Normal file → Executable file
View File

0
db/sqlc/images.go Normal file → Executable file
View File

0
db/sqlc/images.sql.go Normal file → Executable file
View File

0
db/sqlc/locations.go Normal file → Executable file
View File

0
db/sqlc/locations.sql.go Normal file → Executable file
View File

0
db/sqlc/models.go Normal file → Executable file
View File

0
db/sqlc/news_events.go Normal file → Executable file
View File

0
db/sqlc/news_events.sql.go Normal file → Executable file
View File

0
db/sqlc/provinces.sql.go Normal file → Executable file
View File

0
db/sqlc/querier.go Normal file → Executable file
View File

0
db/sqlc/regencies.sql.go Normal file → Executable file
View File

0
db/sqlc/regions.sql.go Normal file → Executable file
View File

0
db/sqlc/reviews.go Normal file → Executable file
View File

0
db/sqlc/reviews.sql.go Normal file → Executable file
View File

0
db/sqlc/sessions.sql.go Normal file → Executable file
View File

0
db/sqlc/store.go Normal file → Executable file
View File

0
db/sqlc/test/locations_test.go Normal file → Executable file
View File

0
db/sqlc/test/main_test.go Normal file → Executable file
View File

0
db/sqlc/test/users_test.go Normal file → Executable file
View File

0
db/sqlc/tx_location.go Normal file → Executable file
View File

0
db/sqlc/users.go Normal file → Executable file
View File

0
db/sqlc/users.sql.go Normal file → Executable file
View File

0
dev.env.example Normal file → Executable file
View File

0
go.mod Normal file → Executable file
View File

0
go.sum Normal file → Executable file
View File

View File

@ -1,5 +1,7 @@
#!/bin/sh
cp ./db/csv_seeder/* /tmp/
# SEEDING MAIN DATAABSE
sudo -u postgres psql \
-c '\copy users(id,username,password) FROM '"'/tmp/user.csv'"' DELIMITER '"','"' CSV HEADER;' \
-c '\copy regions(id, region_name) FROM '"'/tmp/regions.csv'"' DELIMITER '"','"' CSV HEADER;' \
@ -10,6 +12,8 @@ sudo -u postgres psql \
-c '\copy images(id,image_url,uploaded_by,image_type,image_of) FROM '"'/tmp/images.csv'"' DELIMITER '"'#'"' CSV HEADER;' \
-c '\copy tags(id,name,submitted_by,target_id,tags_type) FROM '"'/tmp/tags.csv'"' DELIMITER '"','"' CSV HEADER;' \
-d hiling_dev &&
# SEEDING TEST DATABASE
sudo -u postgres psql \
-c '\copy users(id,username,password) FROM '"'/tmp/user.csv'"' DELIMITER '"','"' CSV HEADER;' \
-c '\copy regions(id, region_name) FROM '"'/tmp/regions.csv'"' DELIMITER '"','"' CSV HEADER;' \

0
main.go Normal file → Executable file
View File

0
notes Normal file → Executable file
View File

0
sqlc.yaml Normal file → Executable file
View File

0
user_stories Normal file → Executable file
View File

2
util/cloudfare/r2.go Executable file
View File

@ -0,0 +1,2 @@
package cloudfare

0
util/config.go Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More