Commit 1c9c39b
committed
Add database initialization and seeding scripts for contacts management
- Created 01-init-db.sh to initialize the contacts database if it doesn't exist.
- Added 02-seed-data.sql to create necessary tables and insert initial data including users, roles, permissions, and sample contacts.
- Implemented foreign key constraints and unique constraints for data integrity.
- Seeded initial roles (Admin, Reader, Editor) and assigned permissions accordingly.1 parent 6bbce05 commit 1c9c39b
File tree
183 files changed
+361
-22
lines changed- api-collection
- Contacts
- Operations
- Pages
- Permissions
- RolePermission
- Roles
- UserRoles
- Users
- environments
- aspire
- AppHost
- Properties
- ServiceDefaults
- backend
- Contact.Api
- Controllers
- Core
- Attributes
- Authorization
- Middleware
- Properties
- wwwroot/data
- Contact.Application
- Interfaces
- Mappings
- Services
- UseCases
- ContactPerson
- Operations
- Pages
- Permissions
- RolePermissions
- Roles
- Users
- Contact.Common
- Contact.Domain
- Entities
- Exceptions
- Interfaces
- Mappings
- Contact.Infrastructure
- ExternalServices
- Persistence
- Helper
- Repositories
- frontend
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
183 files changed
+361
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
42 | 54 | | |
43 | 55 | | |
44 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments