39 lines
814 B
Dart
39 lines
814 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'project.freezed.dart';
|
|
|
|
@freezed
|
|
class ProjectCreate with _$ProjectCreate {
|
|
const factory ProjectCreate({
|
|
String? id,
|
|
required String name,
|
|
String? description,
|
|
String? clientId,
|
|
required String userId,
|
|
}) = _ProjectCreate;
|
|
}
|
|
|
|
@freezed
|
|
class Project with _$Project {
|
|
const factory Project({
|
|
required String id,
|
|
required String name,
|
|
String? description,
|
|
String? clientId,
|
|
required String userId,
|
|
required DateTime createdAt,
|
|
required DateTime updatedAt,
|
|
}) = _Project;
|
|
}
|
|
|
|
@freezed
|
|
class ProjectUpdate with _$ProjectUpdate {
|
|
const factory ProjectUpdate({
|
|
required String id,
|
|
String? name,
|
|
String? description,
|
|
String? clientId,
|
|
String? userId,
|
|
}) = _ProjectUpdate;
|
|
}
|