1.0.0
This commit is contained in:
parent
f5913f8a37
commit
980e0408a0
3 changed files with 23 additions and 0 deletions
10
README.md
10
README.md
|
@ -1,2 +1,12 @@
|
|||
# angel_model
|
||||
Angel's basic data model class, no longer with the added weight of the whole framework.
|
||||
|
||||
```dart
|
||||
// Old: import 'package:angel_framework/common.dart' show Model;
|
||||
|
||||
// The new way!!!
|
||||
import 'package:angel_model/angel_model.dart';
|
||||
```
|
||||
|
||||
This package was created to prevent dependency collisions with third-party packages.
|
||||
`framework/common` will continue to export this class.
|
8
lib/angel_model.dart
Normal file
8
lib/angel_model.dart
Normal file
|
@ -0,0 +1,8 @@
|
|||
/// Represents arbitrary data, with an associated ID and timestamps.
|
||||
class Model {
|
||||
String id;
|
||||
DateTime createdAt;
|
||||
DateTime updatedAt;
|
||||
|
||||
Model({this.id, this.createdAt, this.updatedAt});
|
||||
}
|
5
pubspec.yaml
Normal file
5
pubspec.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
name: angel_model
|
||||
version: 1.0.0
|
||||
description: Angel's basic data model class, no longer with the added weight of the whole framework.
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
homepage: https://github.com/angel-dart/model
|
Loading…
Reference in a new issue