Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
3bd611a8a2 |
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
.vscode/settings.json
vendored
Normal file → Executable file
0
.vscode/settings.json
vendored
Normal file → Executable file
0
api/BaseResponse.go
Normal file → Executable file
0
api/BaseResponse.go
Normal file → Executable file
0
api/api.go
Normal file → Executable file
0
api/api.go
Normal file → Executable file
0
api/image.go
Normal file → Executable file
0
api/image.go
Normal file → Executable file
0
api/location.go
Normal file → Executable file
0
api/location.go
Normal file → Executable file
0
api/middleware.go
Normal file → Executable file
0
api/middleware.go
Normal file → Executable file
0
api/news_event.go
Normal file → Executable file
0
api/news_event.go
Normal file → Executable file
0
api/region.go
Normal file → Executable file
0
api/region.go
Normal file → Executable file
0
api/reviews.go
Normal file → Executable file
0
api/reviews.go
Normal file → Executable file
0
api/server.go
Normal file → Executable file
0
api/server.go
Normal file → Executable file
0
api/tags.go
Normal file → Executable file
0
api/tags.go
Normal file → Executable file
0
api/test/location_test.go
Normal file → Executable file
0
api/test/location_test.go
Normal file → Executable file
0
api/test/main_test.go
Normal file → Executable file
0
api/test/main_test.go
Normal file → Executable file
0
api/test/user_test.go
Normal file → Executable file
0
api/test/user_test.go
Normal file → Executable file
0
api/token.go
Normal file → Executable file
0
api/token.go
Normal file → Executable file
0
api/user.go
Normal file → Executable file
0
api/user.go
Normal file → Executable file
0
data.ms/VERSION
Normal file → Executable file
0
data.ms/VERSION
Normal file → Executable file
0
data.ms/auth/data.mdb
Normal file → Executable file
0
data.ms/auth/data.mdb
Normal file → Executable file
BIN
data.ms/auth/lock.mdb
Normal file → Executable file
BIN
data.ms/auth/lock.mdb
Normal file → Executable file
Binary file not shown.
BIN
data.ms/indexes/7cfc824a-b5b6-44e5-98e9-36b251867cac/data.mdb
Normal file → Executable file
BIN
data.ms/indexes/7cfc824a-b5b6-44e5-98e9-36b251867cac/data.mdb
Normal file → Executable file
Binary file not shown.
BIN
data.ms/indexes/7cfc824a-b5b6-44e5-98e9-36b251867cac/lock.mdb
Normal file → Executable file
BIN
data.ms/indexes/7cfc824a-b5b6-44e5-98e9-36b251867cac/lock.mdb
Normal file → Executable file
Binary file not shown.
0
data.ms/instance-uid
Normal file → Executable file
0
data.ms/instance-uid
Normal file → Executable file
BIN
data.ms/tasks/data.mdb
Normal file → Executable 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
BIN
data.ms/tasks/lock.mdb
Normal file → Executable file
Binary file not shown.
0
db/csv_seeder/images.csv
Normal file → Executable file
0
db/csv_seeder/images.csv
Normal file → Executable file
0
db/csv_seeder/kabupaten.csv
Normal file → Executable file
0
db/csv_seeder/kabupaten.csv
Normal file → Executable file
0
db/csv_seeder/locations.csv
Normal file → Executable file
0
db/csv_seeder/locations.csv
Normal file → Executable file
0
db/csv_seeder/provinsi.csv
Normal file → Executable file
0
db/csv_seeder/provinsi.csv
Normal file → Executable file
0
db/csv_seeder/regions.csv
Normal file → Executable file
0
db/csv_seeder/regions.csv
Normal file → Executable file
0
db/csv_seeder/reviews.csv
Normal file → Executable file
0
db/csv_seeder/reviews.csv
Normal file → Executable file
0
db/csv_seeder/tags.csv
Normal file → Executable file
0
db/csv_seeder/tags.csv
Normal file → Executable file
0
db/csv_seeder/user.csv
Normal file → Executable file
0
db/csv_seeder/user.csv
Normal file → Executable file
0
db/migrations/000001_init_schema.down.sql
Normal file → Executable file
0
db/migrations/000001_init_schema.down.sql
Normal file → Executable file
0
db/migrations/000001_init_schema.up.sql
Normal file → Executable file
0
db/migrations/000001_init_schema.up.sql
Normal file → Executable file
0
db/migrations/000002_add_approvedby_in_locations_table.down.sql
Normal file → Executable file
0
db/migrations/000002_add_approvedby_in_locations_table.down.sql
Normal file → Executable file
0
db/migrations/000002_add_approvedby_in_locations_table.up.sql
Normal file → Executable file
0
db/migrations/000002_add_approvedby_in_locations_table.up.sql
Normal file → Executable file
0
db/migrations/000003_create_user_activities.down.sql
Normal file → Executable file
0
db/migrations/000003_create_user_activities.down.sql
Normal file → Executable file
0
db/migrations/000003_create_user_activities.up.sql
Normal file → Executable file
0
db/migrations/000003_create_user_activities.up.sql
Normal file → Executable file
0
db/migrations/000004_create_images_table.down.sql
Normal file → Executable file
0
db/migrations/000004_create_images_table.down.sql
Normal file → Executable file
0
db/migrations/000004_create_images_table.up.sql
Normal file → Executable file
0
db/migrations/000004_create_images_table.up.sql
Normal file → Executable file
0
db/migrations/000005_alter_tags_column_approvedby_nullable.down.sql
Normal file → Executable file
0
db/migrations/000005_alter_tags_column_approvedby_nullable.down.sql
Normal file → Executable file
0
db/migrations/000005_alter_tags_column_approvedby_nullable.up.sql
Normal file → Executable file
0
db/migrations/000005_alter_tags_column_approvedby_nullable.up.sql
Normal file → Executable file
0
db/migrations/000006_create_user_sessions_table.down.sql
Normal file → Executable file
0
db/migrations/000006_create_user_sessions_table.down.sql
Normal file → Executable file
0
db/migrations/000006_create_user_sessions_table.up.sql
Normal file → Executable file
0
db/migrations/000006_create_user_sessions_table.up.sql
Normal file → Executable file
0
db/migrations/000007_create_user_follow_table.down.sql
Normal file → Executable file
0
db/migrations/000007_create_user_follow_table.down.sql
Normal file → Executable file
0
db/migrations/000007_create_user_follow_table.up.sql
Normal file → Executable file
0
db/migrations/000007_create_user_follow_table.up.sql
Normal file → Executable file
0
db/migrations/000008_alter_users_add_about_column.down.sql
Normal file → Executable file
0
db/migrations/000008_alter_users_add_about_column.down.sql
Normal file → Executable file
0
db/migrations/000008_alter_users_add_about_column.up.sql
Normal file → Executable file
0
db/migrations/000008_alter_users_add_about_column.up.sql
Normal file → Executable file
0
db/migrations/000009_alter_users_add_website_column.down.sql
Normal file → Executable file
0
db/migrations/000009_alter_users_add_website_column.down.sql
Normal file → Executable file
0
db/migrations/000009_alter_users_add_website_column.up.sql
Normal file → Executable file
0
db/migrations/000009_alter_users_add_website_column.up.sql
Normal file → Executable file
0
db/migrations/000010_create_news_event_table.down.sql
Normal file → Executable file
0
db/migrations/000010_create_news_event_table.down.sql
Normal file → Executable file
0
db/migrations/000010_create_news_event_table.up.sql
Normal file → Executable file
0
db/migrations/000010_create_news_event_table.up.sql
Normal file → Executable file
0
db/mock/store.go
Normal file → Executable file
0
db/mock/store.go
Normal file → Executable file
0
db/queries/follow.sql
Normal file → Executable file
0
db/queries/follow.sql
Normal file → Executable file
0
db/queries/images.sql
Normal file → Executable file
0
db/queries/images.sql
Normal file → Executable file
0
db/queries/locations.sql
Normal file → Executable file
0
db/queries/locations.sql
Normal file → Executable file
0
db/queries/news_events.sql
Normal file → Executable file
0
db/queries/news_events.sql
Normal file → Executable file
0
db/queries/provinces.sql
Normal file → Executable file
0
db/queries/provinces.sql
Normal file → Executable file
0
db/queries/regencies.sql
Normal file → Executable file
0
db/queries/regencies.sql
Normal file → Executable file
0
db/queries/regions.sql
Normal file → Executable file
0
db/queries/regions.sql
Normal file → Executable file
0
db/queries/reviews.sql
Normal file → Executable file
0
db/queries/reviews.sql
Normal file → Executable file
0
db/queries/sessions.sql
Normal file → Executable file
0
db/queries/sessions.sql
Normal file → Executable file
0
db/queries/users.sql
Normal file → Executable file
0
db/queries/users.sql
Normal file → Executable file
0
db/sqlc/db.go
Normal file → Executable file
0
db/sqlc/db.go
Normal file → Executable file
0
db/sqlc/error.go
Normal file → Executable file
0
db/sqlc/error.go
Normal file → Executable file
0
db/sqlc/follow.sql.go
Normal file → Executable file
0
db/sqlc/follow.sql.go
Normal file → Executable file
0
db/sqlc/images.go
Normal file → Executable file
0
db/sqlc/images.go
Normal file → Executable file
0
db/sqlc/images.sql.go
Normal file → Executable file
0
db/sqlc/images.sql.go
Normal file → Executable file
0
db/sqlc/locations.go
Normal file → Executable file
0
db/sqlc/locations.go
Normal file → Executable file
0
db/sqlc/locations.sql.go
Normal file → Executable file
0
db/sqlc/locations.sql.go
Normal file → Executable file
0
db/sqlc/models.go
Normal file → Executable file
0
db/sqlc/models.go
Normal file → Executable file
0
db/sqlc/news_events.go
Normal file → Executable file
0
db/sqlc/news_events.go
Normal file → Executable file
0
db/sqlc/news_events.sql.go
Normal file → Executable file
0
db/sqlc/news_events.sql.go
Normal file → Executable file
0
db/sqlc/provinces.sql.go
Normal file → Executable file
0
db/sqlc/provinces.sql.go
Normal file → Executable file
0
db/sqlc/querier.go
Normal file → Executable file
0
db/sqlc/querier.go
Normal file → Executable file
0
db/sqlc/regencies.sql.go
Normal file → Executable file
0
db/sqlc/regencies.sql.go
Normal file → Executable file
0
db/sqlc/regions.sql.go
Normal file → Executable file
0
db/sqlc/regions.sql.go
Normal file → Executable file
0
db/sqlc/reviews.go
Normal file → Executable file
0
db/sqlc/reviews.go
Normal file → Executable file
0
db/sqlc/reviews.sql.go
Normal file → Executable file
0
db/sqlc/reviews.sql.go
Normal file → Executable file
0
db/sqlc/sessions.sql.go
Normal file → Executable file
0
db/sqlc/sessions.sql.go
Normal file → Executable file
0
db/sqlc/store.go
Normal file → Executable file
0
db/sqlc/store.go
Normal file → Executable file
0
db/sqlc/test/locations_test.go
Normal file → Executable file
0
db/sqlc/test/locations_test.go
Normal file → Executable file
0
db/sqlc/test/main_test.go
Normal file → Executable file
0
db/sqlc/test/main_test.go
Normal file → Executable file
0
db/sqlc/test/users_test.go
Normal file → Executable file
0
db/sqlc/test/users_test.go
Normal file → Executable file
0
db/sqlc/tx_location.go
Normal file → Executable file
0
db/sqlc/tx_location.go
Normal file → Executable file
0
db/sqlc/users.go
Normal file → Executable file
0
db/sqlc/users.go
Normal file → Executable file
0
db/sqlc/users.sql.go
Normal file → Executable file
0
db/sqlc/users.sql.go
Normal file → Executable file
0
dev.env.example
Normal file → Executable file
0
dev.env.example
Normal file → Executable 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
user_stories
Normal file → Executable file
0
user_stories
Normal file → Executable file
2
util/cloudfare/r2.go
Executable file
2
util/cloudfare/r2.go
Executable file
@ -0,0 +1,2 @@
|
||||
package cloudfare
|
||||
|
0
util/config.go
Normal file → Executable file
0
util/config.go
Normal file → Executable file
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user