snf_core 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/snf_core/auth_controller.rb +3 -4
- data/app/models/snf_core/user.rb +2 -2
- data/app/models/snf_core/virtual_account.rb +0 -1
- data/db/migrate/20250313103149_update_password_changed_default_to_true.rb +6 -0
- data/lib/snf_core/version.rb +1 -1
- data/spec/dummy/db/schema.rb +3 -2
- data/spec/dummy/log/development.log +272 -0
- data/spec/dummy/log/test.log +5367 -0
- data/spec/dummy/tmp/storage/45/yw/45ywj4zlnzf7xbzqqgetpqgfvelo +0 -0
- data/spec/dummy/tmp/storage/51/7m/517mx6cnxxarv8xn2e01m1jify0e +0 -0
- data/spec/dummy/tmp/storage/cy/k0/cyk0yrltd4ks0dc8hrszbewlq4c7 +0 -0
- data/spec/dummy/tmp/storage/kv/ic/kviccu3f65r4e4hpm4gx7negl8qn +0 -0
- data/spec/dummy/tmp/storage/on/yx/onyxcojw95x7e5klv51dlcfkag23 +0 -0
- data/spec/examples.txt +199 -198
- data/spec/factories/snf_core/users.rb +1 -0
- data/spec/models/snf_core/user_spec.rb +1 -0
- data/spec/requests/snf_core/auth_spec.rb +2 -1
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c44ee26535ca2c3687a171ccd8643aca7d5c93b70430801f1f3345b2c2735e34
|
4
|
+
data.tar.gz: 366988a00ed4ee227d3c1c5d5f08f6077da7f13a2d85a3b2ce9fa7884f1d1729
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a8babd301598eb87c0efaa128c8f77dc55c6df08b4ea218f01073ab55fd0210182b3ac10fc15d218bde46f5f344a9df03366673c324909970517c1ba95fe714
|
7
|
+
data.tar.gz: 581aea9808a0d4499306ecf90d5881e756cf03fe41982406b4e2330f6386bf43f0575a1b8576cd8de09019a6af61afe1d440b187244a8e339dc166b2286f28f4
|
@@ -37,7 +37,7 @@ module SnfCore
|
|
37
37
|
if @user.save
|
38
38
|
# Assign default user role
|
39
39
|
user_role = Role.find_by(name: "User")
|
40
|
-
UserRole.
|
40
|
+
UserRole.find_or_create_by!(user: @user, role: user_role)
|
41
41
|
|
42
42
|
@business = Business.new(
|
43
43
|
user: @user,
|
@@ -45,7 +45,6 @@ module SnfCore
|
|
45
45
|
tin_number: signup_params[:tin_number],
|
46
46
|
business_type: signup_params[:business_type]
|
47
47
|
)
|
48
|
-
|
49
48
|
if @business.save
|
50
49
|
render json: {
|
51
50
|
success: true,
|
@@ -97,7 +96,7 @@ module SnfCore
|
|
97
96
|
:first_name, :middle_name, :last_name, :password,
|
98
97
|
:phone_number, :business_name, :tin_number, :business_type,
|
99
98
|
:date_of_birth, :nationality, :occupation, :source_of_funds, :kyc_status,
|
100
|
-
:gender, :verified_at, :verified_by_id, :email
|
99
|
+
:gender, :verified_at, :verified_by_id, :email, :fayda_id
|
101
100
|
)
|
102
101
|
end
|
103
102
|
|
@@ -106,7 +105,7 @@ module SnfCore
|
|
106
105
|
:first_name, :middle_name, :last_name, :password,
|
107
106
|
:phone_number, :date_of_birth, :nationality,
|
108
107
|
:occupation, :source_of_funds, :kyc_status,
|
109
|
-
:gender, :verified_at, :verified_by_id, :email
|
108
|
+
:gender, :verified_at, :verified_by_id, :email, :fayda_id
|
110
109
|
)
|
111
110
|
end
|
112
111
|
|
data/app/models/snf_core/user.rb
CHANGED
@@ -7,8 +7,8 @@ module SnfCore
|
|
7
7
|
|
8
8
|
has_one :wallet, dependent: :destroy
|
9
9
|
|
10
|
-
validates :first_name, :middle_name, :last_name, :phone_number, :date_of_birth, :nationality, presence: true
|
11
|
-
validates :phone_number,
|
10
|
+
validates :first_name, :middle_name, :last_name, :phone_number, :date_of_birth, :nationality, :fayda_id, presence: true
|
11
|
+
validates :phone_number, uniqueness: true
|
12
12
|
|
13
13
|
enum :kyc_status, { pending: 0, approved: 1, rejected: 2 }
|
14
14
|
enum :gender, { male: 0, female: 1 }
|
data/lib/snf_core/version.rb
CHANGED
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema[8.0].define(version:
|
13
|
+
ActiveRecord::Schema[8.0].define(version: 2025_03_13_103149) do
|
14
14
|
# These are extensions that must be enabled in order to support this database
|
15
15
|
enable_extension "pg_catalog.plpgsql"
|
16
16
|
|
@@ -253,7 +253,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_141147) do
|
|
253
253
|
t.datetime "created_at", null: false
|
254
254
|
t.datetime "updated_at", null: false
|
255
255
|
t.string "password_digest", null: false
|
256
|
-
t.boolean "password_changed", default:
|
256
|
+
t.boolean "password_changed", default: true
|
257
257
|
t.string "reset_password_token"
|
258
258
|
t.date "date_of_birth", null: false
|
259
259
|
t.string "nationality", null: false
|
@@ -264,6 +264,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_141147) do
|
|
264
264
|
t.datetime "verified_at"
|
265
265
|
t.bigint "verified_by_id"
|
266
266
|
t.bigint "address_id"
|
267
|
+
t.string "fayda_id"
|
267
268
|
end
|
268
269
|
|
269
270
|
create_table "snf_core_virtual_account_transactions", force: :cascade do |t|
|
@@ -8920,3 +8920,275 @@ FOREIGN KEY ("user_id")
|
|
8920
8920
|
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
8921
8921
|
[1m[36mActiveRecord::InternalMetadata Create (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', 'e5ce873c596e29727a72a2140a63fcb330b84481', '2025-03-12 19:56:14.870566', '2025-03-12 19:56:14.870570') RETURNING "key" /*application='Dummy'*/[0m
|
8922
8922
|
[1m[36mActiveRecord::SchemaMigration Load (4.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
8923
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT pg_try_advisory_lock(869468062957908540) /*application='Dummy'*/[0m
|
8924
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
8925
|
+
[1m[36mActiveRecord::InternalMetadata Load (4.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
8926
|
+
Migrating to UpdatePasswordChangedDefaultToTrue (20250313103149)
|
8927
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN /*application='Dummy'*/[0m
|
8928
|
+
[1m[35m (8.5ms)[0m [1m[35mALTER TABLE "snf_core_users" ALTER COLUMN "password_changed" SET DEFAULT TRUE /*application='Dummy'*/[0m
|
8929
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "snf_core_users" ADD "fayda_id" character varying /*application='Dummy'*/[0m
|
8930
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250313103149') RETURNING "version" /*application='Dummy'*/[0m
|
8931
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mCOMMIT /*application='Dummy'*/[0m
|
8932
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(869468062957908540) /*application='Dummy'*/[0m
|
8933
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
8934
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
8935
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
8936
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
8937
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
8938
|
+
[1m[36mActiveRecord::SchemaMigration Load (4.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
8939
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
8940
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public /*application='Dummy'*/[0m
|
8941
|
+
[1m[35m (78.7ms)[0m [1m[35mDROP DATABASE IF EXISTS "snf_test" /*application='Dummy'*/[0m
|
8942
|
+
[1m[35m (117.3ms)[0m [1m[35mCREATE DATABASE "snf_test" ENCODING = 'unicode' /*application='Dummy'*/[0m
|
8943
|
+
[1m[35mSQL (20.3ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql" SCHEMA pg_catalog /*application='Dummy'*/[0m
|
8944
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_attachments" CASCADE /*application='Dummy'*/[0m
|
8945
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE TABLE "active_storage_attachments" ("id" bigserial primary key, "name" character varying NOT NULL, "record_type" character varying NOT NULL, "record_id" bigint NOT NULL, "blob_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
8946
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id") /*application='Dummy'*/[0m
|
8947
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id") /*application='Dummy'*/[0m
|
8948
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_blobs" CASCADE /*application='Dummy'*/[0m
|
8949
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "active_storage_blobs" ("id" bigserial primary key, "key" character varying NOT NULL, "filename" character varying NOT NULL, "content_type" character varying, "metadata" text, "service_name" character varying NOT NULL, "byte_size" bigint NOT NULL, "checksum" character varying, "created_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
8950
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key") /*application='Dummy'*/[0m
|
8951
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_variant_records" CASCADE /*application='Dummy'*/[0m
|
8952
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "active_storage_variant_records" ("id" bigserial primary key, "blob_id" bigint NOT NULL, "variation_digest" character varying NOT NULL) /*application='Dummy'*/[0m
|
8953
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest") /*application='Dummy'*/[0m
|
8954
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_account_transfers" CASCADE /*application='Dummy'*/[0m
|
8955
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE TABLE "snf_core_account_transfers" ("id" bigserial primary key, "source_account_type" character varying NOT NULL, "source_account_id" bigint NOT NULL, "destination_account_type" character varying NOT NULL, "destination_account_id" bigint NOT NULL, "user_id" bigint NOT NULL, "amount" decimal(15,2) NOT NULL, "reference_number" character varying NOT NULL, "status" integer DEFAULT 0 NOT NULL, "transfer_type" integer NOT NULL, "description" text, "failure_reason" text, "completed_at" timestamp(6), "reversal_transfer_id" bigint, "cbs_response_data" jsonb, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
8956
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_snf_core_account_transfers_on_destination_account" ON "snf_core_account_transfers" ("destination_account_type", "destination_account_id") /*application='Dummy'*/[0m
|
8957
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_snf_core_account_transfers_on_reference_number" ON "snf_core_account_transfers" ("reference_number") /*application='Dummy'*/[0m
|
8958
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_account_transfers_on_reversal_transfer_id" ON "snf_core_account_transfers" ("reversal_transfer_id") /*application='Dummy'*/[0m
|
8959
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_snf_core_account_transfers_on_source_account" ON "snf_core_account_transfers" ("source_account_type", "source_account_id") /*application='Dummy'*/[0m
|
8960
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_snf_core_account_transfers_on_user_id" ON "snf_core_account_transfers" ("user_id") /*application='Dummy'*/[0m
|
8961
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_addresses" CASCADE /*application='Dummy'*/[0m
|
8962
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE TABLE "snf_core_addresses" ("id" bigserial primary key, "address_type" character varying NOT NULL, "city" character varying NOT NULL, "sub_city" character varying NOT NULL, "woreda" character varying, "latitude" decimal, "longitude" decimal, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "house_number" character varying) /*application='Dummy'*/[0m
|
8963
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_business_documents" CASCADE /*application='Dummy'*/[0m
|
8964
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "snf_core_business_documents" ("id" bigserial primary key, "business_id" bigint NOT NULL, "document_type" integer NOT NULL, "verified_at" timestamp(6), "verified_by_id" bigint, "uploaded_at" timestamp(6), "is_verified" boolean DEFAULT FALSE NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
8965
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_snf_core_business_documents_on_business_id" ON "snf_core_business_documents" ("business_id") /*application='Dummy'*/[0m
|
8966
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_snf_core_business_documents_on_verified_by_id" ON "snf_core_business_documents" ("verified_by_id") /*application='Dummy'*/[0m
|
8967
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_businesses" CASCADE /*application='Dummy'*/[0m
|
8968
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "snf_core_businesses" ("id" bigserial primary key, "user_id" bigint NOT NULL, "business_name" character varying NOT NULL, "tin_number" character varying NOT NULL, "business_type" integer NOT NULL, "verified_at" timestamp(6), "verification_status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
8969
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_snf_core_businesses_on_user_id" ON "snf_core_businesses" ("user_id") /*application='Dummy'*/[0m
|
8970
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_categories" CASCADE /*application='Dummy'*/[0m
|
8971
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "snf_core_categories" ("id" bigserial primary key, "name" character varying NOT NULL, "description" character varying, "parent_id" bigint, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
8972
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_snf_core_categories_on_parent_id" ON "snf_core_categories" ("parent_id") /*application='Dummy'*/[0m
|
8973
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_customer_groups" CASCADE /*application='Dummy'*/[0m
|
8974
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE TABLE "snf_core_customer_groups" ("id" bigserial primary key, "discount_code" character varying, "expire_date" timestamp(6), "is_used" boolean, "group_id" bigint NOT NULL, "customer_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
8975
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_customer_groups_on_customer_id" ON "snf_core_customer_groups" ("customer_id") /*application='Dummy'*/[0m
|
8976
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_snf_core_customer_groups_on_group_id" ON "snf_core_customer_groups" ("group_id") /*application='Dummy'*/[0m
|
8977
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_delivery_orders" CASCADE /*application='Dummy'*/[0m
|
8978
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "snf_core_delivery_orders" ("id" bigserial primary key, "order_id" bigint NOT NULL, "delivery_address" character varying NOT NULL, "contact_phone" character varying NOT NULL, "delivery_notes" text NOT NULL, "estimated_delivery_time" timestamp(6) NOT NULL, "actual_delivery_time" timestamp(6), "status" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
8979
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_snf_core_delivery_orders_on_order_id" ON "snf_core_delivery_orders" ("order_id") /*application='Dummy'*/[0m
|
8980
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_groups" CASCADE /*application='Dummy'*/[0m
|
8981
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE TABLE "snf_core_groups" ("id" bigserial primary key, "name" character varying NOT NULL, "business_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
8982
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_groups_on_business_id" ON "snf_core_groups" ("business_id") /*application='Dummy'*/[0m
|
8983
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_item_requests" CASCADE /*application='Dummy'*/[0m
|
8984
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "snf_core_item_requests" ("id" bigserial primary key, "user_id" bigint NOT NULL, "product_id" bigint NOT NULL, "quantity" integer NOT NULL, "requested_delivery_date" date NOT NULL, "notes" text, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "unit" character varying) /*application='Dummy'*/[0m
|
8985
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_item_requests_on_product_id" ON "snf_core_item_requests" ("product_id") /*application='Dummy'*/[0m
|
8986
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_snf_core_item_requests_on_user_id" ON "snf_core_item_requests" ("user_id") /*application='Dummy'*/[0m
|
8987
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_order_items" CASCADE /*application='Dummy'*/[0m
|
8988
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "snf_core_order_items" ("id" bigserial primary key, "order_id" bigint NOT NULL, "store_inventory_id" bigint NOT NULL, "quantity" integer NOT NULL, "unit_price" decimal NOT NULL, "subtotal" decimal NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
8989
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_order_items_on_order_id" ON "snf_core_order_items" ("order_id") /*application='Dummy'*/[0m
|
8990
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_snf_core_order_items_on_store_inventory_id" ON "snf_core_order_items" ("store_inventory_id") /*application='Dummy'*/[0m
|
8991
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_orders" CASCADE /*application='Dummy'*/[0m
|
8992
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE TABLE "snf_core_orders" ("id" bigserial primary key, "user_id" bigint NOT NULL, "store_id" bigint NOT NULL, "status" integer DEFAULT 1 NOT NULL, "total_amount" decimal DEFAULT 0.0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
8993
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_snf_core_orders_on_store_id" ON "snf_core_orders" ("store_id") /*application='Dummy'*/[0m
|
8994
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_orders_on_user_id" ON "snf_core_orders" ("user_id") /*application='Dummy'*/[0m
|
8995
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_products" CASCADE /*application='Dummy'*/[0m
|
8996
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE TABLE "snf_core_products" ("id" bigserial primary key, "sku" character varying NOT NULL, "name" character varying NOT NULL, "description" character varying, "category_id" bigint NOT NULL, "base_price" float, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
8997
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_products_on_category_id" ON "snf_core_products" ("category_id") /*application='Dummy'*/[0m
|
8998
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_quotations" CASCADE /*application='Dummy'*/[0m
|
8999
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE TABLE "snf_core_quotations" ("id" bigserial primary key, "item_request_id" bigint NOT NULL, "price" decimal NOT NULL, "delivery_date" date NOT NULL, "valid_until" timestamp(6) NOT NULL, "status" integer DEFAULT 0 NOT NULL, "notes" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
9000
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_snf_core_quotations_on_item_request_id" ON "snf_core_quotations" ("item_request_id") /*application='Dummy'*/[0m
|
9001
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_roles" CASCADE /*application='Dummy'*/[0m
|
9002
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE TABLE "snf_core_roles" ("id" bigserial primary key, "name" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
9003
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_store_inventories" CASCADE /*application='Dummy'*/[0m
|
9004
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "snf_core_store_inventories" ("id" bigserial primary key, "store_id" bigint NOT NULL, "product_id" bigint NOT NULL, "base_price" decimal(10,2) NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "status" integer DEFAULT 0 NOT NULL) /*application='Dummy'*/[0m
|
9005
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_snf_core_store_inventories_on_product_id" ON "snf_core_store_inventories" ("product_id") /*application='Dummy'*/[0m
|
9006
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_snf_core_store_inventories_on_store_id_and_product_id" ON "snf_core_store_inventories" ("store_id", "product_id") /*application='Dummy'*/[0m
|
9007
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_store_inventories_on_store_id" ON "snf_core_store_inventories" ("store_id") /*application='Dummy'*/[0m
|
9008
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_stores" CASCADE /*application='Dummy'*/[0m
|
9009
|
+
[1m[35m (6.0ms)[0m [1m[35mCREATE TABLE "snf_core_stores" ("id" bigserial primary key, "name" character varying NOT NULL, "email" character varying, "operational_status" integer DEFAULT 1 NOT NULL, "business_id" bigint NOT NULL, "address_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
9010
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_snf_core_stores_on_address_id" ON "snf_core_stores" ("address_id") /*application='Dummy'*/[0m
|
9011
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_snf_core_stores_on_business_id" ON "snf_core_stores" ("business_id") /*application='Dummy'*/[0m
|
9012
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_user_roles" CASCADE /*application='Dummy'*/[0m
|
9013
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE TABLE "snf_core_user_roles" ("id" bigserial primary key, "user_id" bigint NOT NULL, "role_id" bigint NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
9014
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_snf_core_user_roles_on_role_id" ON "snf_core_user_roles" ("role_id") /*application='Dummy'*/[0m
|
9015
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_snf_core_user_roles_on_user_id" ON "snf_core_user_roles" ("user_id") /*application='Dummy'*/[0m
|
9016
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_users" CASCADE /*application='Dummy'*/[0m
|
9017
|
+
[1m[35m (6.2ms)[0m [1m[35mCREATE TABLE "snf_core_users" ("id" bigserial primary key, "first_name" character varying NOT NULL, "middle_name" character varying NOT NULL, "last_name" character varying NOT NULL, "email" character varying, "phone_number" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "password_digest" character varying NOT NULL, "password_changed" boolean DEFAULT TRUE, "reset_password_token" character varying, "date_of_birth" date NOT NULL, "nationality" character varying NOT NULL, "occupation" character varying, "source_of_funds" character varying, "kyc_status" integer, "gender" integer, "verified_at" timestamp(6), "verified_by_id" bigint, "address_id" bigint, "fayda_id" character varying) /*application='Dummy'*/[0m
|
9018
|
+
[1m[35m (0.5ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_virtual_account_transactions" CASCADE /*application='Dummy'*/[0m
|
9019
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "snf_core_virtual_account_transactions" ("id" bigserial primary key, "from_account_id" bigint, "to_account_id" bigint, "amount" decimal NOT NULL, "transaction_type" integer NOT NULL, "status" integer DEFAULT 0 NOT NULL, "reference_number" character varying NOT NULL, "description" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
9020
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_snf_core_virtual_account_transactions_on_created_at" ON "snf_core_virtual_account_transactions" ("created_at") /*application='Dummy'*/[0m
|
9021
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_snf_core_virtual_account_transactions_on_from_account_id" ON "snf_core_virtual_account_transactions" ("from_account_id") /*application='Dummy'*/[0m
|
9022
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "idx_on_reference_number_bd9be00f20" ON "snf_core_virtual_account_transactions" ("reference_number") /*application='Dummy'*/[0m
|
9023
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_snf_core_virtual_account_transactions_on_to_account_id" ON "snf_core_virtual_account_transactions" ("to_account_id") /*application='Dummy'*/[0m
|
9024
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_virtual_accounts" CASCADE /*application='Dummy'*/[0m
|
9025
|
+
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "snf_core_virtual_accounts" ("id" bigserial primary key, "user_id" bigint NOT NULL, "account_number" character varying(11) NOT NULL, "cbs_account_number" character varying NOT NULL, "balance" decimal DEFAULT 0.0 NOT NULL, "interest_rate" decimal DEFAULT 0.0 NOT NULL, "interest_type" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT TRUE NOT NULL, "branch_code" character varying(3) NOT NULL, "product_scheme" character varying(1) NOT NULL, "voucher_type" character varying(1) NOT NULL, "status" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
9026
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_snf_core_virtual_accounts_on_account_number" ON "snf_core_virtual_accounts" ("account_number") /*application='Dummy'*/[0m
|
9027
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "idx_on_branch_code_product_scheme_voucher_type_b7038b3d5f" ON "snf_core_virtual_accounts" ("branch_code", "product_scheme", "voucher_type") /*application='Dummy'*/[0m
|
9028
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_snf_core_virtual_accounts_on_cbs_account_number" ON "snf_core_virtual_accounts" ("cbs_account_number") /*application='Dummy'*/[0m
|
9029
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_snf_core_virtual_accounts_on_user_id" ON "snf_core_virtual_accounts" ("user_id") /*application='Dummy'*/[0m
|
9030
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "snf_core_wallets" CASCADE /*application='Dummy'*/[0m
|
9031
|
+
[1m[35m (5.8ms)[0m [1m[35mCREATE TABLE "snf_core_wallets" ("id" bigserial primary key, "user_id" bigint NOT NULL, "wallet_number" character varying NOT NULL, "balance" decimal NOT NULL, "is_active" boolean DEFAULT TRUE NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
9032
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_snf_core_wallets_on_user_id" ON "snf_core_wallets" ("user_id") /*application='Dummy'*/[0m
|
9033
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_snf_core_wallets_on_wallet_number" ON "snf_core_wallets" ("wallet_number") /*application='Dummy'*/[0m
|
9034
|
+
[1m[35m (4.3ms)[0m [1m[35mALTER TABLE "active_storage_attachments" ADD CONSTRAINT "fk_rails_c3b3935057"
|
9035
|
+
FOREIGN KEY ("blob_id")
|
9036
|
+
REFERENCES "active_storage_blobs" ("id")
|
9037
|
+
/*application='Dummy'*/[0m
|
9038
|
+
[1m[35m (2.1ms)[0m [1m[35mALTER TABLE "active_storage_variant_records" ADD CONSTRAINT "fk_rails_993965df05"
|
9039
|
+
FOREIGN KEY ("blob_id")
|
9040
|
+
REFERENCES "active_storage_blobs" ("id")
|
9041
|
+
/*application='Dummy'*/[0m
|
9042
|
+
[1m[35m (2.5ms)[0m [1m[35mALTER TABLE "snf_core_account_transfers" ADD CONSTRAINT "fk_rails_0d109a55ef"
|
9043
|
+
FOREIGN KEY ("user_id")
|
9044
|
+
REFERENCES "snf_core_users" ("id")
|
9045
|
+
/*application='Dummy'*/[0m
|
9046
|
+
[1m[35m (2.5ms)[0m [1m[35mALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_1efd7338ed"
|
9047
|
+
FOREIGN KEY ("business_id")
|
9048
|
+
REFERENCES "snf_core_businesses" ("id")
|
9049
|
+
/*application='Dummy'*/[0m
|
9050
|
+
[1m[35m (2.1ms)[0m [1m[35mALTER TABLE "snf_core_business_documents" ADD CONSTRAINT "fk_rails_a6157021cc"
|
9051
|
+
FOREIGN KEY ("verified_by_id")
|
9052
|
+
REFERENCES "snf_core_users" ("id")
|
9053
|
+
/*application='Dummy'*/[0m
|
9054
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "snf_core_businesses" ADD CONSTRAINT "fk_rails_a61edcbd4b"
|
9055
|
+
FOREIGN KEY ("user_id")
|
9056
|
+
REFERENCES "snf_core_users" ("id")
|
9057
|
+
/*application='Dummy'*/[0m
|
9058
|
+
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "snf_core_categories" ADD CONSTRAINT "fk_rails_26a925b05d"
|
9059
|
+
FOREIGN KEY ("parent_id")
|
9060
|
+
REFERENCES "snf_core_categories" ("id")
|
9061
|
+
/*application='Dummy'*/[0m
|
9062
|
+
[1m[35m (2.1ms)[0m [1m[35mALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_9c45f4015a"
|
9063
|
+
FOREIGN KEY ("group_id")
|
9064
|
+
REFERENCES "snf_core_groups" ("id")
|
9065
|
+
/*application='Dummy'*/[0m
|
9066
|
+
[1m[35m (2.2ms)[0m [1m[35mALTER TABLE "snf_core_customer_groups" ADD CONSTRAINT "fk_rails_792eb3404d"
|
9067
|
+
FOREIGN KEY ("customer_id")
|
9068
|
+
REFERENCES "snf_core_users" ("id")
|
9069
|
+
/*application='Dummy'*/[0m
|
9070
|
+
[1m[35m (2.8ms)[0m [1m[35mALTER TABLE "snf_core_delivery_orders" ADD CONSTRAINT "fk_rails_450d17b1b2"
|
9071
|
+
FOREIGN KEY ("order_id")
|
9072
|
+
REFERENCES "snf_core_orders" ("id")
|
9073
|
+
/*application='Dummy'*/[0m
|
9074
|
+
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "snf_core_groups" ADD CONSTRAINT "fk_rails_c52b27ad67"
|
9075
|
+
FOREIGN KEY ("business_id")
|
9076
|
+
REFERENCES "snf_core_businesses" ("id")
|
9077
|
+
/*application='Dummy'*/[0m
|
9078
|
+
[1m[35m (2.2ms)[0m [1m[35mALTER TABLE "snf_core_item_requests" ADD CONSTRAINT "fk_rails_a718316b94"
|
9079
|
+
FOREIGN KEY ("product_id")
|
9080
|
+
REFERENCES "snf_core_products" ("id")
|
9081
|
+
/*application='Dummy'*/[0m
|
9082
|
+
[1m[35m (3.2ms)[0m [1m[35mALTER TABLE "snf_core_item_requests" ADD CONSTRAINT "fk_rails_0aa2ea2057"
|
9083
|
+
FOREIGN KEY ("user_id")
|
9084
|
+
REFERENCES "snf_core_users" ("id")
|
9085
|
+
/*application='Dummy'*/[0m
|
9086
|
+
[1m[35m (2.5ms)[0m [1m[35mALTER TABLE "snf_core_order_items" ADD CONSTRAINT "fk_rails_1f4046ba92"
|
9087
|
+
FOREIGN KEY ("order_id")
|
9088
|
+
REFERENCES "snf_core_orders" ("id")
|
9089
|
+
/*application='Dummy'*/[0m
|
9090
|
+
[1m[35m (1.9ms)[0m [1m[35mALTER TABLE "snf_core_order_items" ADD CONSTRAINT "fk_rails_50419437e9"
|
9091
|
+
FOREIGN KEY ("store_inventory_id")
|
9092
|
+
REFERENCES "snf_core_store_inventories" ("id")
|
9093
|
+
/*application='Dummy'*/[0m
|
9094
|
+
[1m[35m (1.8ms)[0m [1m[35mALTER TABLE "snf_core_orders" ADD CONSTRAINT "fk_rails_400cf2029c"
|
9095
|
+
FOREIGN KEY ("store_id")
|
9096
|
+
REFERENCES "snf_core_stores" ("id")
|
9097
|
+
/*application='Dummy'*/[0m
|
9098
|
+
[1m[35m (1.9ms)[0m [1m[35mALTER TABLE "snf_core_orders" ADD CONSTRAINT "fk_rails_45b78fb6f9"
|
9099
|
+
FOREIGN KEY ("user_id")
|
9100
|
+
REFERENCES "snf_core_users" ("id")
|
9101
|
+
/*application='Dummy'*/[0m
|
9102
|
+
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "snf_core_products" ADD CONSTRAINT "fk_rails_a0ba3fa883"
|
9103
|
+
FOREIGN KEY ("category_id")
|
9104
|
+
REFERENCES "snf_core_categories" ("id")
|
9105
|
+
/*application='Dummy'*/[0m
|
9106
|
+
[1m[35m (1.9ms)[0m [1m[35mALTER TABLE "snf_core_quotations" ADD CONSTRAINT "fk_rails_3ec8abd328"
|
9107
|
+
FOREIGN KEY ("item_request_id")
|
9108
|
+
REFERENCES "snf_core_item_requests" ("id")
|
9109
|
+
/*application='Dummy'*/[0m
|
9110
|
+
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_15fb263e75"
|
9111
|
+
FOREIGN KEY ("product_id")
|
9112
|
+
REFERENCES "snf_core_products" ("id")
|
9113
|
+
/*application='Dummy'*/[0m
|
9114
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "snf_core_store_inventories" ADD CONSTRAINT "fk_rails_2ca88d30e2"
|
9115
|
+
FOREIGN KEY ("store_id")
|
9116
|
+
REFERENCES "snf_core_stores" ("id")
|
9117
|
+
/*application='Dummy'*/[0m
|
9118
|
+
[1m[35m (1.6ms)[0m [1m[35mALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_421441da8e"
|
9119
|
+
FOREIGN KEY ("address_id")
|
9120
|
+
REFERENCES "snf_core_addresses" ("id")
|
9121
|
+
/*application='Dummy'*/[0m
|
9122
|
+
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "snf_core_stores" ADD CONSTRAINT "fk_rails_e100fc7454"
|
9123
|
+
FOREIGN KEY ("business_id")
|
9124
|
+
REFERENCES "snf_core_businesses" ("id")
|
9125
|
+
/*application='Dummy'*/[0m
|
9126
|
+
[1m[35m (2.3ms)[0m [1m[35mALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_0e70d7ce00"
|
9127
|
+
FOREIGN KEY ("role_id")
|
9128
|
+
REFERENCES "snf_core_roles" ("id")
|
9129
|
+
/*application='Dummy'*/[0m
|
9130
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER TABLE "snf_core_user_roles" ADD CONSTRAINT "fk_rails_9ad2e78133"
|
9131
|
+
FOREIGN KEY ("user_id")
|
9132
|
+
REFERENCES "snf_core_users" ("id")
|
9133
|
+
/*application='Dummy'*/[0m
|
9134
|
+
[1m[35m (1.7ms)[0m [1m[35mALTER TABLE "snf_core_users" ADD CONSTRAINT "fk_rails_aaf9dcb5a5"
|
9135
|
+
FOREIGN KEY ("address_id")
|
9136
|
+
REFERENCES "snf_core_addresses" ("id")
|
9137
|
+
/*application='Dummy'*/[0m
|
9138
|
+
[1m[35m (2.0ms)[0m [1m[35mALTER TABLE "snf_core_users" ADD CONSTRAINT "fk_rails_e672dea3f8"
|
9139
|
+
FOREIGN KEY ("verified_by_id")
|
9140
|
+
REFERENCES "snf_core_users" ("id")
|
9141
|
+
ON DELETE SET NULL /*application='Dummy'*/[0m
|
9142
|
+
[1m[35m (3.0ms)[0m [1m[35mALTER TABLE "snf_core_virtual_account_transactions" ADD CONSTRAINT "fk_rails_746fa19f46"
|
9143
|
+
FOREIGN KEY ("from_account_id")
|
9144
|
+
REFERENCES "snf_core_virtual_accounts" ("id")
|
9145
|
+
/*application='Dummy'*/[0m
|
9146
|
+
[1m[35m (1.3ms)[0m [1m[35mALTER TABLE "snf_core_virtual_account_transactions" ADD CONSTRAINT "fk_rails_87430c1b60"
|
9147
|
+
FOREIGN KEY ("to_account_id")
|
9148
|
+
REFERENCES "snf_core_virtual_accounts" ("id")
|
9149
|
+
/*application='Dummy'*/[0m
|
9150
|
+
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "snf_core_virtual_accounts" ADD CONSTRAINT "fk_rails_5b22a265fb"
|
9151
|
+
FOREIGN KEY ("user_id")
|
9152
|
+
REFERENCES "snf_core_users" ("id")
|
9153
|
+
/*application='Dummy'*/[0m
|
9154
|
+
[1m[35m (12.2ms)[0m [1m[35mALTER TABLE "snf_core_wallets" ADD CONSTRAINT "fk_rails_77c94979ce"
|
9155
|
+
FOREIGN KEY ("user_id")
|
9156
|
+
REFERENCES "snf_core_users" ("id")
|
9157
|
+
/*application='Dummy'*/[0m
|
9158
|
+
[1m[35m (3.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
9159
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
9160
|
+
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20250313103149) /*application='Dummy'*/[0m
|
9161
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
9162
|
+
(20250312141147),
|
9163
|
+
(20250312043359),
|
9164
|
+
(20250311000000),
|
9165
|
+
(20250310143604),
|
9166
|
+
(20250310133249),
|
9167
|
+
(20250310123127),
|
9168
|
+
(20250310122954),
|
9169
|
+
(20250306074713),
|
9170
|
+
(20250305232530),
|
9171
|
+
(20250305232529),
|
9172
|
+
(20250305201008),
|
9173
|
+
(20250305170248),
|
9174
|
+
(20250305165926),
|
9175
|
+
(20250227102833),
|
9176
|
+
(20250227075048),
|
9177
|
+
(20250226193938),
|
9178
|
+
(20250226192104),
|
9179
|
+
(20250226190000),
|
9180
|
+
(20250226181007),
|
9181
|
+
(20250226123213),
|
9182
|
+
(20250226115215),
|
9183
|
+
(20250226110217),
|
9184
|
+
(20250226102931),
|
9185
|
+
(20250226080323),
|
9186
|
+
(20250226064444),
|
9187
|
+
(20250226042622); /*application='Dummy'*/[0m
|
9188
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL) /*application='Dummy'*/[0m
|
9189
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
9190
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.8ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-13 11:44:38.624113', '2025-03-13 11:44:38.624119') RETURNING "key" /*application='Dummy'*/[0m
|
9191
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
9192
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.5ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-13 11:44:38.654064' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/[0m
|
9193
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
9194
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '218184097ba896dfad8023903cb8f560edf494c0', '2025-03-13 11:44:38.657479', '2025-03-13 11:44:38.657481') RETURNING "key" /*application='Dummy'*/[0m
|