File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ import 'package:logging/logging.dart' ;
2
+ import 'package:postgres/postgres.dart' ;
3
+
4
+ /// {@template database_seeding_service}
5
+ /// A service responsible for initializing the database schema and seeding it
6
+ /// with initial data.
7
+ ///
8
+ /// This service is intended to be run at application startup, particularly
9
+ /// in development environments or during the first run of a production instance
10
+ /// to set up the initial admin user and default configuration.
11
+ /// {@endtemplate}
12
+ class DatabaseSeedingService {
13
+ /// {@macro database_seeding_service}
14
+ const DatabaseSeedingService ({
15
+ required Connection connection,
16
+ required Logger log,
17
+ }) : _connection = connection,
18
+ _log = log;
19
+
20
+ final Connection _connection;
21
+ final Logger _log;
22
+
23
+ // Methods for table creation and data seeding will be added here.
24
+ }
You can’t perform that action at this time.
0 commit comments