Ignore:
Timestamp:
09/04/26 19:36:17 (2 weeks ago)
Author:
MBK <marija.karapandzova@…>
Branches:
master
Children:
99ab276
Parents:
9af201e
Message:

Fix frontend appearance and fix bugs

Location:
backend/src/main/resources/db
Files:
3 added
11 moved

Legend:

Unmodified
Added
Removed
  • backend/src/main/resources/db/migration/V1.1__Create_Daily_Billing_View.sql

    r9af201e rcdcff72  
    1 -- Create materialized view for daily patient billing totals
     1 -- Create materialized view for daily patient billing totals
    22CREATE MATERIALIZED VIEW IF NOT EXISTS daily_patient_billing_totals AS
    33SELECT
  • backend/src/main/resources/db/migration/V1.2__Create_Users_Table.sql

    r9af201e rcdcff72  
    1 user
    21-- Create users table
    32CREATE TABLE IF NOT EXISTS users (
     
    3231)
    3332LIMIT 39;
     33
     34-- Insert doctor users (password: doctor123 for all)
     35-- These will be linked to existing doctors by email
     36INSERT INTO users (username, password, role, first_name, last_name, doctor_id, is_active)
     37SELECT d.email_address, 'doctor123', 'DOCTOR', d.first_name, d.last_name, d.doctor_id, true
     38FROM doctors d
     39WHERE NOT EXISTS (
     40    SELECT 1 FROM users u WHERE u.username = d.email_address
     41);
Note: See TracChangeset for help on using the changeset viewer.