mirror of
https://github.com/henry4682/finance_app.git
synced 2026-07-16 00:10:00 +00:00
feat: 前端分離+功能api化
1. 新增資產管理CRUD、googleOAuth登入 2. 更改原記帳controller
This commit is contained in:
188
database/seeders/AccountSeeder.php
Normal file
188
database/seeders/AccountSeeder.php
Normal file
@@ -0,0 +1,188 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class AccountSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
DB::table('accounts')->insert([
|
||||
[
|
||||
'id' => 1,
|
||||
'user_id' => 1,
|
||||
'name' => '凱基銀行',
|
||||
'type' => 'bank',
|
||||
'currency' => 'TWD',
|
||||
'balance' => 123028.00,
|
||||
'note' => null,
|
||||
'billing_day' => null,
|
||||
'payment_day' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 2,
|
||||
'user_id' => 1,
|
||||
'name' => '國泰證券',
|
||||
'type' => 'stock',
|
||||
'currency' => 'TWD',
|
||||
'balance' => 0.00,
|
||||
'note' => null,
|
||||
'billing_day' => null,
|
||||
'payment_day' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 3,
|
||||
'user_id' => 1,
|
||||
'name' => '國泰銀行',
|
||||
'type' => 'bank',
|
||||
'currency' => 'TWD',
|
||||
'balance' => 19067.00,
|
||||
'note' => null,
|
||||
'billing_day' => null,
|
||||
'payment_day' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 4,
|
||||
'user_id' => 1,
|
||||
'name' => '永豐銀行',
|
||||
'type' => 'cash',
|
||||
'currency' => 'TWD',
|
||||
'balance' => 14138.00,
|
||||
'note' => null,
|
||||
'billing_day' => null,
|
||||
'payment_day' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 5,
|
||||
'user_id' => 1,
|
||||
'name' => '永豐證券',
|
||||
'type' => 'stock',
|
||||
'currency' => 'TWD',
|
||||
'balance' => 0.00,
|
||||
'note' => null,
|
||||
'billing_day' => null,
|
||||
'payment_day' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 11,
|
||||
'user_id' => 1,
|
||||
'name' => '國泰信用卡',
|
||||
'type' => 'credit_card',
|
||||
'currency' => 'TWD',
|
||||
'balance' => 0.00,
|
||||
'note' => null,
|
||||
'billing_day' => 17,
|
||||
'payment_day' => 2,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 12,
|
||||
'user_id' => 1,
|
||||
'name' => '麥當勞點點卡',
|
||||
'type' => 'wallet',
|
||||
'currency' => 'TWD',
|
||||
'balance' => 299.00,
|
||||
'note' => null,
|
||||
'billing_day' => null,
|
||||
'payment_day' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 13,
|
||||
'user_id' => 1,
|
||||
'name' => '國泰基金',
|
||||
'type' => 'fund',
|
||||
'currency' => 'TWD',
|
||||
'balance' => 0.00,
|
||||
'note' => null,
|
||||
'billing_day' => null,
|
||||
'payment_day' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 14,
|
||||
'user_id' => 1,
|
||||
'name' => '手機悠遊卡',
|
||||
'type' => 'wallet',
|
||||
'currency' => 'TWD',
|
||||
'balance' => 1.00,
|
||||
'note' => null,
|
||||
'billing_day' => null,
|
||||
'payment_day' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 15,
|
||||
'user_id' => 1,
|
||||
'name' => '玉山金融卡(悠遊卡)',
|
||||
'type' => 'wallet',
|
||||
'currency' => 'TWD',
|
||||
'balance' => 222.00,
|
||||
'note' => null,
|
||||
'billing_day' => null,
|
||||
'payment_day' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 16,
|
||||
'user_id' => 1,
|
||||
'name' => '凱基信用卡(悠遊卡)',
|
||||
'type' => 'wallet',
|
||||
'currency' => 'TWD',
|
||||
'balance' => 154.00,
|
||||
'note' => null,
|
||||
'billing_day' => null,
|
||||
'payment_day' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 17,
|
||||
'user_id' => 1,
|
||||
'name' => '東華學生證(悠遊卡)',
|
||||
'type' => 'wallet',
|
||||
'currency' => 'TWD',
|
||||
'balance' => 85.00,
|
||||
'note' => null,
|
||||
'billing_day' => null,
|
||||
'payment_day' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
[
|
||||
'id' => 18,
|
||||
'user_id' => 1,
|
||||
'name' => '安聯基金',
|
||||
'type' => 'fund',
|
||||
'currency' => 'TWD',
|
||||
'balance' => 0.00,
|
||||
'note' => null,
|
||||
'billing_day' => null,
|
||||
'payment_day' => null,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now()
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user