39 lines
1.3 KiB
MySQL
39 lines
1.3 KiB
MySQL
|
|
-- PostgreSQL Database Schema for Data Engine
|
||
|
|
-- Generated from Go entity classes
|
||
|
|
-- This file serves as the main schema file that imports all other schema files
|
||
|
|
-- Execute in the following order:
|
||
|
|
-- 1. 00_main_schema.sql (this file)
|
||
|
|
-- 2. 01_dict_tables.sql
|
||
|
|
-- 3. 02_account_report_tables.sql
|
||
|
|
-- 4. 03_campaign_report_tables.sql
|
||
|
|
-- 5. 04_creative_report_tables.sql
|
||
|
|
-- 6. 05_unit_report_tables.sql
|
||
|
|
-- 7. 06_storewide_report_tables.sql
|
||
|
|
-- 8. 07_material_population_tables.sql
|
||
|
|
-- 9. 08_sync_task_tables.sql
|
||
|
|
|
||
|
|
-- =============================================
|
||
|
|
-- Database Settings
|
||
|
|
-- =============================================
|
||
|
|
-- Set timezone (optional, adjust as needed)
|
||
|
|
SET timezone = 'Asia/Shanghai';
|
||
|
|
|
||
|
|
-- =============================================
|
||
|
|
-- Import all schema files
|
||
|
|
-- =============================================
|
||
|
|
|
||
|
|
\i 01_dict_tables.sql
|
||
|
|
\i 02_account_report_tables.sql
|
||
|
|
\i 03_campaign_report_tables.sql
|
||
|
|
\i 04_creative_report_tables.sql
|
||
|
|
\i 05_unit_report_tables.sql
|
||
|
|
\i 06_storewide_report_tables.sql
|
||
|
|
\i 07_material_population_tables.sql
|
||
|
|
\i 08_sync_task_tables.sql
|
||
|
|
|
||
|
|
-- =============================================
|
||
|
|
-- Grant permissions (optional, adjust as needed)
|
||
|
|
-- =============================================
|
||
|
|
-- GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO your_user;
|
||
|
|
-- GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO your_user;
|